IF and SUM formula Problem

Joined
May 17, 2011
Messages
27
I have column C (1000 rows) with categories R1, R2 or R3.

I have column D (1000 rows) with amounts of money.

What formula do I use to calculate the sum of money for both R1, R2 and R3 individually?


Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Sam and welcome to the Board
Try
Code:
=SUMPRODUCT(--(C1:C1000="R1"),(D1:D1000))
OR
=SUMIF(C1:C1000,"R1",D1:D1000)
Change the text to suit
 
Upvote 0
OK, then I think you may need to give us a little more info.
The formulae are fairly standard fare.

eg, are the categories exactly "R1", "R2", etc
have you ensured that the ranges in both column "C" and "D" are the same size in the formulae
 
Upvote 0
Sam
Is the data on a different sheet ?
If not, the "sheet!" is redundant anyway, as are the "$" signs.

Regardless, glad you achieved the desired result !!

Cheers
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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