condittions max charactersor highlight

richiwatts

Board Regular
Joined
Aug 27, 2002
Messages
131
Hi

I have 2 columns of text
C-A is only allowed to have 30 characters
C-B is only allowed to have 50 characters

Is there any way I can highlight any cells that have gone over this limit and the highlighting will disapear as sson as I edit the text to try and make it below the amount?

CP
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If they are "only allowed" for 30 or 50 characters, how did they go over the limit in the first place? Are you using Data Validation to monitor the text length?
 
Upvote 0
Hi,

No, this is just want our client wants us to insure. I know that some of them are over but there are too many cells to check manually.

This is why I need to know what the formular is for Conditional formatting so I can highlight any cells that are over these amounts. I just do not know how to write the formular

CP
 
Upvote 0
You can use Conditional Formatting. If for example your "30 max" column is A, then press Ctrl+Home to activate cell A1, click on the "A" header to select all of column A, and then from the worksheet menu click Format > Conditional Formatting. From the first drop-down select "Formula is" and in the field to the right enter the formula
=LEN(A1)>30

Click the Format button, Patterns tab, select a color from the palette, click OK, OK, and you are done with that column. Repeat the steps for the "max 50" column, if it is B, then the CF formula with cell B1 active and column B selected would be
=LEN(B1)>50
 
Upvote 0
I did exactly what you said but it doesn't do anything. I have even reduced the number to >10 but still nothing
 
Upvote 0
If you did it exactly as I said then it would be working. Something else is going on, maybe you had a different active cell selected than A1 with column A selected and the formula as entered did not match the address of the active cell. Or maybe you did not specify the formatting. Check your sheet again to make sure you selected each of the two proper ranges for the CF formulas being applied, and that you indeed clicked the Format button on the Conditional Formatting dialog to specify a cell shade color.
 
Upvote 0
Just to see if I had done it correct, I marked a single cell (B24) opened the conditional formatting window.

It showed:

formular is: =LEN(B24)>30

Formatting = background red + bold

80% of the cells have over 30 characters

CP
 
Upvote 0
Describe exactly what you did, including what you selected at what stage, and what cell was the active cell at the time and so on and so forth, and we'll try to spot what went wrong.
 
Upvote 0
Hi,

Because I am using a Swedish version of Excel I had to use

=LÄNGD

instead of

=LEN

Problem solved thanks
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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