Link to home
Create AccountLog in
Avatar of Charles
CharlesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Add specific ranges to macro summing named ranges from multiple tabs

This is a follow on from https://www.experts-exchange.com/questions/29135421/How-to-create-an-indirect-reference-to-multiple-named-ranges.html

The solutions to that question summed any/all numbers in the tabs.

What I need to do is sum only certain pre-defined areas.

Contra Martin's last posted proposals, I don't want to manually choose the ranges each time, I want the same ranges every time, baked into the code.

Can you replicate the solution to the above question, but applying the summing to ranges: B6:R8; B9:R14; X6:AR8 and X9:AR14.

Is it possible to make one named area for all those ranges together? Would this help?
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Do you want those ranges to add to the same ranges on sheet A? In other words B6:R8 on sheets B, C and D to B6:R8 on sheet A, etc?
Avatar of Charles

ASKER

Yes please
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Charles

ASKER

Thank you!
Avatar of Charles

ASKER

Perfect!
You're welcome.