Pivot table and graph question (is this even possible)

dennisstinissen

New Member
Joined
Sep 3, 2007
Messages
3
I haven't been arround for a while, but after some time off I'm getting back on track with Excel.

I'm walking in circles with this one and I think this should be possible in Excel, but I can't seem to resolve it. It has to do with a graph I want to make and I use a pivot table, but hey I think I am off track.

I have a worksheet with data in a table
Record;Start date;Planned Date; End Date
Record 1; 20210101; 20210301;
Record 2; 20210201; 20210501; 20210419
Record 3; 20210214; 20210228; 20210318
...

And the result I would like to have is a graph (and pivot)
On the horizontal axis we have the months (januari 2021 until januari 2022)
On the vertical axis we have a line with the amount of new records (start date in that month) a a given month
On the vertical axis we have another line with the amount of closed records (end date in that month)
On the vertical axis we have a bar with the amount of records still open
On the vertical axis we have another line with the percentage of closed records as planned (end date earlier or same as planned date)

Could someone point me in the right direction?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
testing.xlsx
ABCDEFGHIJKLMNOPQ
1RecordStart datePlanned Date End Datestartdateplanned date2end dateminjan-21dateStart datePlanned Date End Dateopen
2Record 12021010120210301jan-21mrt-21--maxmei-21jan-211#N/B01
3Record 2202102012021050120210419feb-21mei-21apr-21delta4feb-212#N/B03
4Record 3202102142021022820210318feb-21feb-21mrt-21mrt-210113
5apr-210012
6mei-210#N/B01
7jun-210#N/B01
8jul-210#N/B01
9aug-210#N/B01
10sep-210#N/B01
11okt-210#N/B01
12nov-210#N/B01
13dec-210#N/B01
14jan-220#N/B01
15feb-220#N/B01
16
Blad5
Cell Formulas
RangeFormula
E2:E4E2=IF(LEN([@[Start date]]),DATE(LEFT([@[Start date]],4),MID([@[Start date]],5,2),1),"--")
F2:F4F2=IF(LEN([@[Planned Date]]),DATE(LEFT([@[Planned Date]],4),MID([@[Planned Date]],5,2),1),"--")
G2:G4G2=IF(LEN([@[ End Date]]),DATE(LEFT([@[ End Date]],4),MID([@[ End Date]],5,2),1),"--")
L2L2=J1
M2:M15M2=COUNTIF(Tabel2[startdate],$L2)
N2:N15N2=IF(O2>0,SUMPRODUCT((Tabel2[planned date2]<=Tabel2[end date])*(Tabel2[end date]=L2))/O2,NA())
O2:O15O2=COUNTIF(Tabel2[end date],$L2)
P2:P15P2=SUMPRODUCT((Tabel2[startdate]<=L2)*(L2<=Tabel2[end date]))
L3:L15L3=EDATE(L2,1)
J1J1=MIN(Tabel2[[startdate]:[end date]])
J2J2=MAX(Tabel2[[startdate]:[end date]])
J3J3=ROUND((J2-J1)/30,0)
 

Attachments

  • Schermafbeelding 2022-01-15 211604.png
    Schermafbeelding 2022-01-15 211604.png
    69.4 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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