Identifying cells that have '+1' at the end of the formula

Red over White

Board Regular
Joined
Jul 16, 2011
Messages
129
Office Version
  1. 365
Platform
  1. MacOS
I have a column which predominantly has the formula "=INDIRECT("A"&ROW()-1)+1". There are a small number of cells that don't have this formula, and I want to identify, using conditional formatting, those cells that don't end +1. However, I have been unable to come up with anything that works.

Any suggestions, TIA
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
See if this works:
Book1
B
21
31
41
50
61
71
81
90
101
111
121
130
141
151
161
171
181
191
201
Sheet1
Cell Formulas
RangeFormula
B2:B4,B6:B8,B10:B12,B14:B20B2=INDIRECT("A"&ROW()-1)+1
B5,B9,B13B5=INDIRECT("A"&ROW()-1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B20Expression=RIGHT(FORMULATEXT(B2),2)<>"+1"textNO
 
Upvote 0
Solution
See if this works:
Book1
B
21
31
41
50
61
71
81
90
101
111
121
130
141
151
161
171
181
191
201
Sheet1
Cell Formulas
RangeFormula
B2:B4,B6:B8,B10:B12,B14:B20B2=INDIRECT("A"&ROW()-1)+1
B5,B9,B13B5=INDIRECT("A"&ROW()-1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B20Expression=RIGHT(FORMULATEXT(B2),2)<>"+1"textNO
It works, thanks!
 
Upvote 0
Red over White,

Please Note: In the future, when marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.

I have updated this thread for you.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
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