+ Reply to Thread
Results 1 to 8 of 8

Counting Cells with Specific Text and Font Color

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Counting Cells with Specific Text and Font Color

    I now know that there's no built in formula in excel to count cells with colored font and you need user designated function thru VBA to this.. I have tried the DateIndex and works like a charm in counting the cells with colored font. Can somebody suggest how to make it count colored text but with additional criteria to count only the colored txt with a specific text? Using below sample.. I want a formula to count the instances of apples in red only.

    Apple
    Orange
    Apple
    Banana
    Apple
    Apple
    Banana

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Counting Cells with Specific Text and Font Color

    Can you attached a sample to be sure to use the right color
    "DateIndex in counting the cells with colored font" can you show how you did.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Counting Cells with Specific Text and Font Color

    A possibility could be

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-10-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Counting Cells with Specific Text and Font Color

    Thanks PCI.. attached is the sample.. by the way its ColorIndex :, my mistake.... I want to find a way to count the apples only besides COUNTIF which will not work on colored font hehehe.ColorIndex.xlsm

  5. #5
    Registered User
    Join Date
    01-10-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Counting Cells with Specific Text and Font Color

    Can't we do it by entering the txt in the formula? Without referencing to a cell with the same color and txt?

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Counting Cells with Specific Text and Font Color

    What about
    =SUMPRODUCT((ColorIndex(A1:B7,TRUE)=3)*(A1:B7="Apple"))

  7. #7
    Registered User
    Join Date
    01-10-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Counting Cells with Specific Text and Font Color

    Exactly what I need, really works.. thanks a million PCI

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Counting Cells with Specific Text and Font Color

    You're welcome.
    Here again how important was to send a sample file.

+ 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. vba Find specific text font and change color
    By jacgeld in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2014, 08:16 AM
  2. Counting the maximum consecutive cells by font color
    By moppyau in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2013, 10:01 PM
  3. Change font color of specific text as a result of an if statement
    By Triscia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2013, 11:47 AM
  4. [SOLVED] Count cells that have specific font color
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2012, 08:24 PM
  5. Counting Cells by font color problem
    By markwilest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2007, 12:14 PM

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