+ Reply to Thread
Results 1 to 4 of 4

Returning a count of how many letters in a string are a certain font colour

  1. #1
    Registered User
    Join Date
    07-21-2020
    Location
    Glasgow
    MS-Off Ver
    2016
    Posts
    2

    Returning a count of how many letters in a string are a certain font colour

    Hi there,

    I am doing a piece of analysis work using a VBA macro which compares two addresses and highlights any character differences in red.

    Now that I have run this, I want to be able to find out how many characters within each cell are red. I've found solutions for finding how many cells have red text but that adds them as whole. I need it to be broken down to character level.

    E.g. If I had the address 221 B Baker Street and the letters Baker and eet were highlighted red, the formula could be used in the next cell to return the value 8 as 8 letters are red (Baker and eet).

    Any help would be greatly appreciated.
    Last edited by scott0808; 07-21-2020 at 08:04 AM.

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Returning a count of how many letters in a string are a certain font colour

    You can use the below function:

    Please Login or Register  to view this content.
    Usage on the sheet is:

    Please Login or Register  to view this content.
    Enter this in cell B1 and see the number of characters in red in cell A1.

  3. #3
    Registered User
    Join Date
    07-21-2020
    Location
    Glasgow
    MS-Off Ver
    2016
    Posts
    2

    Re: Returning a count of how many letters in a string are a certain font colour

    This worked an absolute treat. Thank you very much for your help and quick response!!!!!

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Returning a count of how many letters in a string are a certain font colour

    You're welcome...

+ 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] How to count conditionally formatted font (red) cells and cell colour
    By Nampara in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-01-2018, 04:48 PM
  2. [SOLVED] Count Based on Text and Font colour
    By SamFitz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2016, 12:39 PM
  3. [SOLVED] Replace specific chars in string w/o changing existing font colour
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2014, 11:30 AM
  4. [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
  5. Count by value AND by font colour
    By Blondegirl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-22-2006, 07:36 AM
  6. [SOLVED] count number of letters in a string
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2006, 01:55 PM
  7. count number of letters in a string
    By Wiley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-11-2006, 01:50 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