Why does not Offset work with Address?

Sundlof

New Member
Joined
Feb 15, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,
This function gives me an error, But I am expecting it to work.

Excel Formula:
=OFFSET(ADDRESS(MATCH(TODAY();A:A;0);1);3;0;4)

I have dates in A column, and I want to use the cell for todays date in the column as a reference. The Address function works as intended and the Offset works, but no together.
 

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.
I'm not sure what you're data looks like. But, I think the ADDRESS() function returns a string not a cell that can be used in calculations. Maybe you need to wrap it with INDIRECT()? (I don't think that will work either).
 
Upvote 1
As far as I know, you have to specify a cell reference for offset, not a formula.
Maybe
Excel Formula:
=OFFSET(A1;MATCH(TODAY();A:A;0)+3;0;4)
 
Upvote 0
as awoohaw said, try this
Excel Formula:
=OFFSET(INDIRECT(ADDRESS(MATCH(TODAY(),A:A,0),1)),3,0,4)
 
Upvote 1
Thanks for you answers. I managed to get it to work with:
Excel Formula:
=OFFSET(INDIRECT(ADDRESS(MATCH(TODAY();$A:$A;0);1));(Trend!$F$2*-1);BC$11;(Trend!$AF$2+1))
That code puts out just what I want in the sheet.

But! It does not work when I put it in a name reference and then add it to a graph. Then Excel crashes actually! Do you think this has to do with Indirect or something else in my code?
 
Upvote 0
I managed to solve the last issue but using CELL, for some reason.
Excel Formula:
=OFFSET(INDIRECT(CELL("address";INDEX(TrendData!$A:$A;MATCH(TODAY();TrendData!$A:$A;0))));(Trend!$F$2*-1);TrendData!$BC$11;(Trend!$AF$2+1))

Thanks for the help!
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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