Dynamic starting reference for offset formula

Jorlangs

New Member
Joined
Sep 21, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
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
    Capture.PNG
    69.2 KB · Views: 50

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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)
 
Upvote 0
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?
 
Upvote 0
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!
 
Upvote 0
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)
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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