Home |
Search |
Today's Posts |
#1
|
|||
|
|||
IF a number then....
This function works for me =IF(B44000, 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". -- Message posted via http://www.officekb.com |
#2
|
|||
|
|||
=if(isnumber(b4),vlookup(....),"S")
"jeremy via OfficeKB.com" wrote in message ... This function works for me =IF(B44000, 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". -- Message posted via http://www.officekb.com |
#3
|
|||
|
|||
Hi jeremy Look in the help for the ISNUMBER worksheetfunction -- Regards Ron de Bruin http://www.rondebruin.nl "jeremy via OfficeKB.com" wrote in message ... This function works for me =IF(B44000, 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". -- Message posted via http://www.officekb.com |
#4
|
|||
|
|||
Try =IF(AND(ISNUMBER(B4),B44000), VLOOKUP(B4,table-ref,2), "S")
best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "jeremy via OfficeKB.com" wrote in message ... This function works for me =IF(B44000, 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". -- Message posted via http://www.officekb.com |
#6
|
|||
|
|||
HEY THANKS
This funtion works for me, if there are no letters behind numbers =IF(ISNUMBER(B7),(IF(B74000, 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 -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
Random Number Questions | Excel Worksheet Functions | |||
How to format a number in Indian style in Excel? | Excel Discussion (Misc queries) | |||
Defining a number in a cell by text then subtracting it by the tex | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |