Excel Chart for week 1 - 52

starheartbeam

New Member
Joined
Aug 8, 2018
Messages
18
I am trying to create an excel chart that will show me my inventory every week for each week of the year so that I can see the trend. I have a chart that I track the numbers daily and then on a different tab I have a chart that does a vlookup to get each Sunday's dates. I have the vlookup set to do all 52 weeks of this year even though not all of them return something right now as we have to had all the weeks.
Code:
=VLOOKUP(B3,Daily!A:C,3,FALSE)
Then when I graph my data it shows the data graphed for weeks 1-31 but drop it down to 0 for weeks 32-52. How can I get the graph to only show data that the VLOOKUP brings back data for?

1601924134060.png
 
Last edited by a moderator:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I figured it out. If anyone else needs to do something like this here is what I changed my VLOOKUP to be and now it only shows the ones with data.
Code:
=IF(VLOOKUP(B3,Daily!A:C,3,FALSE)>0,VLOOKUP(B3,Daily!A:C,3,FALSE),NA())

This put #NA when it does not return data and excel chart does not graph#NA
 
Upvote 0
Solution

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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