1

Excel example

Let suppose I have several named ranges, P2017.01, P2017.02 and so on. These ranges hold values from year 2017 month 01, month 02, and so on. I want to sum the month values one-by-one. I want to construct the names of the ranges, and use these constructed names as a function argument. Example: the prefix 'P2017' is in B3, the index of the month is in C3. I concatenate B3&'.'&C3 and store the value to D3.

In E3 I want to =SUM(INDEX(P2017.01;0;2)), but instead of writing the name P2017.01 I want to acquire the name from the value of cell D3.

What should I write to E3 to do that?

3

1 Answer 1

1

Try following formula...

=SUM(INDEX(INDIRECT(D3),0,2))

Comma (,) or semicolon (;) depens on regional settings.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, you gave me the daily brand new excel function today! :)
Glad to know it helps you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.