Display cell address if condition is matched
--------------------------------------------------------------------------------
For Excel 2003 or 2007: I want to display the CELL ADDRESS and not the values when a condtion is met. For example: In column A1:A10 you have positive numbers or negative numbers. The same in column B1:B10. Column A are the x coordinates and B are y coordinates.
In cell C1 I input 2 and in D1 I input -4. If the coordinates 2,-4 matches the exact coordinates of A1,B1 then I want to display the CELL ADDRESS of where those values matched not the values.
Formulas in cell E1 it will display $A$1 and in cell F1 it will display $B$1 instead of 2,-4. If it doesn't match then it displays nothing. Please help
I've tried the following but didn't work.
CELL E1:
{=IF(AND($C$1=0,$D$1=0),"",IF(SUM(($A$1:$A$10=$C$1)*($B$1:$B$10=$D$1)*1)>0,address,""))}
CELL F1:
{=IF(AND($C$1=0,$D$1=0),"",IF(SUM(($A$1:$A$10=$C$1)*($B$1:$B$10=$D$1)*1)>0,address,""))}
Bookmarks