Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

a simple question: the reference of a cell

Status
Not open for further replies.

blondwitch

Materials
Sep 21, 2010
5
I am not very good with excel... Looking for a command that would search for a given value in a column and return a reference (in a form C32 for. eg.) of the cell that value is in.

How can i do that?
 
Replies continue below

Recommended for you

Let's say you wanted to find the address in column D which contains the value 3. Use:
=ADDRESS(MATCH(3,D:D)+1,4)

=====================================
(2B)+(2B)' ?
 
Or perhaps a little more legible, don't use 4 for column argument. Use
=ADDRESS(MATCH(3,D:D)+1,COLUMN(D:D))

=====================================
(2B)+(2B)' ?
 
Whoops. The +1 was not required.
Final answer (to find address containing "3" within column D:
=ADDRESS(MATCH(3,D:D),COLUMN(D:D))

=====================================
(2B)+(2B)' ?
 
My problem is that it returns the reference in form $D$15 when I need it only D15. Is there any cure?
 
Ok I found it.

But now why this does not work:

If:

=ADDRESS(Match(32,A:A),1,4,TRUE)

returns the 'A13'

and

=Offset(A13,1,0,1,1)

returns the value of the cell A14,

why does

=Offset(ADDRESS(Match(32,A:A),1,4,TRUE),1,0,1,1)

does not return the value of the cell A14???

 
Try this:
=OFFSET(INDIRECT(ADDRESS(MATCH(32,A:A),1,4,TRUE)),1,0,1,1)

=====================================
(2B)+(2B)' ?
 
i've usually dumbed this down so that i have the maximum of the range in one cell then use another column to compare the maximum to the current row value ... if current row = maximum then cell = maximum (or 1 or "!!") else " "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor