Need some expert help: abt inserting names in formula

cpis0002

Board Regular
Joined
Jul 28, 2007
Messages
96
Hi, this is not just simply inserting defined names into formulas.
This is mainly for use between different worksheets.

So for example: if I have 52 sheets named: Week 1, Week 2, ..., Week 52.

And on a separate sheet I have the following:

Column A Column B
Week 1 ='Week 1'!SUM($B$3:$B$8)
Week 2 ='Week 2'!SUM($B$3:$B$8)
... and so on.

Is there a way so that in column B, I don't have to manually change the week number, but it will take the value from column A. Kind of like:
='A1'!SUM($B$3:$B$8)

I know this doesn't work, but I need something like it to work. Any ideas?

I am no good at all on Visual Basic
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
So you want, from column A through column B to go Week1, Week2, Week3, etc...?

If so, enter the following function into Column A then fill across.
=concatenate("Week ",COLUMN())
 
Upvote 0
I think what you want is INDIRECT.

=INDIRECT("'" & A1 & "'!B3:B8")
 
Upvote 0
Sorry, lost something in the HTML.

Formula in Cell B2 is:
="'"&A2&"'!"&"$B$3:$B$8"
Formula in Cell C2 is:
=SUM(INDIRECT(B2))
Formula in Cell D2 is:
=SUM(INDIRECT("'"&A2&"'!"&"$B$3:$B$8"))

(Ampersand versions)

Note: my first failed attempt was something like Indirect(Sum(Week1!B3:B8)) but the sum wasn't working as part of the string inside indirect...that's what I meant about using indirect directly...). :LOL:
 
Upvote 0
Oops, my bad.:oops:

Missed the all important SUM.:)

=SUM(INDIRECT("'" & A1 & "'!B3:B8"))
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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