Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wii
 
Posts: n/a
Default need help with lookup function


WHEN USING VLOOKUP.....


I am looking up an item in 2 different tables, however sometimes the
item is not in both tables.

When the one table does not have the item, excel returns a (n/a)
entry.

How do I program it to use a default value of 0 when no record is
found???


=VLOOKUP(A2,WAUKREF!A2:S1000,18,0)
+VLOOKUP(A2,WWREF!$A$2:$S$1000,18,0)

I THOUGHT MAYBE "0" IN THE ARGUMENT, BUT IT IS NOT WORKING.

IT IS BEING USED TO AUTO CALCULATE THE COMBINATION OF THE TWO FEILDS

ANY HELP WOULD BE GREATLY APPRECIATED


--
wii
------------------------------------------------------------------------
wii's Profile: http://www.excelforum.com/member.php...o&userid=33958
View this thread: http://www.excelforum.com/showthread...hreadid=537340

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default need help with lookup function

Try this:

=if(isna(VLOOKUP(A2,WAUKREF!A2:S1000,18,0)),0,VLOO KUP(A2,WAUKREF!A2:S1000,18,0))

+if(isna(VLOOKUP(A2,WWREF!$A$2:$S$1000,18,0)),0,VL OOKUP(A2,WWREF!$A$2:$S$1000,18,0))

Should give you what you want - the lower case will convert to upper
case once you type it in.

Hope this helps.

Pete

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
Lookup Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM
Lookup Function Problems FFW Excel Worksheet Functions 2 August 21st 05 04:22 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


All times are GMT +1. The time now is 02:50 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"