Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default vlookup or match function across worksheets (x-post - sorry)

For example I have 15 worksheets in an excel workbook named A through
N. I am looking for the values in worksheet A, Cell A1 (through
A250) across worksheets B through N and return the worksheet name
that the value exists in. (Worksheet C for example) The first or any
exact match is fine. If it doesn't exist #N/A is also fine I can work
with the errors returned myself.

Is this possible? If the worksheet name is too difficult then any
valid result (complete path to cell?) is sufficient.

Thank you in advance

(Very sorry for the cross / double post) I feel I might have used the
incorrect group the first time (Not exactly a .MISC)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default vlookup or match function across worksheets (x-post - sorry)

SearchValue = "ABC"
Found = False
for each sht in thisworkbook.sheets
if sht.name < "A" then
with thisworkbook.sheets("A")
set c = .Range("A1:A250").find(what:=SearchValue, _
lookin:=xlvalues,lookat:xlwhole)
if not c is nothing then
msgbox("Found in sheet: " & sht.name)
end if
end with
end if

next sht

"Ant" wrote:

For example I have 15 worksheets in an excel workbook named A through
N. I am looking for the values in worksheet A, Cell A1 (through
A250) across worksheets B through N and return the worksheet name
that the value exists in. (Worksheet C for example) The first or any
exact match is fine. If it doesn't exist #N/A is also fine I can work
with the errors returned myself.

Is this possible? If the worksheet name is too difficult then any
valid result (complete path to cell?) is sufficient.

Thank you in advance

(Very sorry for the cross / double post) I feel I might have used the
incorrect group the first time (Not exactly a .MISC)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,180
Default vlookup or match function across worksheets (x-post - sorry)

For a macro that has no typos
and has been tested,
see your other post.
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
Match & Vlookup Function roter789 Excel Worksheet Functions 1 August 20th 09 06:44 AM
VlookUp or may be Match Function Hardeep_kanwar[_2_] Excel Worksheet Functions 1 February 20th 09 02:17 PM
Vlookup or match function? Belinda7237 Excel Worksheet Functions 6 May 17th 08 03:00 AM
vlookup or match function across worksheets ? Ant[_4_] Excel Discussion (Misc queries) 5 March 3rd 08 10:45 PM
vlookup/ match or other function?? Claudia Excel Worksheet Functions 3 May 16th 07 05:23 PM


All times are GMT +1. The time now is 05:30 AM.

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"