Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

Hello All,

I have a worksheet (sheet1) where I would like to do a vlookup in col b1,
from data that is in worksheet 2 (sheet2, a1:d100), and worksheet 3 ( sheet 3,
a1:d100). the output for the vlookup in sheet 1 is in either sheet 2 or sheet
3.

I am new to excel and can do a vlookup by referncing 1 sheet, but having
massive problems with referencing 2 sheets.

Any help would be very appreciated, and an example spreadsheet with formula
would be great

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Vlookup on mutiple worksheets

You can use ISNA to determine if a Vlookup is going to return something. So
you could do something like this...

=if(isna(vlookup(A1, sheet2!a1:d100, 2, false)), vlookup(A1, sheet3!a1:d100,
2, false), vlookup(A1, sheet2!a1:d100, 2, false))

--
HTH...

Jim Thomlinson


"nickd via OfficeKB.com" wrote:

Hello All,

I have a worksheet (sheet1) where I would like to do a vlookup in col b1,
from data that is in worksheet 2 (sheet2, a1:d100), and worksheet 3 ( sheet 3,
a1:d100). the output for the vlookup in sheet 1 is in either sheet 2 or sheet
3.

I am new to excel and can do a vlookup by referncing 1 sheet, but having
massive problems with referencing 2 sheets.

Any help would be very appreciated, and an example spreadsheet with formula
would be great

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup on mutiple worksheets

the output ... is in either sheet 2 or sheet 3.

One way:

=VLOOKUP(A1,IF(COUNTIF(Sheet2!A1:A100,A1),Sheet2!A 1:D100,Sheet3!A1:D100),2,0)

--
Biff
Microsoft Excel MVP


"nickd via OfficeKB.com" <u35935@uwe wrote in message
news:800544781c781@uwe...
Hello All,

I have a worksheet (sheet1) where I would like to do a vlookup in col b1,
from data that is in worksheet 2 (sheet2, a1:d100), and worksheet 3 (
sheet 3,
a1:d100). the output for the vlookup in sheet 1 is in either sheet 2 or
sheet
3.

I am new to excel and can do a vlookup by referncing 1 sheet, but having
massive problems with referencing 2 sheets.

Any help would be very appreciated, and an example spreadsheet with
formula
would be great

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

Thanks Jim,

This is not working for me ???

Jim Thomlinson wrote:
You can use ISNA to determine if a Vlookup is going to return something. So
you could do something like this...

=if(isna(vlookup(A1, sheet2!a1:d100, 2, false)), vlookup(A1, sheet3!a1:d100,
2, false), vlookup(A1, sheet2!a1:d100, 2, false))

Hello All,

[quoted text clipped - 10 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

Thanks Jim,

This is not working for me ???

Jim Thomlinson wrote:
You can use ISNA to determine if a Vlookup is going to return something. So
you could do something like this...

=if(isna(vlookup(A1, sheet2!a1:d100, 2, false)), vlookup(A1, sheet3!a1:d100,
2, false), vlookup(A1, sheet2!a1:d100, 2, false))

Hello All,

[quoted text clipped - 10 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

Thanks Jim,

This is not working for me ???

Jim Thomlinson wrote:
You can use ISNA to determine if a Vlookup is going to return something. So
you could do something like this...

=if(isna(vlookup(A1, sheet2!a1:d100, 2, false)), vlookup(A1, sheet3!a1:d100,
2, false), vlookup(A1, sheet2!a1:d100, 2, false))

Hello All,

[quoted text clipped - 10 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

This only gives me the output from sheet 2, those in sheet 3 have returned
n/a.

T. Valko wrote:
the output ... is in either sheet 2 or sheet 3.


One way:

=VLOOKUP(A1,IF(COUNTIF(Sheet2!A1:A100,A1),Sheet2! A1:D100,Sheet3!A1:D100),2,0)

Hello All,

[quoted text clipped - 13 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup on mutiple worksheets

Here's a small sample file that demonstrates this:

http://cjoint.com/?cuw0bYYNYZ

I'm assuming:

the output ... is in either sheet 2 or sheet 3.


Which I interpret to mean, the lookup_value *does* exist. It's on one sheet
or the other.



--
Biff
Microsoft Excel MVP


"nickd via OfficeKB.com" <u35935@uwe wrote in message
news:8007640e8e03f@uwe...
This only gives me the output from sheet 2, those in sheet 3 have returned
n/a.

T. Valko wrote:
the output ... is in either sheet 2 or sheet 3.


One way:

=VLOOKUP(A1,IF(COUNTIF(Sheet2!A1:A100,A1),Sheet2 !A1:D100,Sheet3!A1:D100),2,0)

Hello All,

[quoted text clipped - 13 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200802/1



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Vlookup on mutiple worksheets

Thank you, this has benn very helpful, much appreciated !

T. Valko wrote:
Here's a small sample file that demonstrates this:

http://cjoint.com/?cuw0bYYNYZ

I'm assuming:

the output ... is in either sheet 2 or sheet 3.


Which I interpret to mean, the lookup_value *does* exist. It's on one sheet
or the other.

This only gives me the output from sheet 2, those in sheet 3 have returned
n/a.

[quoted text clipped - 10 lines]

Thanks


--
Message posted via http://www.officekb.com

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup on mutiple worksheets

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"nickd via OfficeKB.com" <u35935@uwe wrote in message
news:8008818a5d151@uwe...
Thank you, this has benn very helpful, much appreciated !

T. Valko wrote:
Here's a small sample file that demonstrates this:

http://cjoint.com/?cuw0bYYNYZ

I'm assuming:

the output ... is in either sheet 2 or sheet 3.


Which I interpret to mean, the lookup_value *does* exist. It's on one
sheet
or the other.

This only gives me the output from sheet 2, those in sheet 3 have
returned
n/a.

[quoted text clipped - 10 lines]

Thanks


--
Message posted via http://www.officekb.com



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 for mutiple rows mithu Excel Worksheet Functions 6 March 22nd 07 02:21 PM
can i.. do a COUNT through mutiple worksheets? ninetynine Excel Discussion (Misc queries) 2 January 25th 06 02:59 PM
creating mutiple worksheets malvis Excel Discussion (Misc queries) 1 August 2nd 05 11:54 PM
printing mutiple worksheets on one page reedsmf New Users to Excel 4 April 2nd 05 09:24 PM
Combine Mutiple Worksheets into one Dean F Excel Discussion (Misc queries) 11 November 27th 04 05:18 PM


All times are GMT +1. The time now is 08:10 AM.

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"