#1   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default =IF(ISNA + VLOOKUP?

Hi, i have a lookup i'm currently using; "=VLOOKUP(A3, ELMAX, 2,)" I want to
expand this formula to include an IF(ISNA aspect as when the value being
looked up doesn't occur in the lookup table i am getting #N/A!'s and want to
have them come through as zeros...any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default =IF(ISNA + VLOOKUP?

=IF(ISERROR(=VLOOKUP(A3, ELMAX, 2,)),"0",(=VLOOKUP(A3, ELMAX, 2,)))


"GD" wrote:

Hi, i have a lookup i'm currently using; "=VLOOKUP(A3, ELMAX, 2,)" I want to
expand this formula to include an IF(ISNA aspect as when the value being
looked up doesn't occur in the lookup table i am getting #N/A!'s and want to
have them come through as zeros...any thoughts?

  #3   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default =IF(ISNA + VLOOKUP?

Cheers, the ='s before the vlookup's needed removing but otherwise did the job

"Atishoo" wrote:

=IF(ISERROR(=VLOOKUP(A3, ELMAX, 2,)),"0",(=VLOOKUP(A3, ELMAX, 2,)))


"GD" wrote:

Hi, i have a lookup i'm currently using; "=VLOOKUP(A3, ELMAX, 2,)" I want to
expand this formula to include an IF(ISNA aspect as when the value being
looked up doesn't occur in the lookup table i am getting #N/A!'s and want to
have them come through as zeros...any thoughts?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default =IF(ISNA + VLOOKUP?

Are you sure about those equals signs in the middle of the formula? Have
you tried it?
Did you perhaps intend to say
=IF(ISERROR(VLOOKUP(A3, ELMAX, 2,)),"0",(VLOOKUP(A3, ELMAX, 2,))) ?

Also, are you sure that you want a text string of "0". Isn't it more likely
that the OP wanted the *number* zero?
Perhaps =IF(ISERROR(VLOOKUP(A3, ELMAX, 2,)),0,(VLOOKUP(A3, ELMAX, 2,))) ?

And if you want to distinguish between NA() and other types of error,
wouldn't it be better to use ISNA as the OP suggested,
so perhaps =IF(ISNA(VLOOKUP(A3, ELMAX, 2,)),0,(VLOOKUP(A3, ELMAX, 2,))) ?
--
David Biddulph

"Atishoo" wrote in message
...
=IF(ISERROR(=VLOOKUP(A3, ELMAX, 2,)),"0",(=VLOOKUP(A3, ELMAX, 2,)))


"GD" wrote:

Hi, i have a lookup i'm currently using; "=VLOOKUP(A3, ELMAX, 2,)" I want
to
expand this formula to include an IF(ISNA aspect as when the value being
looked up doesn't occur in the lookup table i am getting #N/A!'s and
want to
have them come through as zeros...any thoughts?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default =IF(ISNA + VLOOKUP?

I'm making a lot of assumptions here...

Judging by your formula and that you want a 0 returned for errors...I'm
assuming your formula normally returns a number and that your table ELMAX is
in fact sorted in ascending order.

=LOOKUP(1E100,CHOOSE({1,2},0,VLOOKUP(A3,ELMAX,2)))

Or, based on your formula, the only time you'll get a #N/A error is if A3 is
less than the min value of column 1 of ELMAX.

=IF(A3<MIN(INDEX(ELMAX,,1)),0,VLOOKUP(A3,ELMAX,2))

--
Biff
Microsoft Excel MVP


"GD" wrote in message
...
Hi, i have a lookup i'm currently using; "=VLOOKUP(A3, ELMAX, 2,)" I want
to
expand this formula to include an IF(ISNA aspect as when the value being
looked up doesn't occur in the lookup table i am getting #N/A!'s and want
to
have them come through as zeros...any thoughts?



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
I need help with a IF(ISNA with vlookup LAB Excel Worksheet Functions 5 July 14th 08 11:28 PM
vlookup, IF, and ISNA MMBOLI Excel Discussion (Misc queries) 2 August 17th 06 04:53 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 10:20 AM.

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

About Us

"It's about Microsoft Excel"