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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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