ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formating Furmula (https://www.excelbanter.com/excel-discussion-misc-queries/250079-conditional-formating-furmula.html)

jockj215

Conditional Formating Furmula
 
I have to enter a 14 digit licence number in a field this is a mix of numbers
and leters. can some one please give me a formula that i can use in
conditional formating tol show if there are to few or to many digits. (Using
excel 2003) Thaks in advance.

David Biddulph[_2_]

Conditional Formating Furmula
 
CF/ Formula is/ =LEN(A1)<14
Format as desired for too few

CF/ Formula is/ =LEN(A1)14
Format as desired for too many

Rather than using CF you could, of course, use Data validation to require
LEN(A1) to be 14.
--
David Biddulph

"jockj215" wrote in message
...
I have to enter a 14 digit licence number in a field this is a mix of
numbers
and leters. can some one please give me a formula that i can use in
conditional formating tol show if there are to few or to many digits.
(Using
excel 2003) Thaks in advance.




JLatham

Conditional Formating Furmula
 
You can deal with this with conditional formatting or data validation, or both.

Formula for conditional formatting (for cell A1)
=LEN(A1)<14
and set your format for the not-14-characters condition.

You can also use Data Validation and use 'Text Length', 'exactly' and enter
14 as the length.


"jockj215" wrote:

I have to enter a 14 digit licence number in a field this is a mix of numbers
and leters. can some one please give me a formula that i can use in
conditional formating tol show if there are to few or to many digits. (Using
excel 2003) Thaks in advance.


jockj215

Conditional Formating Furmula
 
Spot on and silly me forgot about data valadation

Thanks


"JLatham" wrote:

You can deal with this with conditional formatting or data validation, or both.

Formula for conditional formatting (for cell A1)
=LEN(A1)<14
and set your format for the not-14-characters condition.

You can also use Data Validation and use 'Text Length', 'exactly' and enter
14 as the length.


"jockj215" wrote:

I have to enter a 14 digit licence number in a field this is a mix of numbers
and leters. can some one please give me a formula that i can use in
conditional formating tol show if there are to few or to many digits. (Using
excel 2003) Thaks in advance.



All times are GMT +1. The time now is 05:37 AM.

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