Conditional Formatting based on Max Length from Cell Value

jeff_cp

Board Regular
Joined
May 21, 2015
Messages
84
I have a max length value in cell B12 set to 4 and my text to conditional starts in field B14. I'd like the conditional formatting to highlight any cells where the length is greater than the value of cell B12. I tried =LEN(B14)>B12 but it didn't work while =LEN(B14)>4 does work.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You must set the row and also preferably the column with the $ sign

Excel Formula:
=LEN(B14)>$B$12
 
Upvote 1
Solution
The length of B15 = 5 so that cell should have been filled with red based on my conditional formatting.
Your formula is supposedly checking cell B14, not B15.
If you are looking to apply this to multiple cells, perhaps you need to lock the B12 reference, i.e.
Excel Formula:
=LEN(B14)>$B$12
 
Upvote 0

Forum statistics

Threads
1,225,760
Messages
6,186,876
Members
453,381
Latest member
tcell

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