Reference Sheet Sum Range Formula

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
693
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
Joined
May 28, 2005
Messages
50,645
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Jun 11, 2014
Messages
693
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
Joined
May 28, 2005
Messages
50,645
Office Version
  1. 365
Platform
  1. Windows
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)
 

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
693

ADVERTISEMENT

Okay thanks guys
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
50,645
Office Version
  1. 365
Platform
  1. Windows
You're welcome. Thanks for the follow-up. :)
 

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
693
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
Joined
Nov 7, 2011
Messages
1,339
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
Shockingly, very similar:

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

Forum statistics

Threads
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?

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
Top