# Dynamic starting reference for offset formula

#### Jorlangs

##### New Member
Hi,

My question would be if there is an option to automatically update the starting reference of the offset formula in order to correspond to today's current date.

I want to graph daily data that shows the results of today's date, and that for the next 7 days. In my table, the date is classed in it's own column, with the corresponding data associated to it on it's right. My plan was to simply use the offset function in order to retrieve the desired data without manually going into the graph itself as there are quite many. I'm having trouble setting the reference cell equalling to today's date, and I was hoping if someone here knew how to do so.

I've attached a screenshot of my data table. Thank you.

#### Attachments

• Capture.PNG
69.2 KB · Views: 17

### Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### jasonb75

##### Well-known Member
Without your existing offset formula as a starting point, this is just a guess.

=OFFSET(\$B\$1,MATCH(TODAY(),\$A:\$A,0),0,7,17)

#### Jorlangs

##### New Member
Without your existing offset formula as a starting point, this is just a guess.

=OFFSET(\$B\$1,MATCH(TODAY(),\$A:\$A,0),0,7,17)

Thank you very much, my original formula wasn't far off from yours. However, when I input this offset formula it appears to give me data only for the very next day and does not include the current day. I've tried playing with it without any success. Is there a way to incorporate the current date's data into the formula?

#### Jorlangs

##### New Member
Thank you very much, my original formula wasn't far off from yours. However, when I input this offset formula it appears to give me data only for the very next day and does not include the current day. I've tried playing with it without any success. Is there a way to incorporate the current date's data into the formula?

Nevermind, I have found my mistake. Thanks for your help!

#### jasonb75

##### Well-known Member
Not sure how you corrected it, but I notice that I missed a correction factor in the suggested formula, when using MATCH with OFFSET it is usually necessary to subtract 1 from the MATCH result.

=OFFSET(\$B\$1,MATCH(TODAY(),\$A:\$A,0)-1,0,7,17)

#### Jorlangs

##### New Member
Not sure how you corrected it, but I notice that I missed a correction factor in the suggested formula, when using MATCH with OFFSET it is usually necessary to subtract 1 from the MATCH result.

=OFFSET(\$B\$1,MATCH(TODAY(),\$A:\$A,0)-1,0,7,17)

I corrected it using the exact same formula that you just posted. I simply incorporated the -1 into the equation.

Replies
4
Views
190
Replies
1
Views
110
Replies
5
Views
258
Replies
0
Views
75
Replies
2
Views
142

1,126,888
Messages
5,621,442
Members
415,840
Latest member
chrisbland1

### 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.

### Which adblocker are you using?

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

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