The offset function can only select a single range of cells, however this should still be suitable for your needs. A graph with months along the x-axis should include all months even if there isn't a value. The offset function will just cause the graph to start at the earliest month with a value and finish at the latest month with a value. Any months in between without a value will just have nothing plotted on the chart.
To use named ranges in a chart, you have to name each individual series. You can't use a dynamic range for the entire chart source data range.
Define the following three named ranges for use in your chart. There is one named range for each column A, B and C. Each named range looks at Column B to determine which rows to include:
Months:
=IF(COUNT(Sheet1!$B$2:$B$7)=0,Sheet1!$A$2,OFFSET(Sheet1!$A$1,MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-1,0,MAX(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))+1,1))
Series1:
=IF(COUNT(Sheet1!$B$2:$B$7)=0,Sheet1!$B$2,OFFSET(Sheet1!$B$1,MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-1,0,MAX(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))+1,1))
Series2:
=IF(COUNT(Sheet1!$B$2:$B$7)=0,Sheet1!$C$2,OFFSET(Sheet1!$C$1,MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-1,0,MAX(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))-MIN(IF(ISERROR(Sheet1!$B$2:$B$7),"",ROW(Sheet1!$B$2:$B$7)))+1,1))
You can then set up your chart, but remember you need to add/edit each series individually. Ignore the Chart Data Range field:
When you set each series or x-axis to the named range, you need to qualify it with a reference to the current worksheet or workbook. If you just specify the range name, Excel won't recognize it:
After you have set everything up, the Chart Data Range field will show the consolidated range that covers all data for your change. Do not touch this field. The dynamic ranges have been set for the series. As your data changes, FMS will automatically recalculate the Chart Data Range.