#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 147
Default VLOOKUP

Is it possible to do a vlookup across three seperate spreadsheets?
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default VLOOKUP

Not sure if there is an easier way to do it than to use 3 vlookups. Assuming
the value to look up is in A1, the lookup tables are in cells A1:A3 of
Sheet2, Sheet3, and Sheet4:

=IF(ISNUMBER(MATCH(A1,Sheet2!A1:A3,0)),VLOOKUP(A1, Sheet2!A1:B3,2,0),IF(ISNUMBER(MATCH(A1,Sheet3!A1:A 3,0)),VLOOKUP(A1,Sheet3!A1:B3,2,0),IF(ISNUMBER(MAT CH(A1,Sheet4!A1:A3,0)),VLOOKUP(A1,Sheet4!A1:B3,2,0 ),"")))


"Christine" wrote:

Is it possible to do a vlookup across three seperate spreadsheets?

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 594
Default VLOOKUP

=IF(AND(ISNA(VLOOKUP(A1,Sheet3!F:G,2,2)),ISNA(VLOO KUP(A1,Sheet2!F:G,2,2))),V
LOOKUP(A1,Sheet1!F:G,2,2),IF(ISNA(VLOOKUP(A1,Sheet 3!F:G,2,2)),VLOOKUP(A1,She
et2!F:G,2,2),VLOOKUP(A1,Sheet3!F:G,2,2)))

Change the parameters as required......
..........all on one line, watch out for word-wrap

Vaya con Dios,
Chuck, CABGx3


"Christine" wrote in message
...
Is it possible to do a vlookup across three seperate spreadsheets?



  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default VLOOKUP

Slightly shorter and fewer nested function calls

=IF(COUNTIF(Sheet2!A1:A3,A1),VLOOKUP(A1,Sheet2!A1: B3,2,0),IF(COUNTIF(Sheet3!A1:A3,A1),VLOOKUP(A1,She et3!A1:B3,2,0),IF(COUNTIF(Sheet4!A1:A3,A1),VLOOKUP (A1,Sheet4!A1:B3,2,0),"")))


If the data to be returned is numeric, you could try

=MIN(IF(Sheet2!A1:A3=A1,Sheet2!B1:B3),IF(Sheet3!A1 :A3=A1,Sheet3!B1:B3),IF(Sheet4!A1:A3=A1,Sheet4!B1: B3))

array entered using Cntrl+Shift+Enter


"JMB" wrote:

Not sure if there is an easier way to do it than to use 3 vlookups. Assuming
the value to look up is in A1, the lookup tables are in cells A1:A3 of
Sheet2, Sheet3, and Sheet4:

=IF(ISNUMBER(MATCH(A1,Sheet2!A1:A3,0)),VLOOKUP(A1, Sheet2!A1:B3,2,0),IF(ISNUMBER(MATCH(A1,Sheet3!A1:A 3,0)),VLOOKUP(A1,Sheet3!A1:B3,2,0),IF(ISNUMBER(MAT CH(A1,Sheet4!A1:A3,0)),VLOOKUP(A1,Sheet4!A1:B3,2,0 ),"")))


"Christine" wrote:

Is it possible to do a vlookup across three seperate spreadsheets?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 147
Default VLOOKUP

This formula works perfect, thank you so much for your help. I came across
one small glitch. On some of the cells where I use this formula I get an
answer of:
1/0/1900 when it should just be a blank cell (#N/A)

Is there something I'm missing?

"JMB" wrote:

Not sure if there is an easier way to do it than to use 3 vlookups. Assuming
the value to look up is in A1, the lookup tables are in cells A1:A3 of
Sheet2, Sheet3, and Sheet4:

=IF(ISNUMBER(MATCH(A1,Sheet2!A1:A3,0)),VLOOKUP(A1, Sheet2!A1:B3,2,0),IF(ISNUMBER(MATCH(A1,Sheet3!A1:A 3,0)),VLOOKUP(A1,Sheet3!A1:B3,2,0),IF(ISNUMBER(MAT CH(A1,Sheet4!A1:A3,0)),VLOOKUP(A1,Sheet4!A1:B3,2,0 ),"")))


"Christine" wrote:

Is it possible to do a vlookup across three seperate spreadsheets?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default VLOOKUP

Hi

In your table(s), column B contains some blanks.
A blank cell (with a date format will be treated as 1/0/1900.

Replace the blank cells in the tables with =NA() if you wish #N/A to be
returned.

--
Regards

Roger Govier


"Christine" wrote in message
...
This formula works perfect, thank you so much for your help. I came
across
one small glitch. On some of the cells where I use this formula I get
an
answer of:
1/0/1900 when it should just be a blank cell (#N/A)

Is there something I'm missing?

"JMB" wrote:

Not sure if there is an easier way to do it than to use 3 vlookups.
Assuming
the value to look up is in A1, the lookup tables are in cells A1:A3
of
Sheet2, Sheet3, and Sheet4:

=IF(ISNUMBER(MATCH(A1,Sheet2!A1:A3,0)),VLOOKUP(A1, Sheet2!A1:B3,2,0),IF(ISNUMBER(MATCH(A1,Sheet3!A1:A 3,0)),VLOOKUP(A1,Sheet3!A1:B3,2,0),IF(ISNUMBER(MAT CH(A1,Sheet4!A1:A3,0)),VLOOKUP(A1,Sheet4!A1:B3,2,0 ),"")))


"Christine" wrote:

Is it possible to do a vlookup across three seperate spreadsheets?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 147
Default VLOOKUP

I have a cloumn where I have used the vlookup formula. I also need to to have
a sum formula for this column. Some of the cells have a #N/A answer at the
moment which makes the end sum #N/A. Is there a formula I can use that will
add together whatever numbers I do have show up through the vlookup formula?

"CLR" wrote:

=IF(AND(ISNA(VLOOKUP(A1,Sheet3!F:G,2,2)),ISNA(VLOO KUP(A1,Sheet2!F:G,2,2))),V
LOOKUP(A1,Sheet1!F:G,2,2),IF(ISNA(VLOOKUP(A1,Sheet 3!F:G,2,2)),VLOOKUP(A1,She
et2!F:G,2,2),VLOOKUP(A1,Sheet3!F:G,2,2)))

Change the parameters as required......
..........all on one line, watch out for word-wrap

Vaya con Dios,
Chuck, CABGx3


"Christine" wrote in message
...
Is it possible to do a vlookup across three seperate spreadsheets?




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default VLOOKUP

Hi Christine

One way
=SUMIF(A:A,"<#N/A")
Change A:A to whatever column or range you want.
--
Regards

Roger Govier


"Christine" wrote in message
...
I have a cloumn where I have used the vlookup formula. I also need to
to have
a sum formula for this column. Some of the cells have a #N/A answer at
the
moment which makes the end sum #N/A. Is there a formula I can use that
will
add together whatever numbers I do have show up through the vlookup
formula?

"CLR" wrote:

=IF(AND(ISNA(VLOOKUP(A1,Sheet3!F:G,2,2)),ISNA(VLOO KUP(A1,Sheet2!F:G,2,2))),V
LOOKUP(A1,Sheet1!F:G,2,2),IF(ISNA(VLOOKUP(A1,Sheet 3!F:G,2,2)),VLOOKUP(A1,She
et2!F:G,2,2),VLOOKUP(A1,Sheet3!F:G,2,2)))

Change the parameters as required......
..........all on one line, watch out for word-wrap

Vaya con Dios,
Chuck, CABGx3


"Christine" wrote in message
...
Is it possible to do a vlookup across three seperate spreadsheets?






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 isn't working correctly? Dave F Excel Discussion (Misc queries) 2 October 14th 06 04:27 AM
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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