Formula Help, SUMIFS

Chris_010101

Board Regular
Joined
Jul 24, 2017
Messages
188
Office Version
  1. 365
Platform
  1. Windows
Hello

Sheet 1

1678351135858.png


Sheet 2

1678351372074.png


In sheet 1, I need to know how many times each SMT has someone absent with 1 occasion, 2 occasions, 3 occasions and so on summed from sheet 2

So, using the above examples, Bob would show

1678351675394.png


In the above example sheet 2, I've collapsed some columns to protect private data.

Kind Regards
Chris
 

Attachments

  • 1678351312939.png
    1678351312939.png
    18.3 KB · Views: 5
Live Stats
Thanks. Don't use 'Live Stats' in a formula that is on 'Live Stats' worksheet. It is not necessary and can lead to errors in some circumstances

Chris_010101.xlsm
HP
1
2Bob1
3Bob2
4Dave2
5Bob2
6
Occasions Current 6 Months


Chris_010101.xlsm
RST
112
2Bob12
3Dave01
Live Stats
Cell Formulas
RangeFormula
S2:T3S2=COUNTIFS('Occasions Current 6 Months'!$H:$H,$R2,'Occasions Current 6 Months'!$P:$P,S$1)
 
Upvote 0
Solution

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Thanks. Don't use 'Live Stats' in a formula that is on 'Live Stats' worksheet. It is not necessary and can lead to errors in some circumstances

Chris_010101.xlsm
HP
1
2Bob1
3Bob2
4Dave2
5Bob2
6
Occasions Current 6 Months


Chris_010101.xlsm
RST
112
2Bob12
3Dave01
Live Stats
Cell Formulas
RangeFormula
S2:T3S2=COUNTIFS('Occasions Current 6 Months'!$H:$H,$R2,'Occasions Current 6 Months'!$P:$P,S$1)
Brilliant, thank you

With a bit of tweaking cell numbers, I got it there

=COUNTIFS('Occasions Current 6 Months'!$H:$H,$R3,'Occasions Current 6 Months'!$P:$P,S$2)

Many Thanks
Chris
 

Attachments

  • 1678354939890.png
    1678354939890.png
    7.3 KB · Views: 2
Upvote 0
You're welcome.

Have you tried XL2BB? It makes sample data much easier to deal with.
 
Upvote 0
but my work won't allow it, unfortunately!
So if creating a thread at work, good idea in post #1 every time to state that you cannot use XL2BB due to work restrictions. It will save people asking all the time.
 
Upvote 1

Forum statistics

Threads
1,216,087
Messages
6,128,738
Members
449,466
Latest member
Peter Juhnke

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