Sum of a range....

Rayzzor

Board Regular
Joined
Sep 10, 2004
Messages
64
Hey all,

I was wondering if there is a way to get a sum of a column of values based on a series range of cells.

This is the scenerio:

c19 has the text = 4X
d19 has the text = 83
e19 = 5M
f19 = C2
g19 = KN
h19= 21

Now what I am trying to do (without making the formula 15 miles long) is create a total of the range 'Raw - Canada'!$y$2:$y$5000 if 'Raw - Canada'!$L$2:$$5000 has one of the values I listed above.

Is there a way to have the formula similar to this:

=SUMIF('Raw - Canada'!$L$2:$L$5000,$E$19:$H$19,'Raw - Canada'!$Y$2:$Y$5000)

Or do I have to do a sumproduct and declare every single one? (which will be a problem because I have another formula with 9 cases.

Thanks!!!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
=SUMPRODUCT(SUMIF('Raw - Canada'!$L$2:$L$5000,$E$19:$H$19,'Raw - Canada'!$Y$2:$Y$5000))

Rayzzor said:
Hey all,

I was wondering if there is a way to get a sum of a column of values based on a series range of cells.

This is the scenerio:

c19 has the text = 4X
d19 has the text = 83
e19 = 5M
f19 = C2
g19 = KN
h19= 21

Now what I am trying to do (without making the formula 15 miles long) is create a total of the range 'Raw - Canada'!$y$2:$y$5000 if 'Raw - Canada'!$L$2:$$5000 has one of the values I listed above.

Is there a way to have the formula similar to this:

=SUMIF('Raw - Canada'!$L$2:$L$5000,$E$19:$H$19,'Raw - Canada'!$Y$2:$Y$5000)

Or do I have to do a sumproduct and declare every single one? (which will be a problem because I have another formula with 9 cases.

Thanks!!!
 
Upvote 0

Forum statistics

Threads
1,203,455
Messages
6,055,541
Members
444,794
Latest member
HSAL

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