Dynamic chart using table, limiting rows with formula

Cheeks1969

New Member
Joined
Dec 7, 2016
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have created a chart referencing data from a table. The first column in the table (A) is a formula that basically says if column B in the same row is not blank, then add a day from the date above. I paste a new month's data (via macro) in every so often and the date then appears and is used in the chart on the X axis.

However, since the formula goes way beyond the last data point the chart is also going out that far. So I have a huge white space to the right of my last data point in the chart.
Is there a way to leave the formula in and have the chart only use the rows with data?

Or must I ditch the formula and just drag the last cell to update the dates? I was hoping to have this mostly button driven since other people will be using it and there are 1000s of rows.
I hope that I've described this well enough for a reply.
Thanks for any input.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Have you tried for xl2013:

right click on horizontal axis, select Format Axis. under Axis Options see the Bounds options. Try reducing the Maximum.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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