Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default lookup single value in entire worksheet

I have a single list of values (we'll call it A:A) that I need to find
where they exist in another worksheet (Sheet2A:IV).

Obviously, if I do a Vlookup (or Hlookup), it'll only look in row A on
Sheet2 for my specified value. Is there a formula that will look in
all cells, in Sheet2, for a specific record in Sheet1?

Thanks for your help!!!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default lookup single value in entire worksheet

Try this little UDF:

Function where_is(r As Range) As String
Dim r2, r3 As Range
where_is = ""
v = r.Value
Set r2 = Worksheets("Sheet2").Range("A1:IV65536")
For Each r3 In r2
If r3.Value = v Then
where_is = r3.Address
Exit Function
End If
Next
End Function
--
Gary's Student


" wrote:

I have a single list of values (we'll call it A:A) that I need to find
where they exist in another worksheet (Sheet2A:IV).

Obviously, if I do a Vlookup (or Hlookup), it'll only look in row A on
Sheet2 for my specified value. Is there a formula that will look in
all cells, in Sheet2, for a specific record in Sheet1?

Thanks for your help!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default lookup single value in entire worksheet

You are the man. Or woman. Whichever.

That is really cool, I need to learn how to do this stuff.

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
how to scroll through active cells instead of entire worksheet mark smith Excel Discussion (Misc queries) 2 March 13th 06 02:29 AM
multiple worksheet lookup? spirosu Excel Discussion (Misc queries) 1 March 2nd 06 05:13 PM
update multiple worksheet in single book heatmiserkmp Excel Worksheet Functions 8 November 3rd 05 01:08 AM
is there a way to export just 1 worksheet of an entire workbook lizzie14 Excel Worksheet Functions 1 August 11th 05 04:44 PM
Converting a muliple page worksheet to a single page worksheet [email protected] Excel Discussion (Misc queries) 2 June 30th 05 09:40 PM


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