a self compressing chart

tdhlmn

New Member
Joined
Feb 17, 2013
Messages
2
I am collecting daily data readings for water and electric use: my columns are, from left to right, date: meter reading: daily usage(calc'd): mnth avg to date (calc'd).
I then graphed the data, no problem till into the 2nd or 3rd month with 90 rows of data. solution: hide all but the last day of the month - YEA ----uh bummer - the date is automatically adjusted by excel for major or minor divisions with no respect to hidden rows.....OK - added column to convert date to text - YEA this works.

So any thoughts on how to have the chart automatically compress the month but keep the last month on a daily reading?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to MrExcel.

Right click the x axis and choose Format Axis. Change the axis type from Date to Text (or Category).

For automation you can use AutoFilter. In E2 enter:

=OR(TEXT(A2,"mmyyyy")=TEXT(MAX(A:A),"mmyyyy"),A2=DATE(YEAR(A2),MONTH(A2)+1,0))

and copy down. Then AutoFilter that column for TRUE.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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