Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Row reference formula not working with a VLookup

I am trying to find the row number of data that is found using the VLookup.

=ROW(VLOOKUP(B22,LabRow,1,FALSE))

B22 = a name (name to be looked up in a list to find the row number)
LabRow = a list of names to find the name

I need the row number of the found name

The above formula will not continue states - Formula Error, can any one tell
me what is wrong or a formula that will find a row number of a certain
criteria in a list.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default Row reference formula not working with a VLookup

=MATCH(B22,"firstcolumnofsearcharea,0)

Than you know at which place it occurs. Add a certain number of rows if
needed.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Roibn L Taylor" wrote:

I am trying to find the row number of data that is found using the VLookup.

=ROW(VLOOKUP(B22,LabRow,1,FALSE))

B22 = a name (name to be looked up in a list to find the row number)
LabRow = a list of names to find the name

I need the row number of the found name

The above formula will not continue states - Formula Error, can any one tell
me what is wrong or a formula that will find a row number of a certain
criteria in a list.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Row reference formula not working with a VLookup

With "LabRow" being a named range, try this:

=--MID(CELL("address",labrow),FIND("$",CELL("address" ,labrow),2),5)+MATCH(B22,labrow,0)-1

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Roibn L Taylor" wrote in message
...
I am trying to find the row number of data that is found using the VLookup.

=ROW(VLOOKUP(B22,LabRow,1,FALSE))

B22 = a name (name to be looked up in a list to find the row number)
LabRow = a list of names to find the name

I need the row number of the found name

The above formula will not continue states - Formula Error, can any one
tell
me what is wrong or a formula that will find a row number of a certain
criteria in a list.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Row reference formula not working with a VLookup

I need the row number of the found name

The above formula will not continue states - Formula Error, can any one tell
me what is wrong or a formula that will find a row number of a certain
criteria in a list.


What is wrong:
VLOOKUP finds the value in a cell. Can't get the row number from that.
MATCH finds the row number of a cell. But it may be tricky....

Note that MATCH finds the row number within the data area you specify,
not necessarily the Excel row number. So, if your data is in A3:D10
and the MATCH returns "3", it means the 3rd line of data, so the
reference it found is in cell A5. This is why Wigi said "Add a certain
number of rows if needed". Depending on what you want Excel to do, you
may need to add an amount to the MATCH to make it meaningful. In my
little scenario, you'd add 2 since you are looking at something that
is actually in A5 and you'll need Excel to see "5". So Wigi's formula
becomes: MATCH(B22,A3:A10,0)+2
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Row reference formula not working with a VLookup

Try this instead ... it's a little shorter:

=CELL("row",labrow)+MATCH(B22,labrow,0)-1
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RagDyer" wrote in message
...
With "LabRow" being a named range, try this:

=--MID(CELL("address",labrow),FIND("$",CELL("address" ,labrow),2),5)+MATCH(B22,labrow,0)-1

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Roibn L Taylor" wrote in message
...
I am trying to find the row number of data that is found using the
VLookup.

=ROW(VLOOKUP(B22,LabRow,1,FALSE))

B22 = a name (name to be looked up in a list to find the row number)
LabRow = a list of names to find the name

I need the row number of the found name

The above formula will not continue states - Formula Error, can any one
tell
me what is wrong or a formula that will find a row number of a certain
criteria in a list.





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
Excel 2002: Vlookup formula not working Mr. Low Excel Discussion (Misc queries) 3 June 5th 07 02:49 PM
VLOOKUP formula not working. HELP! japc90 Excel Discussion (Misc queries) 4 April 30th 07 02:40 AM
Cell reference in vlookup not working ericgo Excel Worksheet Functions 4 October 20th 06 07:46 PM
VLOOKUP & Dates: Why is this Formula working? Ali Excel Worksheet Functions 1 January 18th 06 01:37 PM
Excel formula-cell reference not working pbog Excel Worksheet Functions 3 December 15th 05 08:38 PM


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