OFFSET and Blank Spaces.

yoges

New Member
Joined
Apr 29, 2019
Messages
3
Hi,

I've only recently started exploring excel functions and i need help with my daily logging chart. Im trying to generate a dynamic chart with the following data using OFFSET and COUNT functions for the recent 7 days. My data is as follows:

date1234567891011121314
temp222323242223242530
rh656060636560636645

<colgroup><col width="64" span="15" style="width:48pt"> </colgroup><tbody>
</tbody>

and these are my defined named formulas:

=OFFSET(Sheet1!$A$3,0,COUNT(Sheet1!$3:$3),1,-7)

=OFFSET(Sheet1!$A$2,0,COUNT(Sheet1!$2:$2),1,-7)

The problem is when all the cells are filled with a value it works fine but when the data has blank cells(for weekends and holidays) then it does not work. I've tried reading through forums and watching videos but i couldn't find a solution to this. Can anyone help me understand and if possible provide a solution for this?

More details on the chart:
1) the blank dates need to be shown
2) the blank points will be connected to the next available data value

Thank you.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Re: OFFSET and Blank Spaces. Need Help

row 2 always has data, then use 2, or if row 1 always has data then use the 1. test and tell me.
Try:

=OFFSET(Sheet1!$A$3,0,COUNT(Sheet1!$2:$2),1,-7)
 
Upvote 0
Re: OFFSET and Blank Spaces. Need Help

row 2 always has data, then use 2, or if row 1 always has data then use the 1. test and tell me.
Try:

=OFFSET(Sheet1!$A$3,0,COUNT(Sheet1!$2:$2),1,-7)


Hi Dante,

my rows will always have blank cells due to unavailable data during weekends and holidays and these blank data also need to be shown in the line chart. As i have mentioned before if all the cells in my rows have value then the formula works fine but when i have blank cells it somehow only detects the last data to be up until column 9.

Thanks
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,537
Messages
6,120,096
Members
448,944
Latest member
SarahSomethingExcel100

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