=IF(FIND) Formula

Aviles

Board Regular
Joined
Dec 17, 2008
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm using the below formula which works well in most instances:

=IF(E1="","",IF(OR(E1="null",ISNUMBER(E1)),"number",IF(ISERROR(FIND("/",E1)),"text","number")))

Where it does not work is where the cell contains letters first and then some numbers (e.g. ABCD 1234), where it comes up incorrectly as "text" instead of "number".

I would like to add an argument to this formula that says... if E1 contains any number, anywhere in the cell, then "number", otherwise "text".

Can I get some help on this please?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi Robert,

Thanks for the suggestion, but I use a PC at work and they have blocked the use of youtube so I cannot view the videos. I did open the excel workbook, but I'm guessing that without the videos they don't make much sense.

I was trying to add some arguments to the original formula as below, but it says that I've "entered too many arguments for this function":

=IF(E1="","",IF(OR(E1="null",ISNUMBER(E1)),"number",IF(ISERROR(FIND("/",E1)),"text","number",IF(ISERROR(FIND("0",E1)),"number","text",IF(ISERROR(FIND("1",E1)),"number","text",IF(ISERROR(FIND("2",E1)),"number","text",........))))))

Any ideas on how to fix this?
 
Upvote 0
you could use this
=if(ISERROR(FIND(1,D5))+ISERROR(FIND(2,D5))+ISERROR(FIND(3,D5))+ISERROR(FIND(4,D5))+ISERROR(FIND(5,D5))+ISERROR(FIND(6,D5))+ISERROR(FIND(7,D5))+ISERROR(FIND(8,D5))+ISERROR(FIND(9,D5))<>9...but it is very ugly
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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