copying summing formula

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Ok, here's my problem. I would like an eash way of copying the sum formula across row B, each one with sheet number references corresponding to row A. ie. B1 is suming Sheet1, B2 is summing Sheet2, B3 is suming Sheet3. I tried something like =sum(Sheet&A1) and copy across row B but that doesn't work. Any ideas? Thanks.
 
Upvote 0
Oh, I got posting all f up. Here's what it should be I would like to copy the sum formula across Row 2 referencing to the Sheet number in Row 1. ie. A2 is suming Sheet1, B2 is suming Sheet2, C2 is suming Sheet3.
 
Upvote 0
You want an indirect formula..

so A2 = INDIRECT("SUM(Sheet" & A1 & "!A1:D1")

where A1 becomes a relative reference - i.e. when copied to B2, A1 should now become B1 etc...
 
Upvote 0
Works great! Thanks. Now, actually my reference worksheets are in another workbook. If I don't have that workbook open first, I'll get a #REF error. Is this the effect of INDIRECT? If that's the case, does that mean I'll just have to copy the suming formula and manually changing the sheet names? The reason for this is that some of the users don't have the access to the reference workbook.

Please advice. Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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