+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting based on number of characters

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Conditional Formatting based on number of characters

    Hello. Can you use conditional formatting based on the number of characters in a cell? I have line items in column 1. If the number of characters is less than 10 I want to color that row for the first four columns the same color (grey). Can I do this?

    I think I could do conditional formatting. Would this formula work: AND(LEN(A29:A400,10)....SAME range not equal to "" (for blank rows)?

    Thanks
    Last edited by amartino44; 10-11-2013 at 12:55 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting based on number of characters

    The rule would look like this, for "Use a formula to determine which cells to format" and would apply to the range $A:$D

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Conditional Formatting based on number of characters

    Sweet. I think that is going to work. The only problem is that A1 is a formula so Len isn't working on it. This is an example of a line item 601100 601100 5008 ACCRUED PTO but the content in the cell is a lookup formula. WHat should I do?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Conditional Formatting based on number of characters

    I think I answered something similar in your other thread?

    CF doesnt look at the formula in a cell (no regular formula does), rather it sees the answer to that formula. So if the answer is <10, the formula will see that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Conditional Format based on Number of Characters in a cell
    By Shadefalcon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-01-2012, 10:06 AM
  2. Conditional Format based on Number of Characters in a Cell
    By Shadefalcon in forum Excel General
    Replies: 1
    Last Post: 10-01-2012, 09:33 AM
  3. Conditional formatting based on a row number
    By dlwoodsaust in forum Excel General
    Replies: 3
    Last Post: 03-15-2012, 12:33 PM
  4. Replies: 2
    Last Post: 07-08-2010, 05:52 AM
  5. Formatting the zoom based on max number of characters in a cell
    By poopdish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2007, 01:13 PM

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