Using SUMIFS to add various categories

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,563
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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