# copying summing formula

Book1
ABCDEF
1234567
20
3
4
Sheet1

### Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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.

Darn, that should be copying across Row 2 corresponding to the sheet number in Row 1.

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.

A2 is suming Sheet2, B2 is suming Sheet3, C2 is suming Sheet4.

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...

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.

=INDIRECT will only work with open workbooks

Replies
1
Views
107
Replies
3
Views
292
Replies
1
Views
217
Replies
2
Views
145
Replies
0
Views
128

1,202,987
Messages
6,052,936
Members
444,616
Latest member
novit19089

### 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.

### Which adblocker are you using?

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

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