Using cell values as sheet reference

aesoprockin

New Member
Joined
Oct 19, 2022
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hi guys. Here's what I'm trying to do.

Column A contains names.
A2=name1
A3=name2
A4=name3

Then I have sheet1 and then every name has its own sheet. So there is a sheet called name1, a sheet called name2, etc.

I'd like to sum C:C on name1, but I'd like to reference the sheet by referencing A2, this way I can drag the formula down.

So I don't want to =sum(name1!C:C)
I'd like to somehow =sum(a2!C:C)

Maybe by use of indirect or something idk.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
=SUM(INDIRECT("'"&A2&"'!C:C"))
but the range will not change when copied - as its in "" so will always be C:C
 
Upvote 0
=SUM(INDIRECT("'"&A2&"'!C:C"))
but the range will not change when copied - as its in "" so will always be C:C
Thanks! I actually figured it out after I posted.
It wasn't working because I had commas in the sheet names so I just made a column for last names and matched that for the sheet names.
 
Upvote 0
you are welcome, thanks for the update
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top