Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Vlookup on more than one sheet

Is it possible to make vlookup look at other sheets for a matching value when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)))

THis always returns #N/A even for values I know are present. Also I need the
formula to look on sheet1, if it does not find it look on sheet 2 and if it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Vlookup on more than one sheet

Try this:-

=IF(ISERROR(VLOOKUP(C6,Sheet1!A:B,1,FALSE)),VLOOKU P(C6,Sheet2!A:B,2,FALSE),(VLOOKUP(C6,Sheet1!A:B,1, FALSE)))

Mike

"mg_sv_r" wrote:

Is it possible to make vlookup look at other sheets for a matching value when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)))

THis always returns #N/A even for values I know are present. Also I need the
formula to look on sheet1, if it does not find it look on sheet 2 and if it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup on more than one sheet

You need to construct your formula like this:

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,2,FALSE)),IF(ISNA(V LOOKUP(C6,SHEET2!A:B,
2,FALSE)),"",VLOOKUP(C6,SHEET2!A:B,2,FALSE)*),VLOO KUP(C6,SHEET1!A:B,
2,FALSE))

I've assumed you want to bring data back from column B if you find a
match - you had it set to return from column 1.

Hope this helps.

Pete

On May 18, 1:02 pm, mg_sv_r wrote:
Is it possible to make vlookup look at other sheets for a matching value when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)*))

THis always returns #N/A even for values I know are present. Also I need the
formula to look on sheet1, if it does not find it look on sheet 2 and if it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Vlookup on more than one sheet



with the equation you have your two responses will be #NA or ""
your isna response is the ""
change the equation to
=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),VLOOKUP(C 6,SHEET2!A:B,1,FALSE),VLOOKUP(C6,SHEET1!A:B,1,FALS E))

to look at a third sheet
=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),IF(ISNA(V LOOKUP(C6,SHEET2!A:B,1,FALSE)),VLOOKUP(C6,SHEET3!A :B,1,FALSE),VLOOKUP(C6,SHEET2!A:B,1,FALSE)),VLOOKU P(C6,SHEET1!A:B,1,FALSE))


"mg_sv_r" wrote:

Is it possible to make vlookup look at other sheets for a matching value when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)))

THis always returns #N/A even for values I know are present. Also I need the
formula to look on sheet1, if it does not find it look on sheet 2 and if it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Vlookup on more than one sheet

Try this:

=IF(SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!A:A"),C 6)),C6,"not found")


"mg_sv_r" wrote:

Is it possible to make vlookup look at other sheets for a matching value when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)))

THis always returns #N/A even for values I know are present. Also I need the
formula to look on sheet1, if it does not find it look on sheet 2 and if it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Vlookup on more than one sheet

Hi John,

I got this from Peo Sjoblom in 2006. If you are looking across three sheets
now you may need to look across several latter. The example Peo offered
looks across 8 worksheets but it could be any number of sheets. I don't
pretend to fully understand the formula, (even with a fairly detailed
explanation of each aspect of the formula Peo e-mailed me). You will need
to make small modifications to suit your workbook and sheets.

=VLOOKUP(A2,INDIRECT("'"&INDEX(MySheets,MATCH(1,--(COUNTIF(INDIRECT("'"&MySheets&"'!A2:A200"),A2)0) ,0))&"'!A2:C200"),3,0)

This is an Array Formula so use Ctrl + Shift + Enter to commit.

Where... A2 is the cell with the lookup value on the sheet with the formula.

Where... MySheets is a named range of a list of all the sheet names you want
to lookup. So, somewhere on the formula sheet you would list all the
worksheets of interest, select that list and name it MySheets or whatever
name you want.

Where... "MySheets&"'!A2:A200" is the left most column on all the
worksheets. Yours may be B1:B350 or A1:A1500, just depends on how long your
list is. (This is NOT the Table_Array)

Where... A2:C200 is the Table_Array. Again, adjust to suit your sheets.
This one has three columns, yours may have only 2. If only two columns then
change ...A2:C200"),3,0) to ...A2:B200"),2,0).

HTH
Regards,
Howard

"mg_sv_r" wrote in message
...
Is it possible to make vlookup look at other sheets for a matching value
when
it does not find a value on the first sheet??

To look on two sheets I tried

=IF(ISNA(VLOOKUP(C6,SHEET1!A:B,1,FALSE)),"",(VLOOK UP(C6,SHEET2!A:B,1,FALSE)))

THis always returns #N/A even for values I know are present. Also I need
the
formula to look on sheet1, if it does not find it look on sheet 2 and if
it
still does not find it look on sheet3.

Any ideas?

Any help would be very much appreciated.

Regards
John



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
Can you do two Vlookup tables in one sheet? Bob C Excel Discussion (Misc queries) 1 October 13th 06 05:05 PM
vlookup across more than one sheet Anita Excel Worksheet Functions 1 June 6th 06 11:46 AM
how do i use vlookup to search for a value on another sheet? Danz Excel Worksheet Functions 4 April 7th 06 09:49 PM
VLOOKUP from another sheet, VBA Excel Worksheet Functions 7 July 10th 05 07:35 PM
vlookup with data on more than one sheet Greegan Excel Worksheet Functions 1 December 21st 04 03:34 AM


All times are GMT +1. The time now is 05:14 PM.

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"