A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Determining row number in which a value occurs



 
 
Thread Tools Display Modes
  #1  
Old February 17th, 2009, 04:02 AM posted to microsoft.public.excel.charting
Harold Christian[_2_]
external usenet poster
 
Posts: 4
Default Determining row number in which a value occurs

Hello,

If I have an Excel 2007 spreadsheet containing a column of numbers which are
sorted according to magnitude. I want to determine which row a specified
value occurs in, how do I do this? The value to be found is contained in a
user-entry cell and is a Named variable. Is there a way to do this with the
ROW function? If I for example assign the value the Name of "Sales" and refer
to the cell where it is stored, how do I seek that value in my column of data
and report the row number in which it occurs?

Thanks,
Harold
  #2  
Old February 17th, 2009, 08:33 AM posted to microsoft.public.excel.charting
Dave Curtis[_2_]
external usenet poster
 
Posts: 99
Default Determining row number in which a value occurs

Hi,
Is this any help?
Assuming your column of figures is in column A, with a heading in A1, and
the number you wish to find is in B2, then enter =MATCH(B2,A:A,0) in C2
should give you it's row number.Add or subract from the formula to adjust if
you have more or fewer heading rows.

Dave

"Harold Christian" wrote:

Hello,

If I have an Excel 2007 spreadsheet containing a column of numbers which are
sorted according to magnitude. I want to determine which row a specified
value occurs in, how do I do this? The value to be found is contained in a
user-entry cell and is a Named variable. Is there a way to do this with the
ROW function? If I for example assign the value the Name of "Sales" and refer
to the cell where it is stored, how do I seek that value in my column of data
and report the row number in which it occurs?

Thanks,
Harold

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.