Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have the following expression that does it, but don't quite get it.
{=SUM(($A1=$A$2:$C$10)*(ROW($A$2:$C$10)))} (it looks up the value contained in cell A1 and returns the row number of the cell in the array A2:C10 that has the same value as in A1) When I try to retype the above "formula" in a similar (or even the same) scenario, i get a #Value error, which leads me to believe that the formula above is created by some Excel tool, rather that user defined. Can anyone help me understand how it works. Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Rado
The formula is a array formula. Type it without the {} and press ctrl+shft+enter to commit. Excel with put in the {}. You will have to press ctrl+shft+enter even if you modify it. Hope this helps. Dave "Rado" wrote in message ... I have the following expression that does it, but don't quite get it. {=SUM(($A1=$A$2:$C$10)*(ROW($A$2:$C$10)))} (it looks up the value contained in cell A1 and returns the row number of the cell in the array A2:C10 that has the same value as in A1) When I try to retype the above "formula" in a similar (or even the same) scenario, i get a #Value error, which leads me to believe that the formula above is created by some Excel tool, rather that user defined. Can anyone help me understand how it works. Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Dave - very helpful!
"Dave" wrote: Rado The formula is a array formula. Type it without the {} and press ctrl+shft+enter to commit. Excel with put in the {}. You will have to press ctrl+shft+enter even if you modify it. Hope this helps. Dave "Rado" wrote in message ... I have the following expression that does it, but don't quite get it. {=SUM(($A1=$A$2:$C$10)*(ROW($A$2:$C$10)))} (it looks up the value contained in cell A1 and returns the row number of the cell in the array A2:C10 that has the same value as in A1) When I try to retype the above "formula" in a similar (or even the same) scenario, i get a #Value error, which leads me to believe that the formula above is created by some Excel tool, rather that user defined. Can anyone help me understand how it works. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to return a specific data point from a large array if I don't know the exact location? | Excel Discussion (Misc queries) | |||
VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY | Excel Worksheet Functions | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
return zero from a blank cell | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |