Dynamic Named Range somehow changes!

Bonz

Board Regular
Joined
Dec 10, 2007
Messages
149
Good Morning All

Does anyone have any idea what would cause the formula for a dynamic named range to keep changing on its own? I enter the following formula:

OFFSET('Raw Data'!$D$2,0,0,COUNTA('Raw Data'!D:D),1)

Which I save and somehow gets changed to the following formula:

OFFSET('Raw Data'!$D$2,0,0,COUNTA('Raw Data'!XFD:XFD),1)

This is happening to several named ranges I created. I’ve tried to correct this by editing the formula which seems to work but changes again. I’ve also deleted the named range and recreated it with the same change process taking place.

In case it matters the named ranges are being created on a table imported into Excel via MS Query. Anyone know how to correct this? Any help would be appreciated—Thank You!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
By not specifying absolute ranges, it sets it relative to the active cell.

Try

OFFSET('Raw Data'!$D$2,0,0,COUNTA('Raw Data'!$D:$D),1)
 
Upvote 0
Gentlemen,

Thanks for taking the time to replay.
Xld your suggestion seems to have solved the issue. All of my other formulas that depended on those ranges have correctly updated. As always the help is much appreciated!
 
Upvote 0

Define Size as referring to:

=MATCH(REPT("z",255),'Raw Data'!$D:$D)-MIN(ROW('Raw Data'!$D$2))+1

Define Data or a name more appropriate for the data in column D as referring to:

=OFFSET('Raw Data'!$D$2,0,0,Size)

This corrects the issue you have and defines the data size correctly. Moreover, it allows for blanks in the range of interest.
 
Upvote 0
Aladin,

I’m curious, how would your formulas change if the columns contained: date/time, numeric literals, since there is no use of COUNT or COUNTA?
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,346
Members
452,638
Latest member
Oluwabukunmi

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