ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need help with LEN? function (https://www.excelbanter.com/excel-worksheet-functions/112851-need-help-len-function.html)

Ron

Need help with LEN? function
 
I'm stuck and need help with conditional formating based on the number of
characters in adjacent columns. Here is the logic.

If columB+columnC exceeds 31characters, format columnC as red&bold text

Thanks

David Billigmeier

Need help with LEN? function
 
Something like this?

Select C1
<Format
<Conditional Formatting
Choose "Formula Is" from drop down
Enter =LEN(B1)+LEN(C1)31
Then format as red bold
--
Regards,
Dave


"Ron" wrote:

I'm stuck and need help with conditional formating based on the number of
characters in adjacent columns. Here is the logic.

If columB+columnC exceeds 31characters, format columnC as red&bold text

Thanks


Sloth

Need help with LEN? function
 
=LEN($B1)+LEN($C1)31

Just remember that it won't count leading zeros unless B and C are formatted
as text. For example B2 contains the number 123 but is formatted to using
0000 to show as 0123. LEN(B2) will equal 3 and not four.

"Ron" wrote:

I'm stuck and need help with conditional formating based on the number of
characters in adjacent columns. Here is the logic.

If columB+columnC exceeds 31characters, format columnC as red&bold text

Thanks


David Biddulph

Need help with LEN? function
 
"Ron" wrote in message
...
I'm stuck and need help with conditional formating based on the number of
characters in adjacent columns. Here is the logic.

If columB+columnC exceeds 31characters, format columnC as red&bold text


Condition Formatting:
Format is =(LEN(B1)+LEN(C1)31)
--
David Biddulph



Ron

Need help with LEN? function
 
Thanks Everyone!

"David Biddulph" wrote:

"Ron" wrote in message
...
I'm stuck and need help with conditional formating based on the number of
characters in adjacent columns. Here is the logic.

If columB+columnC exceeds 31characters, format columnC as red&bold text


Condition Formatting:
Format is =(LEN(B1)+LEN(C1)31)
--
David Biddulph





All times are GMT +1. The time now is 02:52 PM.

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