#1   Report Post  
Rishab shah
 
Posts: n/a
Default vlookup function

I have data in my 5 sheets in the same work book.

Can vlookup command find the data from the 5 sheets.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

No. But you could look in each sheet until you find it.

=IF(NOT(ISERROR(VLOOKUP(A1,Sheet2!A:B,2,0))),VLOOK UP(A1,Sheet2!A:B,2,0),
IF(NOT(ISERROR(VLOOKUP(A1,Sheet3!A:B,2,0))),VLOOKU P(A1,Sheet3!A:B,2,0),
IF(NOT(ISERROR(VLOOKUP(A1,Sheet4!A:B,2,0))),VLOOKU P(A1,Sheet4!A:B,2,0),
"missing from all 3")))

(I stopped after looking at 3 sheets. You could continue until you try to add
the 8th lookup--excel can nest 7 functions.)

Rishab shah wrote:

I have data in my 5 sheets in the same work book.

Can vlookup command find the data from the 5 sheets.


--

Dave Peterson
  #3   Report Post  
Domenic
 
Posts: n/a
Default

Here's another way...

Assuming that for each of your five sheets Columns A and B contain your
lookup table, try the following formula (in a separate sheet)...

=VLOOKUP(A1,INDIRECT("'"&INDEX(B1:B5,MATCH(TRUE,CO UNTIF(INDIRECT("'"&B1:B
5&"'!A:A"),A1)0,0))&"'!A:B"),2,0)

....where A1 contains your lookup value and B1:B5 contains your list of
sheet names. The formula needs to be confirmed with
CONTROL+SHIFT+ENTER. If Column B contains numerical values, you could
use the following formula instead...

=SUMPRODUCT(SUMIF(INDIRECT("'"&B1:B5&"'!A:A"),A1,I NDIRECT("'"&B1:B5&"'!B:
B")))

....confirmed with just ENTER.

Hope this helps!


In article ,
"Rishab shah" <Rishab wrote:

I have data in my 5 sheets in the same work book.

Can vlookup command find the data from the 5 sheets.

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 Function Chris Manning Excel Discussion (Misc queries) 2 June 2nd 05 10:26 PM
How do I access data stored in a SQL server for vlookup function? M.Heer Excel Worksheet Functions 8 May 12th 05 09:51 PM
VLOOKUP Function using Data Ranges. Cal Excel Worksheet Functions 6 April 16th 05 03:26 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Simplify Vlookup function in Excel Budman Excel Worksheet Functions 7 March 27th 05 04:17 PM


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