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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Use SUMIF()

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

adjust ranges to suit.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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
 

Forum statistics

Threads
1,137,341
Messages
5,680,922
Members
419,945
Latest member
Carrie Sellers

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