Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
isna vlookup #n/a but not false
Hi,
I am creating 1 spreadsheet from 2 moving sheets using Vlookups. However not all sheets have the same things to look up and returns #n/a - I can change to use isna, but if I use for all cells I get False where their would be a value without the isna. Can anyone help to give 1 formula ? =VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)+VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE) =IF(ISNA(VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)),0)+IF(ISNA(VLOOKUP($B:$B ,'Current Forecast'!$C:$S,4,FALSE)),0) Many thanks for any advice! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
isna vlookup #n/a but not false
You original formula did nothing when the cell didn't have a ISNA. You
equation reduced to =FALSE+FALSE Which gave #n/a because VBA didn't know how to add False + False. I think this is whatt you really wanted. =IF(ISNA(VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)),0,VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE))+IF(ISNA(VLOOKUP($B:$B,'C urrent Forecast'!$C:$S,4,FALSE)),0,VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)) "Clairedebear" wrote: Hi, I am creating 1 spreadsheet from 2 moving sheets using Vlookups. However not all sheets have the same things to look up and returns #n/a - I can change to use isna, but if I use for all cells I get False where their would be a value without the isna. Can anyone help to give 1 formula ? =VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)+VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE) =IF(ISNA(VLOOKUP($B:$B,'Current Forecast'!$C:$S,4,FALSE)),0)+IF(ISNA(VLOOKUP($B:$B ,'Current Forecast'!$C:$S,4,FALSE)),0) Many thanks for any advice! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
vlookup, IF, and ISNA | Excel Discussion (Misc queries) | |||
Sort with ISNA and vlookup | Excel Worksheet Functions | |||
isna vlookup | Excel Discussion (Misc queries) | |||
ISNA and VLOOKUP | Excel Worksheet Functions | |||
if isna and vlookup together | Excel Worksheet Functions |