Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Finding the Row number based on contents of a cell

I would like to find the row number of a cell based on it contents. In
other words, search a column for a particular value and then find the
row number.

Is there an easy way to do this?

TIA

Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Finding the Row number based on contents of a cell

U can use the Match formula, for more detail u can get form the office help
..i.e. =match(a1,column,0)
Regars
Sebation.G

"Chris Youlden"
...
I would like to find the row number of a cell based on it contents. In
other words, search a column for a particular value and then find the row
number.

Is there an easy way to do this?

TIA

Chris



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default Finding the Row number based on contents of a cell

Hello Chris
As mentionned by chelsea, you may use the MATCH function but this will work
if your data starts at line 1.
If it doesn't, you can try this formula (amend references and criteria
accordingly):
=IF(MATCH("Criteria",A5:A13,0)<ROW(A5),MATCH("Crit eria",A5:A13,0)+(ROW(A5)-1),MATCH("Criteria",A5:A13,0))

But I am sure someone will have a better looking formula ;-)

HTH
Cordially
Pascal

"Chris Youlden" a écrit dans le message de news:
...
I would like to find the row number of a cell based on it contents. In
other words, search a column for a particular value and then find the row
number.

Is there an easy way to do this?

TIA

Chris



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Finding the Row number based on contents of a cell



Thanks to both of you. I didn't realise MATCH would return the cell
reference.

regards

Chris
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default Finding the Row number based on contents of a cell

Chris
MATCH does NOT return a cell reference.
It returns the position of the criteria found.

HTH
Cordially
Pascal

"Chris Youlden" a écrit dans le message de news:
...


Thanks to both of you. I didn't realise MATCH would return the cell
reference.

regards

Chris





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Finding the Row number based on contents of a cell

papou wrote:
Chris
MATCH does NOT return a cell reference.
It returns the position of the criteria found.



Ah, yes, of course. As my data is only in one column I was fooled by that!

thanks

Chris
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
Finding row # of last cell containing contents Bob Excel Worksheet Functions 7 January 8th 07 07:13 PM
Finding a value based on contents of two cells xjetjockey Excel Worksheet Functions 4 January 2nd 07 10:21 PM
Finding cell contents based on certain criteria thekovinc Excel Discussion (Misc queries) 1 March 15th 06 07:37 PM
Finding cell contents based on certain criteria thekovinc Excel Discussion (Misc queries) 1 March 15th 06 07:20 PM
Set number format based on cell contents nospaminlich Excel Discussion (Misc queries) 5 December 8th 05 06:41 PM


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