Countifs?

chaboyski

Board Regular
Joined
Aug 18, 2020
Messages
59
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

just wondering what formula would i be able to use to do counting of exceptions with multiple criteria?

i needed to count column H criteria based on what time.

heres the data

DV Template.xlsx
BCDEFGHIJKLMNOPQR
1First NameLast NameIDSort NameSeniorityCodeDescriptionRankNominal DateDay of WeekStartStart Time of DayStopStop Time of DayDurationMemoTime
2UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:00 AM07:00 AM07:30 AM07:30 AM00:307:00 AM
3OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE584/4/2023Tuesday07:00 AM07:00 AM07:19 AM07:19 AM00:197:00 AM
4OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE584/4/2023Tuesday07:00 AM07:00 AM07:42 AM07:42 AM00:427:00 AM
5UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:00 AM07:00 AM07:30 AM07:30 AM00:307:00 AM
6UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:00 AM07:00 AM07:30 AM07:30 AM00:307:00 AM
7UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:05 AM07:05 AM07:35 AM07:35 AM00:307:00 AM
8UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:05 AM07:05 AM07:35 AM07:35 AM00:307:00 AM
9UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:05 AM07:05 AM07:35 AM07:35 AM00:307:00 AM
10UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:05 AM07:05 AM07:35 AM07:35 AM00:307:00 AM
11UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)224/4/2023Tuesday07:10 AM07:10 AM04:10 PM04:10 PM09:007:00 AM
12UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)224/4/2023Tuesday07:10 AM07:10 AM04:10 PM04:10 PM09:007:00 AM
13UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)224/4/2023Tuesday07:10 AM07:10 AM08:26 AM08:26 AM01:167:00 AM
14OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE584/4/2023Tuesday07:20 AM07:20 AM07:41 AM07:41 AM00:217:00 AM
15UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:25 AM07:25 AM07:55 AM07:55 AM00:30 7:00 AM
16UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS274/4/2023Tuesday07:25 AM07:25 AM07:55 AM07:55 AM00:30 7:00 AM
Sheet1
Cell Formulas
RangeFormula
G15:Q16,G2:P14G2=Dump!G3
R2:R16R2=FLOOR(L2,1/24)


heres the output where i would be putting the formula

DV Template.xlsx
UVWX
1SYSTEM ISSUES BILLABLEUPLEXHR: ABSENCE DURING EXHRSUNPLANED TIME OFF (DAY OF)
27:00 AM
38:00 AM
49:00 AM
510:00 AM
611:00 AM
712:00 PM
81:00 PM
92:00 PM
103:00 PM
114:00 PM
125:00 PM
136:00 PM
147:00 PM
158:00 PM
169:00 PM
1710:00 PM
Sheet1
Cell Formulas
RangeFormula
U3:U17U3=U2+"1:00"


thank you!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
when pasting your mini workbook it came up with a missing link. Please provide the Dump! sheet.
 
Upvote 0
Hi, see the linked file for a possible solution...

The formula used in the table:
V2: =COUNTIFS($R:$R,$U2,$H:$H,V$1) (Range:V2:X17)

DVTemplate.xlsx

DVTemplate.png
 
Upvote 0
How about
Fluff.xlsm
BCDEFGHIJKLMNOPQR
1First NameLast NameIDSort NameSeniorityCodeDescriptionRankNominal DateDay of WeekStartStart Time of DayStopStop Time of DayDurationMemoTime
2UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:00 AM7:00 AM7:30 AM7:30 AM00:307:00 AM
3OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE5804/04/2023Tuesday7:00 AM7:00 AM7:19 AM7:19 AM00:197:00 AM
4OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE5804/04/2023Tuesday7:00 AM7:00 AM7:42 AM7:42 AM00:427:00 AM
5UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:00 AM7:00 AM7:30 AM7:30 AM00:307:00 AM
6UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:00 AM7:00 AM7:30 AM7:30 AM00:307:00 AM
7UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:05 AM7:05 AM7:35 AM7:35 AM00:307:00 AM
8UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:05 AM7:05 AM7:35 AM7:35 AM00:307:00 AM
9UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:05 AM7:05 AM7:35 AM7:35 AM00:307:00 AM
10UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:05 AM7:05 AM7:35 AM7:35 AM00:307:00 AM
11UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)2204/04/2023Tuesday7:10 AM7:10 AM4:10 PM4:10 PM09:007:00 AM
12UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)2204/04/2023Tuesday7:10 AM7:10 AM4:10 PM4:10 PM09:007:00 AM
13UPLTO: UNPLAND TIME OFF(DAY OFUNPLANED TIME OFF (DAY OF)2204/04/2023Tuesday7:10 AM7:10 AM8:26 AM8:26 AM01:167:00 AM
14OP: SYSTEM ISSUES BILLABLESYSTEM ISSUES BILLABLE5804/04/2023Tuesday7:20 AM7:20 AM7:41 AM7:41 AM00:217:00 AM
15UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:25 AM7:25 AM7:55 AM7:55 AM00:307:00 AM
16UPLEXHR: ABSENCE DURING EXHRSUPLEXHR: ABSENCE DURING EXHRS2704/04/2023Tuesday7:25 AM7:25 AM7:55 AM7:55 AM00:307:00 AM
Sheet1

Fluff.xlsm
UVWX
1SYSTEM ISSUES BILLABLEUPLEXHR: ABSENCE DURING EXHRSUNPLANED TIME OFF (DAY OF)
207:00:00393
308:00:00000
409:00:00000
510:00:00000
611:00:00000
712:00:00000
813:00:00000
914:00:00000
1015:00:00000
1116:00:00000
1217:00:00000
1318:00:00000
1419:00:00000
1520:00:00000
1621:00:00000
1722:00:00000
Sheet1
Cell Formulas
RangeFormula
V2:X17V2=COUNTIFS($H:$H,V$1,$R:$R,$U2)
U3:U17U3=U2+"1:00"
 
Upvote 1
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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