Reference Sheet Sum Range Formula

Pinaceous

Well-known Member
Hi All,

I'm working with a cell formula, in trying to reference a rows sum from another worksheet's range.

For example, if I'm in SheetB working in cell A1 and I want to reference the sum of a range of D34:J34 in SheetA.

I thought it would look something like this but I'm getting an error:

VBA Code:
``='SheetA'!D34:J34``

Can anyone lend a hand?

Many thanks!
pinaceous

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Peter_SSs

MrExcel MVP, Moderator
I want to reference the sum of a range of D34:J34 in SheetA.
Not quite sure what you mean by that but does this help?

VBA Code:
``MsgBox Application.Sum(Sheets("SheetA").Range("D34:J34"))``
or
VBA Code:
``MsgBox Evaluate("sum(SheetA!D34:J34)")``

Pinaceous

Well-known Member
Hi Peter_SSs,

I'm sorry for the confusion,

I'm working within a cell formula not vba, where if I have the full cell formula:

='SheetA'!D34+'SheetA'!E34+'SheetA'!F34+'SheetA'!G34+'SheetA'!H34+'SheetA'!I34+'SheetA'!J34

How would I write it more abbreviated within the cell formula?

Something like this, but it doesn't work when I tried it:

='SheetA'!SUM(D34:J34)

Thanks,
P

Peter_SSs

MrExcel MVP, Moderator
I'm sorry for the confusion,

I'm working within a cell formula not vba, where if I have the full cell formula:
That confusion would be avoided if you used the function formula tags (as I have done below) instead of the vba tags for your formula.

How would I write it more abbreviated within the cell formula?

Excel Formula:
``=SUM(SheetA!D34:J34)``

johnnyL

Well-known Member

VBA Code:
``='SheetA'!D34:J34``
Try the following:

VBA Code:
``= SUM(SheetA!D34:J34)``

jinx! LOL

Okay thanks guys

Peter_SSs

MrExcel MVP, Moderator
You're welcome. Thanks for the follow-up.

Pinaceous

Well-known Member
Okay, now you got me curious …

How would this be abbreviated?

Excel Formula:
``='SheetA'!D31+'SheetA'!E31+'SheetA'!F31+'SheetA'!G31+'SheetA'!H31+'SheetA'!I31+'SheetA'!J31``

In lieu of writing out this whole expression?

Thank you!
-P

johnnyL

Well-known Member
Shockingly, very similar:

VBA Code:
``= SUM(SheetA!D31:J31)``

Replies
3
Views
163
Replies
3
Views
168
Replies
19
Views
542
Replies
2
Views
68
Replies
1
Views
437

1,141,619
Messages
5,707,445
Members
421,508
Latest member
someinternetuser

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?

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

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