Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
lookup help
I have this formula in cell A2
=LOOKUP(B2,{" ",19,50},{" ","1","2"})+A1 if I enter a value in B2 it works fine but if I leave it blank I get an error that a value is not available. What I would like is that if there is no value in B2 then A2 would stay blank. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
lookup help
The way that your formula is written is if B2 is <19 then it returns a space
character. If that condition is ever true then space + A1 will return the error #VALUE!. If B2 is empty then it returns the error #N/A. So, try it like this: =IF(B2<19,"",LOOKUP(B2,{19,50},{1,2})+A1) -- Biff Microsoft Excel MVP wrote in message ... I have this formula in cell A2 =LOOKUP(B2,{" ",19,50},{" ","1","2"})+A1 if I enter a value in B2 it works fine but if I leave it blank I get an error that a value is not available. What I would like is that if there is no value in B2 then A2 would stay blank. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
lookup help
A few keystrokes shorter...
Assuming B2 is *always* a number (or empty): =IF(B2<19,"",IF(B2<50,1,2)+A1) -- Biff Microsoft Excel MVP "T. Valko" wrote in message ... The way that your formula is written is if B2 is <19 then it returns a space character. If that condition is ever true then space + A1 will return the error #VALUE!. If B2 is empty then it returns the error #N/A. So, try it like this: =IF(B2<19,"",LOOKUP(B2,{19,50},{1,2})+A1) -- Biff Microsoft Excel MVP wrote in message ... I have this formula in cell A2 =LOOKUP(B2,{" ",19,50},{" ","1","2"})+A1 if I enter a value in B2 it works fine but if I leave it blank I get an error that a value is not available. What I would like is that if there is no value in B2 then A2 would stay blank. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Get Cell Address From Lookup (Alternative to Lookup) | Excel Worksheet Functions | |||
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) | |||
How do I lookup and return different values when the lookup value. | Excel Discussion (Misc queries) |