Can I do this with CountIF?

mojo300

Active Member
Joined
Apr 18, 2006
Messages
301
Is there a way to use a count if formula to calculate these for me. I have a lot of lines to do. What I need to add up the sums of column C for each item in column B. Example below
SumofCountIF.xls
BCDEF
132$ 99.5432120.76
232$ 7.722881.06
332$ 13.50681.06
4198116.18
528$ 77.20
628$ 3.86
7
86$ 77.20
96$ 3.86
10
11198$ 3.86
12198$ 27.00
13198$ 85.32
Sheet1
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Use SUMIF()

In F1: =Sumif($B1:$B1000,$E1,$C1:$C1000) copied down

adjust ranges to suit.
 
Upvote 0
This would be well suited for a pivot table.

But as a formula, you want SUMIF

Formula in F1:
=SUMIF(B:B,E1,C:C)

Copy down.
Book1
BCDEF
132$99.5432120.76
232$7.722881.06
332$13.50681.06
4198116.18
528$77.20
628$3.86
7
86$77.20
96$3.86
10
11198$3.86
12198$27.00
13198$85.32
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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