How do I reference a cell within excel named range?

前端 未结 6 1483
失恋的感觉
失恋的感觉 2021-02-02 06:08

For example, I have a named range A10—A20 as Age; how do I get Age[5] which is same as A14.

I can write \"=A14\" but I did l

6条回答
  •  自闭症患者
    2021-02-02 06:53

    Add a column to the left so that B10 to B20 is your named range Age.

    Set A10 to A20 so that A10 = 1, A11= 2,... A20 = 11 and give the range A10 to A20 a name e.g. AgeIndex.

    The 5th element can be then found by using an array formula:

    =sum( Age * (1 * (AgeIndex = 5) )
    

    As it's an array formula you'll need to press Ctrl + Shift + Return to make it work and not just return. Doing that, the formula will be turned into an array formula:

    {=sum( Age * (1 * (AgeIndex = 5) )}
    

提交回复
热议问题