Reference Sheet Sum Range Formula

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
1,107
Office Version
  1. 365
Platform
  1. Windows
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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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)")
 
Upvote 0
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
 
Upvote 0
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. ;)

1620789934143.png



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

Excel Formula:
=SUM(SheetA!D34:J34)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0
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
 
Upvote 0
Shockingly, very similar:

VBA Code:
= SUM(SheetA!D31:J31)
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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