ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formating of Cells (https://www.excelbanter.com/excel-discussion-misc-queries/84066-formating-cells.html)

Rich Stanek

Formating of Cells
 
I want to format a cell so that if someone puts more then 15 characters in
the cell the cell will turn red. Any help would be appreciated.

Peo Sjoblom

Formating of Cells
 
=LEN(A1)15

format conditional formatting, formula is

you could also use data validation allow text length less than or equal to
15

that way they cannot enter anything longer as long as they type


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Rich Stanek" wrote in message
...
I want to format a cell so that if someone puts more then 15 characters in
the cell the cell will turn red. Any help would be appreciated.




Delordson Kallon

Formating of Cells
 
You need conditional formatting.

Select the cell (let assume D4), then from the menu, select Format, then
Conditional formatting. In the conditional formatting dialogbox, select
"formula is" from the dropdown box and type =LEN($D$4)15 in the textbox.
This applies the condition. Now you need to select the formatting that will
be applied whenever the condition is true. Click on the format button on the
conditional formatting dialogbox then go to the pattern tab and select red.

Now whenever the length of text entered into D4 is more than 15, the cell
colour will change to red.

Delordson Kallon
http://www.instantsoftwaretraining.com/Default.aspx

"Rich Stanek" wrote:

I want to format a cell so that if someone puts more then 15 characters in
the cell the cell will turn red. Any help would be appreciated.



All times are GMT +1. The time now is 02:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com