Percentages of data by month

Ryan1996

Board Regular
Joined
Jun 4, 2018
Messages
55
Hi,

I have a table like the below and want to be able to see what percentage of each month had been closed within the allowed time. For example row two has an end date of the 26/08/2020 and the issue was closed on the 21/07/2020 so therefore this was completed in date and would be 100% however i need to work out the percentage of all from may/june/july, etc. So i would need to know that for example May was maybe 80% completed on time, then June was 96% or something along those lines.

I'll put the % into a separate table on the same sheet. Column M.

ABCDE
1Date RaisedTarget DateDays to GoDate ClosedStatus
228/05/202026/08/202021Open - In Target
328/05/202026/08/2020Closed21/07/2020Closed
428/05/202026/08/202021Open - In Target
524/06/202024/07/2020Closed24/07/2020Closed
624/06/202024/07/2020Closed24/07/2020Closed
724/06/202024/07/2020Closed24/07/2020Closed
824/06/202024/07/2020Closed24/07/2020Closed
924/06/202023/08/2020Closed24/07/2020Closed
1024/06/202022/09/2020Closed24/07/2020Closed
1124/06/202022/09/2020Closed24/07/2020Closed
1224/06/202022/09/2020Closed24/07/2020Closed
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi Dear,

Put the below formula in cell M2 and drag down
=IF(ISNUMBER(D2),(D2-A2)/(B2-A2),"")

For the second part, i.e. to see the performance of a whole month, you can list the months separately in column N and fill in the below formula (in cell O1 for example)
=SUM(IF(MONTH($A$2:$A$12)=MONTH(N2),$M$2:$M$12,""))/COUNT((IF(MONTH($A$2:$A$12)=MONTH(N2),$M$2:$M$12,"")))

NO
May-20​
60%​
Jun-20​
69%​

Regards
 
Upvote 0
Hi Mamady,

Thanks for your help. Could you explain the first formula a little more. If the closing date was before the required end date the percentage may turn out like 33%, how can i make it that if the 'Date closed' is before the 'Target date' this still shows 100%. If the 'Date closed' is after the 'target date' the response can be 0%. Is this possible?

again, appreciate your help.

Ryan
 
Upvote 0
Hi Mamady,

Thanks for your help. Could you explain the first formula a little more. If the closing date was before the required end date the percentage may turn out like 33%, how can i make it that if the 'Date closed' is before the 'Target date' this still shows 100%. If the 'Date closed' is after the 'target date' the response can be 0%. Is this possible?

again, appreciate your help.

Ryan

Hi Rayan,

my formula was to calculate how much time it too to Close out of the 90 days. I.e. 80% means it took 72 days from the Date raised date.

however, if you want to calculate that any close date on or before the target date should be 100%, and any after is 0%, you can use the below formula
=IF(AND(ISNUMBER(D2),D2<=B2),100%,IF(AND(ISNUMBER(D2),D2>B2),0%,""))

Regards
 
Upvote 0
i ended up using this - =IF(D2>B2,"0%", "100%") for each of the rows but now i need the bit like you did before based on the months.

So i changed a few bits and so here's the info. The above formula is in column M. and have months listed in column N. So i now need in column O a percentage of how many from column M meet 100% for each month. So as an example lets say there are 10 records (rows) for May and 8 of them are 100% and 2 are 0% in column M it should show 80% in column O.

Apologies for the confusion. I really do appreciate the help. Just can't get the formula right for the above.
 
Upvote 0
Hi Dear,

First of all, please adjust your formula to remove the double quotation .. as such will render the 0% and the 100% as text. It should be
=IF(D2>B2,0%, 100%)

about the logic, please note that your formula will still return 100% for the open records (has no close date) .. for you to consider if you want to change this

As to the last part, please try the following formula
=COUNT(IF(MONTH($A$2:$A$12)=MONTH(N2)*($M$2:$M$12=100%),$M$2:$M$12))/COUNT(IF(MONTH($A$2:$A$12)=MONTH(N2),$M$2:$M$12))
 
Upvote 0
You're a star, this seems to be working!

One last thing if you don't mind. I tried adding an else to the end of the above but it screwed it up. Is it possible to add a replacement for those without data. Currently if there isn't any data to show the box shows "#DIV/0!" Is it possible to make it say "No Data" or simply "100%"
 
Upvote 0
Hi Dear,

Try
=IFERROR(COUNT(IF(MONTH($A$2:$A$12)=MONTH(N2)*($M$2:$M$12=100%),$M$2:$M$12))/COUNT(IF(MONTH($A$2:$A$12)=MONTH(N2),$M$2:$M$12)),"No Data")
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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