• 100% Satisfaction Guarantee

John D, BS Degree in Engineering.
Category: General
Satisfied Customers: 9666
Experience:  Math, science and 25 years experience in computer programming
53785
John D is online now

# can I produce a countif formula that counts the number of

<p>can I produce a "countif" formula that counts the number of cells in a range by colour? i.e. cells D1:D300 have 140 orange, 100 red and 60 green and I wish to summarise. Many thanks</p><p> </p><p>Apologies, this is an Excel question</p>

Hi,

Yes that can be done with a user defined function or macro.

Hope this helps. Let me know if you have any questions, and thank you for clicking Accept if you are satisfied with the solution

John D, BS Degree in Engineering.
Category: General
Satisfied Customers: 9666
Experience: Math, science and 25 years experience in computer programming
Customer: replied 5 years ago.
Hi - thanks for this but are you able to let me know/illustrate how I can do this? Thanks Karen

I am afraid that requires quite a bit of work. You will need first to accept my answer since it has addressed your original question, then open a new question with appropriate amount for doing the macro

Customer: replied 5 years ago.
Hi - the first answer has been accepted so if you are able to outline the formula required it would be appreciated. Many thanks Karen

Thanks Karen

I need your file so I can set up the macro on.

If the file has sensitive information let me know before you upload it

Customer: replied 5 years ago.

thanks but for some reason the upload won't work. I've tried to resolve the query in another way, rather than colours look up and group the values. I have managed for two:

=COUNTIF(\$G\$10:\$G\$3112,">60")

=COUNTIF(\$G\$10:\$G\$3112,"<0")

However, the ones I cannot get to work is the Countif for those that fall between 0-60 - could you please let me have the quick formula for that and hopefully it will resolve my whole issue and I can forget the macro for counting colours (for now). Thanks

Ok, here you go

=COUNTIF(\$G10:\$G\$3112,">0")-COUNTIF(\$G\$10:\$G\$3112,"<=60")

Hope this helps

Customer: replied 5 years ago.

am really sorry but that is coming up with FALSE. is the above not a subtraction formula? I need to count the number of instances where the value falls between zero and 60

Karen it should work if you have numbers in that range

Here is a sample file with the formula in the yellow cell

http://www.2shared.com/document/lhYzA1uw/countif.html

Did that work?

Customer: replied 5 years ago.

Hi - sorry for delay. I have no idea why but it's not working on my file. Have managed to upload my file to :

http://www.2shared.com/file/V9YjIZq4/11-02-18_RC_Governance_Logs_v1.html

If you can see why I've done it wrong again, if not I'll close out on this query and give up. Thanks

Hi Karen

Here you go

http://www.2shared.com/file/68jZ9elp/11-02-18_RC_Governance_Logs_v1.html

(the download button is the blue button is at the bottom of the page)

The modified formula is in cell G3

Hope this helps

John D, BS Degree in Engineering.
Category: General
Satisfied Customers: 9666
Experience: Math, science and 25 years experience in computer programming

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Previous | Next >
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
• He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX

• ### Dr. Y.

#### Satisfied Customers:

20110
I am fellowship trained specializing in general urology and reconstructive urology.
< Last | Next >

### Dr. Y.

#### Satisfied Customers:

20110
I am fellowship trained specializing in general urology and reconstructive urology.

### John

#### Satisfied Customers:

13453
Appliance repair business owner for over 43 years.

### Tina

#### Satisfied Customers:

8775
JD, BBA Over 25 years legal and business experience.

### GM Tech (Cam)

#### Satisfied Customers:

5782
GM Grand Master Technician 2007. 14 years experience.

### dermdoc19

#### Satisfied Customers:

4069
30 years practice in general and cosmetic dermatology

### Dr. Gary

#### Satisfied Customers:

3832
DVM, Emergency Veterinarian, BS (Physiology)