View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre[_3_] Ron Coderre[_3_] is offline
external usenet poster
 
Posts: 60
Default Find data in Range, Return Cell Reference

Using your example,
try this:

=IF(COUNTIF(B1:D15,A1),ADDRESS(MAX(INDEX((B1:D15=A 1)*
ROW(1:15),0)),MAX(INDEX((B1:D15=A1)*
COLUMN(B:D),0))),"no match")

or...shorter...but needs CTRL+SHIFT+ENTER:
=IF(COUNTIF(B1:D15,A1),ADDRESS(MAX((B1:D15=A1)*
ROW(1:15)),MAX((B1:D15=A1)*COLUMN(B:D))),"no match")

With that example, the formulaS return: $D$4

Is that something you can work with?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"Hugh" wrote in message
...
I want to see if a value in A1 is present in an array, say B1:D15, and
then
return the refernce of the cell in which the value is held. The value in
A1
will not occur more than once in the array.

For instance, if the value in A1=30, and 30 appears in cell D4, I want to
return D4 (or $D$4).

Is there a formula or function that will return the cell reference of cell
containing a specific value?

Thanks in advance.