Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Vlook up or if statement helps!

Hello,
Can anyone assist me in finding out what would be the best way to search for
a matching value within 5 different worksheets simultaneously?

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Vlook up or if statement helps!

If you could create a named range containing the data on the 5 worksheets,
you could use something like VLOOKUP.

"Jurassien" wrote:

Hello,
Can anyone assist me in finding out what would be the best way to search for
a matching value within 5 different worksheets simultaneously?

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Vlook up or if statement helps!

Hi Jurassien,

I got this from Peo Sjoblom. Which is an array formula... use Ctrl + Shift
+ Enter to commit. You will get { }brackets around the formula if done
correctly.

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

Where A2 is the lookup value. (adjust to suit)

MySheets is a named range of the 5 worksheets you want to lookup. (Make a
list of the sheet names, select them and in the name box type in your
choosen name.)

A2:C200 is the Lookup Array of each sheet. (adjust to suit)

The ...,3,0) returns the value from the 3rd column, if you have two columns
then change to 2, and the ...,0) says to look for an exact match.

HTH
Regards,
Howard

"Jurassien" wrote in message
...
Hello,
Can anyone assist me in finding out what would be the best way to search
for
a matching value within 5 different worksheets simultaneously?

Thanks,




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
Helps: Type Mismatch Error Jurassien Excel Discussion (Misc queries) 1 March 15th 07 08:30 PM
Combining a Vlook up with and If then statement Sweetetc Excel Worksheet Functions 14 May 2nd 06 10:06 PM
How do i get the character(usually a paperclip) that helps you? becann82 Excel Discussion (Misc queries) 1 January 31st 06 10:40 PM
Vlook in VBA with If statement Jeff Excel Discussion (Misc queries) 1 September 20th 05 07:26 PM
If Then Lookups - If Someone helps me, Then I will be happier!!!! Andy Excel Worksheet Functions 7 July 20th 05 10:43 PM


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