Creating dynamic chart showing last 90 calendar days entries

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hello

I have literally rubbed my eyebrows away trying desperately to create a dynamic line chart with columns A, G and H from the below data, so the chart shows only the most recent 90 calendar days entries (NOT the last 90 entries - please let me know if it's necessary to insert a daily entry with a zero value for this to work as I would like).

I've looked in the forum and on the net and I just don't understand if I am able to do this directly from this data or if I have to convert the below to a table with just 3 columns and work from that. However, if I create a separate table I cannot understand how the data would copy from the data sheet below to the table.

After many very late hours trying to work it out it myself I've been on the verge of just giving up and I would be so grateful for a solution that will make this work as it's my exercise bike fitness tracker!

Thank you so much!


Book1
ABCDEFGH
10DATETIME (h:mm)DIST. (km)DIST. (mls)SPEED (mph)LEVELHR BPMPower (W)
11Sat, 6 Jan 20180:3315.29.417.2
12Wed, 10 Jan 20180:4321.213.218.4
13Tue, 16 Jan 20180:4821.213.216.5
14Fri, 19 Jan 20180:5222.213.815.9
15Tue, 23 Jan 20180:5326.316.318.5>100
16Thu, 25 Jan 20180:4621.313.217.3
17Sat, 27 Jan 20180:4520.012.416.6
18Sun, 28 Jan 20180:4620.712.916.8
19Wed, 31 Jan 20180:5023.614.717.6122
20Wed, 14 Feb 20180:4521.013.017.4
21Thu, 22 Feb 20180:4520.913.017.3<120
22Sun, 4 Mar 20180:4521.013.017.4<110
23Tue, 6 Mar 20180:4822.013.717.1111
24Sat, 10 Mar 20180:4720.812.916.5
25Sat, 17 Mar 20181:0125.816.015.8110
26Thu, 12 Apr 20180:4519.312.016.0110
27Mon, 23 Jul 20180:3011.87.314.411090
28Sat, 11 Aug 20180:3013.48.316.6120
29Tue, 25 Sep 20180:3012.47.715.45 (42%)108100
30Wed, 26 Sep 20180:4014.69.113.65 (42%)10795
31Wed, 3 Oct 20180:3012.07.514.95 (42%)113100
32Mon, 8 Oct 20180:3010.96.813.55 (42%)10391
33Sun, 14 Oct 20180:4015.29.414.25 (42%)10795
34Thu, 18 Oct 20180:3512.87.913.65 (42%)12091
35Sun, 21 Oct 20181:0023.214.414.45 (42%)11897
36Wed, 24 Oct 20180:3512.27.613.05 (42%)9587
37Sat, 27 Oct 20180:4518.011.214.95 (42%)10499
38Tue, 30 Oct 20181:0024.515.215.25 (42%)111102
39Fri, 2 Nov 20181:0024.115.015.05 (42%)106100
40Mon, 5 Nov 20181:0024.815.415.45 (42%)105103
41Wed, 7 Nov 20180:4519.111.915.85 (42%)105106
42Fri, 9 Nov 20181:0025.215.615.65 (42%)115102
43Sun, 11 Nov 20181:0026.916.716.75 (42%)111112
44Wed, 14 Nov 20181:0026.416.416.45 (42%)110111
45Mon, 19 Nov 20180:4518.711.615.55 (42%)103104
46Wed, 21 Nov 20181:0026.216.316.35 (42%)108109
47Fri, 23 Nov 20181:0022.814.214.26 (50%)105117
48Sun, 25 Nov 20181:0023.114.314.36 (50%)108118
49Wed, 28 Nov 20181:0223.914.814.46 (50%)105118
50Sat, 1 Dec 20181:0023.614.714.76 (50%)107121
51Tue, 4 Dec 20181:0023.814.814.86 (50%)109122
52Thu, 6 Dec 20181:0022.714.114.16 (50%)110117
53Sat, 8 Dec 20181:0023.414.514.56 (50%)107121
54Mon, 10 Dec 20181:0025.615.915.96 (50%)131131
55Wed, 12 Dec 20181:0024.215.015.06 (50%)110124
56Fri, 14 Dec 20181:0023.314.514.56 (50%)104120
57Mon, 17 Dec 20181:0025.315.715.76 (50%)108130
58Wed, 19 Dec 20181:0024.415.215.26 (50%)108125
59Fri, 21 Dec 20181:0021.513.413.46 (50%)90110
60Sun, 23 Dec 20181:0024.014.914.96 (50%)99123
61Wed, 26 Dec 20181:0023.714.714.76 (50%)94122
62Fri, 28 Dec 20181:0024.915.515.56 (50%)102128
63Sun, 30 Dec 20181:0023.114.314.36 (50%)97119
64Wed, 2 Jan 20191:0021.313.213.26 (50%)90109
65Fri, 4 Jan 20191:0023.614.714.76 (50%)95121
66Sun, 6 Jan 20191:0024.915.515.56 (50%)109128
67Tue, 8 Jan 20191:0023.014.314.36 (50%)89119
68Thu, 10 Jan 20191:0026.716.616.66 (50%)110137
69Sat, 12 Jan 20191:0023.514.614.66 (50%)92121
70Mon, 14 Jan 20191:0025.015.515.56 (50%)101128
Exercise Bike
 
Last edited:
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

That's perfect!

Thanks EVER so much RasGhul, you've made my week - now I can go to bed (it's 4am in the UK :))
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

You're welcome Ironman thanks for the feedback.
 
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Hi again RasGhul - don't worry, your chart's still working beautifully!

If you recall, I was no longer able to use the Custom View function which we couldn't resolve. It seems it's because the Exercise Bike sheet is now a table.

I posted a question about this yesterday https://www.mrexcel.com/forum/excel...yed-out-every-sheet-workbook.html#post5210991 and received a reply but I'm nervous about following the suggested solution as I'm afraid of messing things up.

Would you be able to help me please?

Many thanks!
 
Last edited:
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Thats ok

You can right click anywhere in the table and choose table/ convert to range this should convert the array formula back to normal ranges but you should extend them out to 1000 rows etc.
Caution though you should test this on a copy of your working file first.
 
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Hi RasGhul, many thanks for that.

I've dragged the handle in Exercise Bike sheet down to the row I want. I tested it with an entry and it still updates fine. I then went to Last 90 Bike pivot sheet and I was unable to locate Table or "Convert to Range" or anything similar in any of the right click or ribbon options. I've also looked online but without any luck...
 
Last edited:
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Can you send me the link for the current file your using and I'll look at it.
 
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Ironman,

I read the proposed solution from your other thread and decided to give the Pivot table its own sheet and included the formula elements for the array criteria. I've updated the array formula to look at the new sheet.

The pivot table defines the column data(Date HR & Power) for your Bike chart otherwise we would have to start from scratch if you wanted to build the chart without the pivot table.

Hope this helps

Note that I added today's date to the file name to protect the file you sent me;


https://www.dropbox.com/s/pek61vigs27rad0/Exercise Log For RasGhul_220119.xlsm?dl=0
 
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Thanks again RasGhul - however, Custom Views is still greyed out on all sheets :(
 
Upvote 0
Re: Help with creating dynamic chart showing last 90 calendar days entries please?

Hi Rasghul, I've just re-read my comment below and I've just realised why I didn't see the option! I guess I was overtired!

I then went to Last 90 Bike pivot sheet and I was unable to locate Table or "Convert to Range" or anything similar in any of the right click or ribbon options.
I've just right clicked on the Exercise Bike table (NOT Last 90 Bike sheet) and followed your suggestion and the Custom Views works perfectly again now!

Thanks ever so much Rasghul - and I'm sorry you had to unnecessarily redo the pivot table.

Best regards
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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