enter a cell reference for a table name in a formula

Dear Experts:

I am using a structured reference for a sum that involves an Excel Table named 'Aspiration_Set'

=SUM(Aspiration_Set[[UNIT COST ]]). The formula works fine.

If I try to change this formula to enter a cell reference instead of the table name, it throws an error message.
Formula: =Sum(E3&[[UNIT COST]]). The cell E3 contains the name of the table, i.e. 'Aspiration_Set'

I am pretty sure Excel cannot handle a cell reference for a table name, am I right?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
Andreas HermleTeam leaderAsked:
Who is Participating?
 
Rgonzo1971Commented:
UNIT COST has a space at the end

and no ) after ]
then try if you don't want to correct the title
=SUM(INDIRECT(A2&"[UNIT COST ]"))

Open in new window

0
 
Rgonzo1971Commented:
Hi,

pls try
=Sum(INDIRECT(E3&"[[UNIT COST]]"))

Open in new window

Regards
0
 
Andreas HermleTeam leaderAuthor Commented:
Hi Rafael,

thank you very much for your swift help. Your code regrettably throws an error message: #Reference!

I guess it is just not possible what I would like to achieve.

Regards, Andreas
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Rgonzo1971Commented:
Could you send a dummy?
0
 
Andreas HermleTeam leaderAuthor Commented:
Hi Rafael,

here we are, thank you :-)

dummy_table_structured_reference.xlsx
0
 
Andreas HermleTeam leaderAuthor Commented:
Rafael,

how come you know and detect everyhing and anything? ;-)

Very nice Rafael, as always :-)
0
 
Andreas HermleTeam leaderAuthor Commented:
great job, as always.

Thank you very much

Regards, Andreas
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.