Macro to Adjust Existing Range Names Source

Avaran

New Member
Joined
Sep 11, 2014
Messages
2
Good morning.

I've inherited a very complex set of 4 spreadsheets at work this week. It's running extremely slow and I am trying to fix a lot of issues with it. One thing that is concerning me is the workbooks are filled with hundreds of range names that reference the entire column of each column that it stands for. So Column A is a range name that is simply A:A.

The sumifs looking at these are then looking at the entire column. Can anyone help me out with a macro that will go through each range name in a worksheet and shorten it's length to whatever the last row of data is?

Thanks for your help, I really appreciate this!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
SUMIFs is actually pretty efficient in that it only works on the used range anyway. Are you sure that's what's slowing it down?
 
Upvote 0
Sadly, no. The files have thousands of SUMIFs in them. I'm working on stripping out the unused and unnecessary ones right now. If the range names aren't causing them to SUMIF the entire column then it shouldn't be that. Right now, the files are taking in excess of 10 minutes to close out. There's 4 files with sumifs reaching back and forth between the files.
 
Upvote 0

Forum statistics

Threads
1,203,240
Messages
6,054,319
Members
444,717
Latest member
melindanegron

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