Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup, IF, and ISNA MMBOLI Excel Discussion (Misc queries) 2 August 17th 06 04:53 PM
Sort with ISNA and vlookup Tom Excel Worksheet Functions 0 January 26th 06 08:01 PM
isna vlookup Tim Excel Discussion (Misc queries) 2 April 3rd 05 11:23 AM
ISNA and VLOOKUP Chris Kellock Excel Worksheet Functions 3 March 12th 05 07:05 AM
if isna and vlookup together tina Excel Worksheet Functions 2 January 20th 05 01:06 PM


All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"