+ Reply to Thread
Results 1 to 2 of 2

formula for counting cells that are light green irispective of content

  1. #1
    Registered User
    Join Date
    11-13-2014
    Location
    birmingham
    MS-Off Ver
    2007
    Posts
    1

    formula for counting cells that are light green irispective of content

    hi can anyone help I'm looking for a formula that can count how many cells in a column (say column A1:A20) that contain a certain cell colour (light green in my case).
    EXAMPLE
    if I only had three cells coloured light green between A1:A20 it would return a value of 3

    but then if i was to change another cell that had no fill before to light green it would change the value to 4 straight away .

    thanks in advance

    tony

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: formula for counting cells that are light green irispective of content

    Color is a horrible kind of "data". Certainly you're coloring those cells green for a reason. If those reasons can be formulated into a cell on the same row, then several things can happen:

    1) You won't have to color cells manually, conditional formatting can do it for you
    2) You can adapt the formula later and all the cells colored by referencing that formula column will update without you having to manually recolor all the cells
    3) All the COUNTIF and COUNTIFS formulas will work out of the gate.

    Remember to desensitize the data in your sample workbook.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Counting Number of Cells That Are Green in a Column
    By skratchmo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 06:04 PM
  2. Check cell content has green color then mark as yes in another sheet.
    By dsk_qa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2012, 07:16 AM
  3. Replies: 3
    Last Post: 03-31-2010, 07:20 AM
  4. Counting cells by colours rather than by content
    By wbleamas in forum Excel General
    Replies: 1
    Last Post: 11-02-2008, 04:23 AM
  5. Counting cells that have turned green
    By plrose in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-19-2008, 01:24 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