Percentage by Month Formula Help

GW81

New Member
Joined
Nov 8, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. MacOS
Hi,

I'm working on an SLA performance report for a distribution centre. I have daily data that is pasted into a master spreadsheet that calculates whether each order has shipped within SLA.

I need to add a summary page that shows the percentage of orders for each month that shipped on time. I can work out the formula I that looks at the data as a whole but then only calculates the result by a specific month.

I've attached a sample. Each row is an individual order, column is the SLA performance for that order and column I is the month.

Many Thanks in Advance!

sample data 2 (1).xlsx
ABCDEFGHI
1Created DateSent DateAwk/daywk/daySLACreated DateSent DateMonth
211/4/21 10:5211/4/21 15:00On Time44On TimeThuThuNov
311/4/21 9:4611/4/21 15:00On Time44On TimeThuThuNov
411/4/21 11:5811/4/21 14:45On Time44On TimeThuThuNov
511/3/21 14:4211/4/21 10:15On Time34On TimeWedThuNov
611/4/21 4:2711/4/21 10:00On Time44On TimeThuThuNov
711/4/21 5:2311/4/21 10:00On Time44On TimeThuThuNov
811/4/21 4:2711/4/21 10:00On Time44On TimeThuThuNov
911/3/21 14:4211/4/21 10:00On Time34On TimeWedThuNov
1011/3/21 14:5311/4/21 9:45On Time34On TimeWedThuNov
1111/3/21 18:3111/4/21 9:45On Time34On TimeWedThuNov
1211/3/21 18:4211/4/21 9:45On Time34On TimeWedThuNov
1311/4/21 4:2711/4/21 9:45On Time44On TimeThuThuNov
1411/4/21 4:2711/4/21 9:45On Time44On TimeThuThuNov
1511/4/21 4:2711/4/21 9:45On Time44On TimeThuThuNov
1611/4/21 4:2711/4/21 9:45On Time44On TimeThuThuNov
1711/3/21 21:1211/4/21 9:45On Time34On TimeWedThuNov
1811/3/21 15:5111/4/21 9:45On Time34On TimeWedThuNov
1911/4/21 4:2711/4/21 9:45On Time44On TimeThuThuNov
2011/3/21 15:5411/4/21 9:45On Time34On TimeWedThuNov
2111/4/21 4:2711/4/21 9:30On Time44On TimeThuThuNov
2211/3/21 23:3611/4/21 9:30On Time34On TimeWedThuNov
2311/4/21 4:2711/4/21 9:30On Time44On TimeThuThuNov
2411/4/21 4:2611/4/21 9:30On Time44On TimeThuThuNov
2511/3/21 7:2311/3/21 15:15On Time33On TimeWedWedNov
2611/3/21 8:5411/3/21 15:15On Time33On TimeWedWedNov
2711/3/21 4:2511/3/21 10:30On Time33On TimeWedWedNov
2811/3/21 4:2511/3/21 10:30On Time33On TimeWedWedNov
2911/3/21 4:2511/3/21 10:30On Time33On TimeWedWedNov
3011/2/21 14:3411/3/21 10:15On Time23On TimeTueWedNov
3111/2/21 16:2511/3/21 10:15On Time23On TimeTueWedNov
3211/3/21 4:2411/3/21 10:15On Time33On TimeWedWedNov
3311/3/21 4:2511/3/21 10:15On Time33On TimeWedWedNov
3411/3/21 4:2511/3/21 10:15On Time33On TimeWedWedNov
3511/3/21 4:2511/3/21 10:15On Time33On TimeWedWedNov
3611/3/21 5:0611/3/21 10:15On Time33On TimeWedWedNov
3711/1/21 10:2911/2/21 16:00Late12LateMonTueNov
3811/1/21 4:2611/2/21 16:00Late12LateMonTueNov
3910/30/21 12:5511/2/21 16:00Late62LateSatTueNov
4010/30/21 4:0411/2/21 16:00Late62LateSatTueNov
4111/2/21 6:4311/2/21 15:45On Time22On TimeTueTueNov
4211/2/21 9:5311/2/21 15:45On Time22On TimeTueTueNov
4311/1/21 12:4511/2/21 15:45On Time12On TimeMonTueNov
4410/31/21 10:4411/1/21 14:45Late71On TimeSunMonNov
4511/1/21 4:1111/2/21 14:45Late12LateMonTueNov
4611/1/21 4:1111/2/21 14:45Late12LateMonTueNov
4710/31/21 14:1211/2/21 14:45Late72LateSunTueNov
4811/1/21 4:1011/2/21 14:45Late12LateMonTueNov
4910/30/21 11:5511/1/21 14:45Late61On TimeSatMonNov
5010/31/21 6:0911/2/21 14:45Late72LateSunTueNov
5110/31/21 16:5811/2/21 14:45Late72LateSunTueNov
5211/1/21 13:2511/2/21 13:15On Time12On TimeMonTueNov
5311/1/21 14:2411/2/21 13:00On Time12On TimeMonTueNov
5411/1/21 8:4511/2/21 13:00Late12LateMonTueNov
5511/1/21 4:1111/2/21 13:00Late12LateMonTueNov
5611/1/21 4:1111/2/21 13:00Late12LateMonTueNov
5711/1/21 5:4611/2/21 13:00Late12LateMonTueNov
5810/27/21 9:1410/27/21 14:00On Time33On TimeWedWedOct
5910/22/21 8:3510/22/21 17:15On Time55LateFriFriOct
sample data 2
Cell Formulas
RangeFormula
C2:C59C2=IF(OR(AND(MOD($A2,1)<=0.5,INT($A2)=INT($B2)),AND(MOD($A2,1)>0.5,INT($B2)<=INT($A2)+1)),"On Time","Late")
D2:E59D2=WEEKDAY(A2,2)
F2:F59F2=IF(MOD($A2,1)<=0.5,IF(OR(AND(WEEKDAY(A2)<=5,INT($A2)=INT($B2)),WEEKDAY(B2,2)=1),"On Time","Late"),IF(OR(AND(WEEKDAY(A2)<=5,INT($B2)<=INT($A2)+1),WEEKDAY(B2,2)=1),"On Time","Late"))
G2:H59G2=INT(A2)
I2:I59I2=TEXT(B2,"mmm")
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(F:F,"on time",I:I,"Nov")/COUNTIFS(I:I,"Nov")
 
Upvote 0
Thank you!

So simple when you see it written out!

Thanks again
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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