Adjust Formulas for multiple ranges on multiple pages

Twollaston

Board Regular
Joined
May 24, 2019
Messages
241
I need to change the formulas on several pages for several ranges, by adding an if statement that says if the result is greater than 100% then show 100% or else show the normal result of the formula. I'm not quite sure how to do it without breaking my back. Ranges are the same on all the pages i need to adjust but all the pages don't need to be adjust, only like 13 out of the 16 pages should be adjusted.

Details
Ranges needed to change on each page:
L14:O22, S14:U21, X14:Z21, AC14:AE21,
L31:O39, S31:U38, X31:Z38, AC31:AE38,
L48:O56, S48:U55, X48:Z55, AC48:AE55,
L65:O73, S65:U72, X65:Z72, AC65:AE72,
L82:O90, S82:U89, X82:Z89, AC82:AE89,
L100:O108, S100:U107, X100:Z107, AC100:AE107


Pages wanting to apply to(by worksheet number):
Worksheets(1)
Worksheets(2)
Worksheets(3)
Worksheets(5)
Worksheets(6)
Worksheets(8)
Worksheets(9)
Worksheets(11)
Worksheets(12)
Worksheets(14)

Set current formula(which will be different based on the ranges) = X

New Formula:
=If(x>100%,”100%”,x)

If someone has a macro that can do this easily let me know.

Thanks
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Similar threads

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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