Range Names on Sort

EE Pros,

I'm perplexed about a situation with range names and referring to them.

If I create an array and sort by Column A to get "like" cells aligned, then create ranges on each group of "like" cells, then I can call those ranges by name in a macro.  What if I then take my array and sort it by another column, say Column B.  Now the contiguous rows that were in the original array are no longer in the array contiguously.  What happens when I then refer to the range name in the macro?

B.
Bright01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MacroShadowCommented:
The named range remains the same regardless of whether it's visible or not.
0
Bright01Author Commented:
Just so I'm clear.... if I add another row, and I intend for it to be included in the range, I must resort the list and add a row within the range in order that it will be included?  If I add a new row at the end of the data/list, it will not be included in any "range".  Is that right?

Thank you,

B.
0
MacroShadowCommented:
Just so I'm clear.... if I add another row, and I intend for it to be included in the range, I must resort the list and add a row within the range in order that it will be included?
Correct.

If I add a new row at the end of the data/list, it will not be included in any "range".  Is that right?
In a normal named range, correct. in a dynamic named range, wrong.
Dynamic ranges will expand with the data added under them, an example of a simple dynamic range is a table. Dynamic ranges are a complex topic, with many ways of creating them. They deserve their own special attention.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bright01Author Commented:
Thank you!

B
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.