IF a number then....

  • Thread starter Thread starter jeremy via OfficeKB.com
  • Start date Start date
J

jeremy via OfficeKB.com

This function works for me =IF(B4>4000, VLOOKUP(B4,Sheet1!#REF!,2), "S")

but I need to and an IF statment in front:

IF(B4=#,(function above), "S")

In other words, only if it is a number, if not a number, then "S".
 
Hi jeremy

Look in the help for the ISNUMBER worksheetfunction
 
Try =IF(AND(ISNUMBER(B4),B4>4000), VLOOKUP(B4,table-ref,2), "S")
best wishes
 
HEY THANKS

This funtion works for me, if there are no letters behind numbers

=IF(ISNUMBER(B7),(IF(B7>4000, VLOOKUP(B7,Sheet1!A2:B263,2), "S")), "S")

but some of the numbers have a letter or two behind them or an apostrophy
in front, which I want to
ignore (eg. 4123HG i want to recognize as 4123)....

jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top