+ Reply to Thread
Results 1 to 5 of 5

Count cells with any data in and cahnge colour when = to specific cell value

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    2

    Post Count cells with any data in and cahnge colour when = to specific cell value

    Hi,
    I am trying to get a formula that will change the cell colour when the number of cells in a column with data entered equals the value in a predetermined cell.
    I.E.

    Cell A1 has a value of 10 entered in, so when the number of cells between A3-A43 with data in = 10, A1 to turn Yellow.
    its excel 2010.

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count cells with any data in and cahnge colour when = to specific cell value

    conditional format a1 as formula option of
    =counta(A3:A43)>=a1
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Count cells with any data in and cahnge colour when = to specific cell value

    Hi
    You can use Conditional Formatting on cell A1. Select A1 then click on Conditional Formatting. Choose use a Formula (last option) and paste this formula into the box:

    =COUNTA(A3:A43)>=A1

    Good luck.
    Tony

  4. #4
    Registered User
    Join Date
    11-18-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    2

    Post Re: Count cells with any data in and change colour when = to specific cell value

    Hi Guys,
    that worked a charm. Is there a formula that would prevent data being entered into a cell until the value in A1 is increased?
    IE if A1 =15, when 15 cells have data in the same column the rest are blocked until A1's value is increased?


    Brgds
    GH

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count cells with any data in and cahnge colour when = to specific cell value

    you could use data validation
    apply validation of custom /formula

    =COUNTA($A$3:$A$43)<=$A$1
    to cells a3:a43
    however you could still paste over the cells though

+ 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] Count number of times a specific colour is displayed in the cell
    By vignesh805 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2013, 04:45 AM
  2. Count the number of cells with a specific colour
    By Naja in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-12-2013, 11:06 AM
  3. Count cells with a specific fill colour
    By BrianJC in forum Excel General
    Replies: 3
    Last Post: 01-09-2012, 07:30 PM
  4. Replies: 1
    Last Post: 05-16-2006, 05:20 AM
  5. How can I count cells of a specific colour (pattern)?
    By Nick@Durham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-29-2005, 06:25 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