Plot number of date occurrences by month/year

sparkytech

Board Regular
Joined
Mar 6, 2018
Messages
96
Office Version
  1. 365
  2. 2019
I have a sheet with project start dates in column "N" and end dates in column "P" that span many months and years, and this data will change frequently in these columns. These dates are formatted mm/dd/yy. How can I graph the number of times a date occurs in each column (N and P, with a line graph for each)? I want to have the month/year (no day value needed) on the horizontal axis and the number of occurrences for start and end dates per month on the vertical. Seems simple enough, but I'm drawing a blank. Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
if you give 5 lines of your data whith the "XL2BB"-tool, it's something that can be fixed rather quick.
 
Upvote 0
Thanks! I forgot about that little gem!

test.xlsm
ABCDEFGHIJKLMNOPQ
4CProject NameProject DescriptionMBWBBPLPMTCPYRCEst StartAct StartEst FinishAct Finish
5a11/27/2112/13/213/5/221/9/22
63b11/29/228/3/2011/1/242/2/21
7c6/3/2410/24/24
84d1/2/1911/4/197/15/216/30/21
94e6/15/217/30/21
102f10/7/2012/2/204/29/214/29/21
Master
Cells with Data Validation
CellAllowCriteria
N6:Q10Datebetween 1/1/2010 and 12/31/2050
 
Upvote 0
i made a table of your data what formulas to know the min and max date + number of months in between. The formula gives you the number of opened or closed contracts in that month. Easy.
Next time you ask the number of open contracts in a certain month ?
Map1
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1CProject NameProject DescriptionMBWBBPLPMTCPYRCEst StartAct StartEst FinishAct Finishminimum02/01/1902/01/19monthEst StartAct StartEst FinishAct Finish
2a11/27/2112/13/2105/03/2209/01/22maximum10/24/2402/01/191   
301/03/00b11/29/2203/08/2001/11/2402/02/21number of months69,0003/01/19    
4c03/06/2410/24/2404/01/19 1  
501/04/00d02/01/1904/11/1907/15/2106/30/2105/01/19    
601/04/00e06/15/2107/30/2106/01/19    
701/02/00f07/10/2002/12/2004/29/2104/29/2107/01/19    
808/01/19    
909/01/19    
1010/01/19    
1111/01/19    
1212/01/19    
1301/01/20    
1402/01/20 1  
1503/01/20 1  
1604/01/20    
1705/01/20    
Blad1
Cell Formulas
RangeFormula
U1U1=EOMONTH(T1,-1)+1
W2:W70W2=EDATE($U$1,SEQUENCE(T3,,0))
X2:X17X2=SUMPRODUCT((YEAR(Tabel1[Est Start])=YEAR($W2))*(MONTH(Tabel1[Est Start])=MONTH($W2)))
Y2:Y17Y2=SUMPRODUCT((YEAR(Tabel1[Act Start])=YEAR($W2))*(MONTH(Tabel1[Act Start])=MONTH($W2)))
Z2:Z17Z2=SUMPRODUCT((YEAR(Tabel1[Est Finish])=YEAR($W2))*(MONTH(Tabel1[Est Finish])=MONTH($W2)))
AA2:AA17AA2=SUMPRODUCT((YEAR(Tabel1[Act Finish])=YEAR($W2))*(MONTH(Tabel1[Act Finish])=MONTH($W2)))
T1T1=MIN(Tabel1[[Est Start]:[Act Finish]])
T2T2=MAX(Tabel1[[Est Start]:[Act Finish]])
T3T3=DATEDIF(EOMONTH(T1,-1),T2,"m")+1
Dynamic array formulas.
 

Attachments

  • Schermafbeelding 2022-02-02 075015.png
    Schermafbeelding 2022-02-02 075015.png
    39.7 KB · Views: 10
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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