+ Reply to Thread
Results 1 to 5 of 5

Count cell values based on text colour

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2006
    Posts
    19

    Count cell values based on text colour

    Hi,

    I would like to be able to count the cell values within a range based on the colour of the text.

    e.g.

    Based on the data below I would like the function to give me a value of 16 (addition of the 2 red values 7 and 9)

    1 (Black)
    5 (Black)
    7 (Red)
    9 (Red)
    0 (Black)
    9 (Black)

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by mundo
    Hi,

    I would like to be able to count the cell values within a range based on the colour of the text.

    e.g.

    Based on the data below I would like the function to give me a value of 16 (addition of the 2 red values 7 and 9)

    1 (Black)
    5 (Black)
    7 (Red)
    9 (Red)
    0 (Black)
    9 (Black)
    This cannot be done with out VBA...
    Do you have other conditions for changing the text color?

  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    If you have used conditional formatting to change the colour of the text you can use these the same conditions to count them.

    Otherwise as davesexel says, it's VB coding
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  4. #4
    Registered User
    Join Date
    10-16-2006
    Posts
    19
    Unfortunately it's not conditional formatting. VB will be fine but do I have to post this in the VB forum?

  5. #5
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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