Create Dynamic Chart for last 90 specific values

Ironman

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

The below is an extract from a log showing my most recent runs, that goes back many months. The log also includes non-running entries as shown.

Book1
ABCDE
1DATEROUTEDISTANCETIMEPACE
2Sun, 1 Jan 2023ROUTE 19.22:03:2213:25
3Mon, 2 Jan 2023ROUTE 29.22:06:2313:44
4Tue, 3 Jan 2023OTHER (IB)
5Wed, 4 Jan 2023ROUTE 38.92:02:2413:45
6Thu, 5 Jan 2023OTHER (IB)
7Fri, 6 Jan 2023ROUTE 411.42:25:5112:48
8Sat, 7 Jan 2023OTHER (IB)
9Sun, 8 Jan 2023REST
10Mon, 9 Jan 2023ROUTE 512.12:37:1112:59
11Tue, 10 Jan 2023OTHER (IB)
12Wed, 11 Jan 2023ROUTE 68.91:50:2612:24
13Thu, 12 Jan 2023OTHER (IB)
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=IF(C2>0,D2/C2,"")
E5,E12,E10,E7E5=D5/C5

I am trying to create a dynamic chart for the last 90 entries only where there is a value in Cols C, D and E, to display the data from Cols A, C and E.

My understanding of dynamic charts is limited and help would therefore be greatly appreciated.

Thank you.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
To create a dynamic chart for the last 90 entries with a value in Cols C, D and E, and display the data from Cols A, C and E, you can use a combination of the INDEX and COUNTIF functions in Excel. First, use the COUNTIF function to determine the last cell with a value in Col C, D and E, then use the INDEX function to reference the range of data for the chart, starting from this last cell and going up 90 rows. You can then create a chart using this dynamic range of data as the source. Note that the exact steps will depend on the version of Excel you are using and the format of your data.
 
Upvote 0
Thanks. It would be helpful to see how the 2 functions would be applied to the data I provided, using Microsoft 365.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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