Close Menu

    Subscribe to Updates

    Get the latest Tech news from SynapseFlow

    What's Hot

    This is what the Samsung Galaxy Buds On look like

    July 30, 2026

    Winamp aims for a comeback with a new music player powered by Deezer

    July 30, 2026

    FCC’s latest tech ban could kill the robot vacuum cleaner market

    July 30, 2026
    Facebook X (Twitter) Instagram
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    Facebook X (Twitter) Instagram YouTube
    synapseflow.co.uksynapseflow.co.uk
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    synapseflow.co.uksynapseflow.co.uk
    Home»Software & Apps»How to separate Numbers from Text in Excel
    How to separate Numbers from Text in Excel
    Software & Apps

    How to separate Numbers from Text in Excel

    The Tech GuyBy The Tech GuyJune 7, 2026No Comments6 Mins Read0 Views
    Share
    Facebook Twitter LinkedIn Pinterest Email
    Advertisement


    In this guide, we will show you how to separate numbers from text in Excel on a Windows 11/10 PC.

    Advertisement

    How to separate Numbers from Text in Excel

    While working with Microsoft Excel, you may come across data that consists of mixed strings in a single column. For example, a product name and its quantity may be stored together in the same cell. Before performing calculations or analysis, you may need to separate the numbers and text from those strings and place them into different columns. While Excel does not offer a dedicated option to extract numbers or text from mixed strings, there are several ways to accomplish this task.

    How to separate numbers from text in Excel

    To separate numbers from text in Excel on a Windows 11/10 PC, use these methods:

    1. Use Flash Fill
    2. Use Text to Columns
    3. Use Formulas
    4. Use Power Query

    Let us see these methods in detail.

    1] Use Flash Fill

    Flash Fill

    If your data follows a consistent pattern throughout the worksheet and is unlikely to change later, you can use Excel’s Flash Fill feature to separate numbers from text. Flash Fill automatically recognizes patterns in a given dataset and fills the remaining cells accordingly.

    Open your Excel worksheet containing the mixed strings. Insert a new column next to the source data. In the first cell of the new column, manually type the numbers you want to extract from the corresponding cell. For example, if A2 contains ABC123, enter 123 in B2.

    Select the next cell below (B3) and start typing the expected result for the next entry. Excel will display a preview of the extracted values for the remaining cells. Press Enter to accept the suggested results.

    Alternatively, after entering a few examples, select the column where you want the results to appear and go to Data > Flash Fill, or press Ctrl + E. Excel will automatically extract the numbers from the remaining cells based on the pattern you provided.

    Note: To extract only the text portion, repeat the same process but enter the text part (such as ABC from ABC123) as your sample value. Flash Fill will then separate the text from the remaining entries.

    2] Use Text to Columns

    Convert Text to Columns wizard

    If the text and numbers in your data are separated by a consistent delimiter (such as a space, hyphen, comma, or underscore), you can use Excel’s Text to Columns feature to split them into separate columns.

    For example, if your data contains values such as Product-123, Laptop-101, or Printer-523, Text to Columns can quickly separate the product names from their corresponding IDs.

    To use Text to Columns, select the cells containing the mixed strings and go to the Data tab. Click Text to Columns in the Data Tools group.

    In the Convert Text to Columns Wizard, select Delimited and click Next. Choose the delimiter used in your data and click Next again.

    Select the destination for the separated data, then click Finish. Excel will split the text and numbers into separate columns.

    3] Use Formulas

    If your data changes frequently and you want the results to update automatically, you can use Excel formulas to separate numbers from text. Depending on how your data is structured, you can use either of the following approaches.

    A] For strings where text appears first, and numbers appear at the end

    For values such as: Product123, Laptop101, or Mouse456, use the following formula to extract the numeric portion:

    =RIGHT(A2,LEN(A2)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))+1)

    Replace A2 with the cell containing your mixed string and press Enter. Excel will return the numeric portion of the string.

    To apply the formula to the remaining entries, select the cell containing the formula, move your cursor to the small square in the bottom-right corner of the cell (the fill handle), and drag it down the column. Excel will automatically extract the numbers from the corresponding cells.

    To extract the text portion, use the following formula:

    =LEFT(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1)

    B] For strings where numbers can appear anywhere

    Use Formulas to separate numbers from string

    If your data contains numbers in different positions, such as ABC123, 123ABC, AB123CD, or A12B34, use the following formula:

    =TEXTJOIN("",TRUE,IFERROR(MID(A2,SEQUENCE(LEN(A2)),1)*1,""))

    Replace A2 with the cell containing your mixed string and press Enter. Excel will examine each character in the string, keep only the numeric values, and combine them into a single result.

    The SEQUENCE function is available only in Excel 365 and Excel 2021. If you use Excel 2019, use this formula instead:

    =TEXTJOIN("",TRUE,IFERROR(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)*1,""))

    Note: In Excel 2019, the formula must be entered as an array formula. After typing the formula, press Ctrl + Shift + Enter instead of just Enter. Excel will automatically place curly braces around the formula in the Formula Bar.

    Once the formula returns the desired result, drag the fill handle downward to apply it to the remaining cells in the column.

    4] Use Power Query

    If you work with large datasets or need to separate numbers from text regularly, Power Query can automate the process. It allows you to create a transformation that can be refreshed whenever the source data changes or new data is added.

    Select the cells containing your data and go to Data > From Table/Range. When prompted, click OK to convert the selected range into a table and open it in the Power Query Editor.

    In the Power Query Editor, select the column that contains the mixed strings. Then go to Add Column > Custom Column.

    To extract only the numbers, enter the following formula in the Custom Column Formula box:

    Text.Select([Column1], {"0".."9"})

    Replace Column1 with the name of your column if it is different.

    Custom Column Formula in Power Query

    Click OK. Power Query will create a new column containing only the numeric characters from each entry.

    Power Query Results

    If you want to extract only the text portion, create another custom column and use:

    Text.Remove([Column1], {“0”..”9″})

    Once you are satisfied with the results, click Home > Close & Load to load the transformed data back into Excel.

    I hope you find this useful.

    Read: How to split Text to Columns in Excel and Google Sheets.

    How to separate numbers from text?

    You can separate numbers from text in Excel using Flash Fill, Text to Columns, formulas, Power Query, or a custom VBA function. The best method depends on how your data is structured and whether you need the results to update automatically. For simple one-time tasks, Flash Fill is often the quickest option.

    How to split 1 cell into 4 in Excel?

    Excel does not support splitting a single cell into multiple cells the way Microsoft Word does. However, you can split the contents of a cell into adjacent columns by using Data > Text to Columns, Flash Fill, or the TEXTSPLIT function (in Excel for Microsoft 365 and Excel for the web). You can also insert additional rows or columns to store the separated data.

    Read Next: UNIQUE function not working in Excel.

    Advertisement
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    The Tech Guy
    • Website

    Related Posts

    Winamp aims for a comeback with a new music player powered by Deezer

    July 30, 2026

    How to configure Heartbeats and Automations in Microsoft Scout

    July 29, 2026

    These Samsung features are quietly eating your storage

    July 29, 2026

    Unlocking Bing Search Hidden Features you didn’t know existed

    July 29, 2026

    6 things you’re doing that are ruining your Roku

    July 29, 2026

    My three-year-old Android feels new again after these tweaks

    July 28, 2026
    Leave A Reply Cancel Reply

    Advertisement
    Top Posts

    You don’t need a NAS to self-host — I proved it with hardware from my closet

    June 7, 2026326 Views

    Spotify is giving one of its best playlists a big visual upgrade to give subscribers ‘a closer connection’ to its New Music Friday curators — and I think it could be the update it’s always needed

    June 12, 2026204 Views

    The iPad Air brand makes no sense – it needs a rethink

    October 12, 202516 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Advertisement
    About Us
    About Us

    SynapseFlow brings you the latest updates in Technology, AI, and Gadgets from innovations and reviews to future trends. Stay smart, stay updated with the tech world every day!

    Our Picks

    This is what the Samsung Galaxy Buds On look like

    July 30, 2026

    Winamp aims for a comeback with a new music player powered by Deezer

    July 30, 2026

    FCC’s latest tech ban could kill the robot vacuum cleaner market

    July 30, 2026
    categories
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    Facebook X (Twitter) Instagram Pinterest YouTube Dribbble
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 SynapseFlow All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.