Skip rows when Charting data with invalid/missing data

BS-SPS

New Member
Joined
Oct 11, 2004
Messages
2
I am trying to chart project milestone dates off of a status spreadsheet. A simplified example follows:
PROJECT1 10/01/2004
PROJECT2 1/1/2004
PROJECT3 "N/A"
PROJECT4 10/01/2004
PROJECT5
PROJECT6 10/15/2004
PROJECT7 12/31/2004

If the formatting is kept, you'll see 2 columns, project name and date.
If all names and dates are present (rows 1 & 2) the bar chart works fine. But add an invalid date (row 3) or missing date (row 5) and the chart doesn't work.

I must allow the invalid dates, but need to report around them. I can create a new spreadsheet and map over the cells then replace the invalid values with 1/1/04, but projects with invalid dates should not appear on the chart.
I'd like to skip the invalid rows when I map, but haven't a clue how to do so without leaving a blank row!
I've spent a LOT of time searhing here and on the internet, and can't find anything to help... though I suspect there is an easy answer somewhere.
Thank you for your time.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
AutoFilter your data for column B (date) is greater than zero. Then make sure Plot visible cells only is checked under Tools|Options|chart tab.
 
Upvote 0
THANK YOU!! I suspected there was an easy way to accomplish... however this leads to another problem I haven't been able to figure yet.

Do you know how to apply a filter when the workbook or spreadsheet is opened? Each time the main data sheet is updated I would need to refresh the filtering.

Should I open a new thread?
 
Upvote 0
You could put some code in the Workbook_Open or Worksheet_Change event procedure to refresh the AutoFilter. Record a macro while doing it manually and you will get the relevant code.
 
Upvote 0

Forum statistics

Threads
1,221,567
Messages
6,160,549
Members
451,655
Latest member
rugubara

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