Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default return row # of a certain cell

Is there a way to return the row # of a cell without using the cell's
location but rather its content? For example, I would like to return the the
row # of a cell that contains the word "Run".
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default return row # of a certain cell

Try something like this:

If the search word will only be in ONE column:
Example: Find the row containing "Run" in Col_F
=MATCH("Run",F:F,0)

If the search word may be in a range:
Example: Find the row containing "Run" in E1:G1000
=SUMPRODUCT((E1:G1000="Run")*ROW(E1:G1000))

Note: Those formulas presume the search term will only occur once.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Chris" wrote:

Is there a way to return the row # of a cell without using the cell's
location but rather its content? For example, I would like to return the the
row # of a cell that contains the word "Run".

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default return row # of a certain cell

Ah yes, appreciate it

"Ron Coderre" wrote:

Try something like this:

If the search word will only be in ONE column:
Example: Find the row containing "Run" in Col_F
=MATCH("Run",F:F,0)

If the search word may be in a range:
Example: Find the row containing "Run" in E1:G1000
=SUMPRODUCT((E1:G1000="Run")*ROW(E1:G1000))

Note: Those formulas presume the search term will only occur once.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Chris" wrote:

Is there a way to return the row # of a cell without using the cell's
location but rather its content? For example, I would like to return the the
row # of a cell that contains the word "Run".

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default return row # of a certain cell


try following function

=ADDRESS(MATCH("Run",A1:A10,0),2,4)

you can set cell reference instead of including the word "Run" in you
formula.
e.g if word "Run" is in cell B1 your formula would be:

=ADDRESS(MATCH(B1,A1:A10,0),2,4)
change the last digit i.e 4 if you want cell reference to be absolute
or mix (see help of ADDRESS function)

hope this would serve your purpose.

Chris Wrote:
Is there a way to return the row # of a cell without using the cell's
location but rather its content? For example, I would like to return
the the
row # of a cell that contains the word "Run".



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=569875

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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Return value in cell above the reference Jean Excel Discussion (Misc queries) 4 May 31st 06 07:50 PM
help with index to return particular cell value Allan from Melbourne Excel Discussion (Misc queries) 0 May 27th 06 03:20 AM
How do you make cell 2 return data if cell 1 contains text? jermsalerms Excel Discussion (Misc queries) 3 January 5th 06 10:44 PM
Select cell, Copy it, Paste it, Return to Previous cell spydor Excel Discussion (Misc queries) 1 December 30th 05 01:29 PM


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