Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Using Vlookup wheb value missing

How can you when using vlookup return a value of 0 rather than #N/A when the
lookup value is not present in the table array?

Thanks

Nick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Using Vlookup wheb value missing

=IFNA(Vlookup(),0,Vlookup())

I fear this is the only way

HTH
--
AP

"nir020" a écrit dans le message de
...
How can you when using vlookup return a value of 0 rather than #N/A when

the
lookup value is not present in the table array?

Thanks

Nick



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Using Vlookup wheb value missing

Nick

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))

Regards

Trevor


"nir020" wrote in message
...
How can you when using vlookup return a value of 0 rather than #N/A when
the
lookup value is not present in the table array?

Thanks

Nick



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Using Vlookup wheb value missing

My prefered way is to use an if function with countif to determine if the
vallue being looked up exists, something like this...

=IF(COUNTIF($D$1:$D$10, A1)=0,0, VLOOKUP(A1, $D$1:$E$10, 2, FALSE))
--
HTH...

Jim Thomlinson


"nir020" wrote:

How can you when using vlookup return a value of 0 rather than #N/A when the
lookup value is not present in the table array?

Thanks

Nick

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Using Vlookup wheb value missing

=if(iserror(match(lookupvalue,firstcolumnofrange,0 )),0,vlookup(lookupvalue,range,2,false))

--
Regards,
Tom Ogilvy


"nir020" wrote:

How can you when using vlookup return a value of 0 rather than #N/A when the
lookup value is not present in the table array?

Thanks

Nick



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Using Vlookup wheb value missing

Use:

C1 <lookup value
A1:B20 <lookup table

=IF(ISERROR(VLOOKUP(C1,A1:B20,2,FALSE)),0,VLOOKUP( C1,A1:B20,2,FALSE))


HTH

"nir020" wrote:

How can you when using vlookup return a value of 0 rather than #N/A when the
lookup value is not present in the table array?

Thanks

Nick

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 returns n/a for all lines - what am I missing? Lorina Excel Worksheet Functions 3 November 10th 09 05:38 PM
VLOOKUP - recover missing data source daveberm Excel Worksheet Functions 0 January 26th 08 05:42 AM
Charting with missing data or empty strings from vlookup() MJS Charts and Charting in Excel 2 February 23rd 07 07:16 AM
vlookup missing link Enrique Excel Discussion (Misc queries) 2 January 30th 07 06:17 PM
VLOOKUP and Missing Values JimFor Excel Programming 1 January 21st 05 02:37 AM


All times are GMT +1. The time now is 05:25 AM.

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"