Using SUMIFS to add various categories

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have tried to add the various categories of Staff -see C14 to C18, but the formula returns zero


See my sample data below


It would be appreciated if someone could kindly assist me



Excel 2012
BC
1Clerical- Admin12
2Supervisors- Service3
3Technicians- Service5
4Apprentices- Service4
5Salesmen- N/V6
6Salesmen- U/V3
7Salesmen- Parts3
8General- Admin1
9
10
11Total37
12
13
14Admin0
15Service0
16N/V0
17U/V0
18Parts0
19
20
21Total0
Sheet1
Cell Formulas
RangeFormula
C11=SUM(C1:C10)
C14=SUM(SUMIFS(C1:C13,B1:B13,"?*"&B14&""""))
C21=SUM(C14:C20)
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi, maybe for C14 copied down.

=SUMIFS($C$1:$C$13,$B$1:$B$13,"*"&B14)
 
Last edited:
Upvote 0
If the criteria is always going to be to the right with text before it you could try...

Excel 2013
BC
1Clerical- Admin12
2Supervisors- Service3
3Technicians- Service5
4Apprentices- Service4
5Salesmen- N/V6
6Salesmen- U/V3
7Salesmen- Parts3
8General- Admin1
9
10
11Total37
12
13
14Admin13
15Service12
16N/V6
17U/V3
18Parts3
19
20
21Total37

<tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
C14=SUMIF($B$1:$B$8,"*"&B14,$C$1:$C$8)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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