Making a bar graph that automatically shows data for the last 8 weeks

vong888

New Member
Joined
Jun 15, 2018
Messages
1
Hey guys, im having some trouble with a bar graph im making for work. I want it to be set up so that it always shows the data for the current week as well as the last 7 previous weeks (so if the data is older than that it doesnt get shown). I thought i could do this with a simple if statement that set the old data, as well as the cells for new data equal to N/A if conditions regarding the weeks position in relationship to the current date were met. It works, but the chart axis still shows these points, just as N/A! So the entire chart just ends up looking like a ton of empty N/A data points with a few bars of data squashed in the middle. Is there any way to get excel to ignore these on the axis so the chart looks normal?

Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,716
Messages
6,174,069
Members
452,542
Latest member
Bricklin

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