Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 21
Default Formula for Vlookup to refer more than 2 excel sheets?

i need to know what will be the formula for refering 3 spreadsheets in Vlookup?


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Formula for Vlookup to refer more than 2 excel sheets?


VLOOKUP both the lookup range and the return range are together on the
same sheet.

LOOKUP can do what you want, but your lookup range MUST be sorted in
ascending order to work.

=LOOKUP(A1,Sheet2!B1:B5,Sheet3!C5:C9)

Note, even though the lookup range and the return range are on separate
sheets, they HAVE to be exactly the same size, too, in the example 5
cells.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=46282

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula for Vlookup to refer more than 2 excel sheets?

"jojo" wrote:
i need to know what will be the formula for refering 3 spreadsheets in Vlookup?


Assume Sheet2, Sheet3 & Sheet4 (identically structured)
contain the vlookup reference table in cols A & B

Assume you want to vlookup the 3 sheets in this sequence:
Sheet2 first, then Sheet3, then Sheet4

In Sheet1,
you have the lookup values in A2 down
You could put this in B2 (all in one cell, decomposed for clarity):
=
IF(ISNA(VLOOKUP(A2,Sheet2!A:B,2,0)),
IF(ISNA(VLOOKUP(A2,Sheet3!A:B,2,0)),
IF(ISNA(VLOOKUP(A2,Sheet4!A:B,2,0)),"",
VLOOKUP(A2,Sheet4!A:B,2,0)),
VLOOKUP(A2,Sheet3!A:B,2,0)),
VLOOKUP(A2,Sheet2!A:B,2,0))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
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
find out which sheets refer to a cel Ivano Excel Worksheet Functions 1 April 24th 07 06:26 PM
refer to sequential sheets in a formula seanoniallain Excel Worksheet Functions 3 January 30th 07 11:25 PM
#REF in Sheets that refer to Pivot Tables Will C. Excel Discussion (Misc queries) 1 June 2nd 06 08:54 PM
How do I refer to the tab name in a cell formula in Excel? Steven Reames Excel Discussion (Misc queries) 1 August 3rd 05 07:22 PM
Excel should let me refer to the same formula on multiple sheets In need of help Excel Worksheet Functions 1 December 16th 04 08:21 PM


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