+ Reply to Thread
Results 1 to 4 of 4

Count Based on Text and Font colour

  1. #1
    Registered User
    Join Date
    06-01-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    20

    Count Based on Text and Font colour

    Hi All,

    I'm not quite sure of the best way to achieve this - I have a column of data with 4 possible text entries (let's say APPLE, PEAR, ORANGE, MANGO) these text entries can be one of two font colours (RED or BLACK).

    What I am trying to do is to come up with a simple formula to count how many red and black values there are of each text entry. (ie. how many times is APPLE is font colour red and how many times black, etc).

    If something possible with COUNTIFS?

    Is it possible to extract the font colour into a helper column? (saying Red or Black as text)

    I have a lot of data and sheets to apply do this on, I have a long way of doing it using a VBA

    =CountColour(range_data,criteria)
    Please Login or Register  to view this content.
    but that means I have to sort the text and then enter the range of each text for the formula to search, which takes ages!

    Any help appreciated, thank you

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 06-01-2016 at 01:58 PM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count Based on Text and Font colour

    Hi
    Try to use a simple code to get color
    See
    Please Login or Register  to view this content.
    You can use any one to count with a helper column and COUNTIF

  3. #3
    Registered User
    Join Date
    06-01-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    20

    Re: Count Based on Text and Font colour

    Thank you Jose, That's great! Solved my problem

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count Based on Text and Font colour

    I'm Happy to have helped.

    Don't forget to mark this thread as SOLVED from the top of this page (Thread Tools)

+ 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 how many red colour font text or numeric in a column
    By PRADEEPB270 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2013, 02:56 AM
  2. Replies: 1
    Last Post: 09-10-2013, 10:28 PM
  3. formula based on font colour
    By JobiBanana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2012, 09:13 AM
  4. [SOLVED] Value based on Font colour
    By coach.32 in forum Excel General
    Replies: 4
    Last Post: 11-21-2009, 01:00 PM
  5. Find and Add based on Font Colour
    By seanyeap in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2009, 08:32 AM
  6. Count cell values based on text colour
    By mundo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2008, 09:25 AM
  7. Calculation based on font colour?
    By creationracing in forum Excel General
    Replies: 4
    Last Post: 02-13-2007, 02:42 PM
  8. Count by value AND by font colour
    By Blondegirl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-22-2006, 07:36 AM

Tags for this Thread

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