+ Reply to Thread
Results 1 to 8 of 8

How to count conditionally formatted font (red) cells and cell colour

  1. #1
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    How to count conditionally formatted font (red) cells and cell colour

    Thanks sktneer and kev_ who solved the first part of my problem now here is the second part -


    I want to be able count the number of people who have No FTE (0.0) by campus colour where "Person? (0.0)" is conditionally formatted to red (RBG 255,0,0) - unfortunately I can't tell the spreadsheet to count 0.0 in the FTE column as the formula I have used returns 0.0 for job titles.

    Sample spreadsheet attached.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to count conditionally formatted font (red) cells and cell colour

    Well, it worked on your sample:

    Please Login or Register  to view this content.
    Last edited by xladept; 03-01-2018 at 02:10 PM. Reason: to get all total rows
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    Re: How to count conditionally formatted font (red) cells and cell colour

    Hi

    Thanks for your reply unfortunately I can't get it to work in my sample spreadsheet. Could you reupload my sample with your solution.

    Thanks

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to count conditionally formatted font (red) cells and cell colour

    Here you go:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    Re: How to count conditionally formatted font (red) cells and cell colour

    thanks unfortunately I can't get it to work.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to count conditionally formatted font (red) cells and cell colour

    It's pretty quick - have you deleted G10:G15 and run it??

  7. #7
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    Re: How to count conditionally formatted font (red) cells and cell colour

    Hi

    Thanks for this it now works - just a quick query - the original spreadsheet I am working with has at least 5 columns that I need to count - will this allow me to count more than one column

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to count conditionally formatted font (red) cells and cell colour

    In the code Cells(r,5) the 5 is for column "E" -the fifth letter.

    For different columns you'd need different indices

    You're welcome and thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Count Colour Cells (Conditionally Formatted)
    By fastcar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2017, 03:28 PM
  2. How to count cell colour on conditonally formatted cells
    By casper08 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2014, 03:10 PM
  3. UDF to Count Conditionally formatted cells by colour
    By ozzy_q in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-06-2013, 09:00 AM
  4. [SOLVED] How do you copy only those cells conditionally formatted to a certain colour?
    By strud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2013, 05:03 AM
  5. [SOLVED] Sum of conditionally formatted cells by colour
    By codeyl5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2012, 09:42 AM
  6. Counting cells conditionally formatted, by colour
    By edwar368 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2011, 05:30 PM
  7. Extracting Font Color from a Conditionally Formatted Cell
    By rsromano in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-27-2010, 04:21 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