Forum Discussion
vaishali_12
Sep 06, 2023Copper Contributor
Separating text and numeric
Hey, how can i easily separate text and numeric value from the rows in excel?
2 Replies
Sort By
- PeterBartholomew1Silver Contributor
If you use 365, a formulae which filter text and numeric cells are
= FILTER(range, ISTEXT(range)) = FILTER(range, ISNUMBER(range))
Another tactic that could be useful is simply to sort the range, so placing numbers before text.
= SORT(range)
- NikolinoDEGold Contributor
In Excel, if you have a column that contains a combination of text and numeric values in each cell, you can separate them into two separate columns (one for text and one for numeric values) using text functions and formulas. Here is a step-by-step guide on how to do this:
Assuming your data is in column A, and you want to separate text and numeric values into columns B and C, respectively:
- Insert New Columns:
- Right-click on the column header of column B (to the right of your data in column A) and choose "Insert."
- This will create two new columns, B and C.
- Separate Text Values (Column B):
- In cell B1 (the first cell of column B), you can use the following formula to extract text from cell A1:
=IF(ISNUMBER(A1),"",A1)
- Drag the fill handle (the small square at the bottom-right corner of the cell) down to fill this formula for all the rows in column B. This formula checks if the value in column A is numeric and, if not, copies it to column B.
- Separate Numeric Values (Column C):
- In cell C1 (the first cell of column C), you can use the following formula to extract numeric values from cell A1:
=IF(ISNUMBER(A1),A1,"")
- Drag the fill handle down to fill this formula for all the rows in column C. This formula checks if the value in column A is numeric and, if so, copies it to column C.
- Adjust Formatting (Optional):
- You may want to format column C as numbers if it is not already formatted correctly. To do this, select column C, right-click, choose "Format Cells," and set the desired number format.
Now, you should have your text values in column B and numeric values in column C, effectively separating text and numeric values from the original column A.
Remember to adjust the range and references in the formulas if your data spans a different range in column A. The text and steps were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful!
This will help all forum participants.