+ Reply to Thread
Results 1 to 12 of 12

Count fill cells

  1. #1
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Count fill cells

    Hey I googled this code, but all I get for a result is #NAME?
    I was told to type =CountCellsByColor(A3:G3,J3)

    I'm trying to count cells with a specific fill color

    Here is the code I was supplied:
    Please Login or Register  to view this content.
    Last edited by PNick; 07-18-2023 at 04:29 PM.

  2. #2
    Banned User!
    Join Date
    05-13-2023
    Location
    Venera
    MS-Off Ver
    2007
    Posts
    79

    Re: Count fill cells

    There isn't function named CountCellsByColor in your macro.

  3. #3
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    Oh my, I pasted the wrong formula into this form. It is correct in my workbook. Edited original post.

    Please Login or Register  to view this content.

  4. #4
    Banned User!
    Join Date
    05-13-2023
    Location
    Venera
    MS-Off Ver
    2007
    Posts
    79

    Re: Count fill cells

    Upload Excel file.

  5. #5
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130
    Quote Originally Posted by oEx View Post
    Upload Excel file.
    Sorry away from computer. I will later if this cannot be resolved without the file.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Count fill cells

    Where have you put the code? It needs to be in a standard module.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    File attched
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    It is (I believe) I've now attached the file

  9. #9
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    Done, attached now

  10. #10
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    I Beleive it is

  11. #11
    Forum Contributor
    Join Date
    03-17-2017
    Location
    Alberta, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    130

    Re: Count fill cells

    Not sure what happenend, but I closed and reopened and it works fine....

  12. #12
    Banned User!
    Join Date
    05-13-2023
    Location
    Venera
    MS-Off Ver
    2007
    Posts
    79

    Re: Count fill cells

    You didn't enabled macro on opening the file, it will show #NAME because of macro security.

+ 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 cells with a fill colour
    By Catalpa in forum Excel General
    Replies: 2
    Last Post: 01-12-2017, 05:22 AM
  2. Count cells with fill color
    By Phillip in forum Excel General
    Replies: 4
    Last Post: 06-30-2014, 12:53 PM
  3. [SOLVED] Need to count cells by color fill.
    By JB33 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-03-2014, 04:04 PM
  4. [SOLVED] Count cells based on a fill color
    By Mike K. in forum Excel General
    Replies: 2
    Last Post: 06-13-2011, 03:04 PM
  5. Count cells that contain fill colour
    By bondi26 in forum Excel General
    Replies: 4
    Last Post: 11-08-2007, 03:55 PM
  6. How to count cells with particular color fill?
    By gus in forum Excel General
    Replies: 2
    Last Post: 05-25-2007, 01:39 AM
  7. how to formate cells to count cells with a fill color?
    By Moore in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-15-2005, 02:05 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