Adding 1 to Every Number in Formula String

mba3170

New Member
Joined
Jul 21, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am working on many workbooks and for all of them, I am using conditional formatting for hundreds of cells. Specifically, I am using 7 different cell ranges, and the cells themselves are always one cell apart. For example, this is for one of the ranges (with hundreds more references in this range and in each range):

B$4:AS$4,B$9:AS$9,B$14:AS$14,B$19:AS$19

Is there a formula I can use to add +1 to every number, so I don't have to do it manually? I can't find an answer anywhere. Here is what I would need:

B$5:AS$5,B$10:AS$10,B$15:AS$15,B$20:AS$20

Thank you for the help.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You just need to modify a string? It's not clear, but you could use INDIRECT formula or some VBA.
 
Upvote 0
Use cursor to highlight your ranges. In the cell the cursor is in type "=" and arrow up one cell, then type "+1" then CNTL-ENTER.
(actually you can highlight all the blank cells that you want to update at one time)



1721578902955.png
 

Attachments

  • 1721578871919.png
    1721578871919.png
    22.2 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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