Conditional formatting on cell for lines over 65 Characters (each separated by line break)

EAG1

New Member
Joined
Feb 12, 2021
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have the following in a single cell and want to highlight it red if any of the lines are over 65 Characters. The lines are separated by alt enter (line break).

This is a test!
This is another test!
This is a further test which happens to be over 65 characters in length!


Ideally, I need a formula to put into the conditional formatting section.

Any help would be much appreciated.

Thanks, EAG1
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Do you have the TEXTSPLIT function?

23 03 09.xlsm
A
1Text
2This is a test! This is another test! This is a further test which happens to be over 65 characters in length!
3This is a test! This is another test! This is a further test
4This is a test! This is another test! This is a further test which happens to be over 65 characters in length!
>65 characters
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A4Expression=MAX(LEN(TEXTSPLIT(A2,CHAR(10))))>65textNO
 
Upvote 0
Solution
@Peter_SSs Yes I do and had been playing around with it but couldn't get it to work. Your formula works a treat. Thank you very much for the help.
 
Upvote 0
Good news all around then. 🎉
Thanks for the follow-up. :)
 
Upvote 1

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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