Istext

alliswell

Board Regular
Joined
Mar 16, 2020
Messages
197
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Hi everybody

In column A i have text and numbers.
In column B & C i need all text in B & numbers in C.
I use istext function to seperate text and isnumber to seperate numbers but the issue is that i get results but not getting it one after others there i get spaces of blank cells in between. I use excel 2007

Thanks
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
are these just text in a cell and just a number in a cell or are you splitting a cell ???

need to check istext() isnumber() is in 2007 version

Book4
ABC
1
2123 123
3abcabc 
4cdecde 
5234 234
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=IF(ISTEXT(A2),A2,"")
C2:C5C2=IF(ISNUMBER(A2),A2,"")


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
are these just text in a cell and just a number in a cell or are you splitting a cell ???

need to check istext() isnumber() is in 2007 version

Book4
ABC
1
2123 123
3abcabc 
4cdecde 
5234 234
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=IF(ISTEXT(A2),A2,"")
C2:C5C2=IF(ISNUMBER(A2),A2,"")


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
Yes etaf sir i get same results. But see in your solution of column C, 123 is in row 2 and 234 in row 5, there are 2 rows empty in between. So i want such that in column C, in row 2 is 123, then in row 3 must come 234 and so on so forth. Trying with small if and also with rows function but not getting results. Some error i get.
 
Upvote 0
Below are ARRAY formulas
In B2
Excel Formula:
=IFERROR(INDEX($A$2:$A$5,SMALL(IF(ISTEXT($A$2:$A$5),ROW($A$2:$A$5),""),ROWS(B$2:B2))-ROW($A$1)),"")
In C2
Excel Formula:
=IFERROR(INDEX($A$2:$A$5,SMALL(IF(ISNUMBER($A$2:$A$5),ROW($A$2:$A$5),""),ROWS(C$2:C2))-ROW($A$1)),"")
Copy down both.

To enter ARRAY formula
Copy and paste the formula in cell
Press F2
Press Ctrl+Shift+Enter together
Excel covers the formula with {}.
123​
aaa
123​
aaaee
11​
ee
11​
 
Upvote 0
Below are ARRAY formulas
In B2
Excel Formula:
=IFERROR(INDEX($A$2:$A$5,SMALL(IF(ISTEXT($A$2:$A$5),ROW($A$2:$A$5),""),ROWS(B$2:B2))-ROW($A$1)),"")
In C2
Excel Formula:
=IFERROR(INDEX($A$2:$A$5,SMALL(IF(ISNUMBER($A$2:$A$5),ROW($A$2:$A$5),""),ROWS(C$2:C2))-ROW($A$1)),"")
Copy down both.

To enter ARRAY formula
Copy and paste the formula in cell
Press F2
Press Ctrl+Shift+Enter together
Excel covers the formula with {}.
123​
aaa
123​
aaaee
11​
ee
11​
Thanks Srinivas sir

Can you explain what does this mean ?
I have seen in several formulas
ROWS(C$2:C2))-ROW($A$1))
 
Upvote 0
ROWS(C$2:C2))
Says which small number is to be selected. Here it is 1 means 1st small number will be selected.

-ROW($A$1))
Since In INDEX formula data starts from ($A$2:$A$5) 2nd row ,so row 1 will be deducted.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top