+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting with LEN between values

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Conditional formatting with LEN between values

    I am trying to use conditional formatting to highlight cells with have a text length between 1 and 20 characters however I can only get the LEN function to count less or greater than. Is it possible to use Len to count between 1 and 20?

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Conditional formatting with LEN between values

    In the CF dialogue you should select Use A Formula... , then put this formula in the dialogue box:

    =AND(LEN(A1)>0,LEN(A1)<=20)

    Obviously, you should change A1 to the appropriate cell reference of the active cell (assuming you have selected the range of cells beforehand).

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Conditional formatting with LEN between values

    Try ...
    =AND(LEN(A1)>0,LEN(A1)<21)

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting with LEN between values

    Here's another one...

    =AND(LEN(A1),LEN(A1)<21)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting for a value that is between two values
    By Katie.Schomer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2015, 03:59 PM
  2. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  3. Replies: 1
    Last Post: 09-25-2013, 10:05 AM
  4. [SOLVED] conditional formatting only on certain values
    By jimboryan in forum Excel General
    Replies: 4
    Last Post: 04-17-2013, 02:12 PM
  5. conditional formatting on even/odd values
    By umbata in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2011, 02:27 PM
  6. Conditional Formatting for a set of values
    By modest_16081982 in forum Excel General
    Replies: 3
    Last Post: 07-30-2007, 09:08 PM
  7. Values w/conditional formatting
    By Fred Timmons in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-04-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1