+ Reply to Thread
Results 1 to 9 of 9

How to count bold cell with conditional formatting.

  1. #1
    Registered User
    Join Date
    09-14-2019
    Location
    India
    MS-Off Ver
    7,10,13
    Posts
    3

    How to count bold cell with conditional formatting.

    Hello Everyone,

    I am recently trying to count bold cell in excel with use of conditional formatting, but i'm unable to count bold cell in excel.
    Kindly suggest me for the same.
    Last edited by RoshanRaj; 09-14-2019 at 01:07 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to count bold cell with conditional formatting.

    Welcome to the Forum RoshanRaj!

    There is no feature in Excel worksheet functions that allow you to determine if a cell has bold text, so there is no built-in way to count them. It can be done by adding a custom VBA function.

    Conditional Formatting deals with setting formats. Even if you can count bold cells, it is unclear how you want to use conditional formatting. Please explain what you are trying to do.

    Here is a function that will count cells with bold text:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-14-2019
    Location
    India
    MS-Off Ver
    7,10,13
    Posts
    3

    Re: How to count bold cell with conditional formatting.

    Thanks for your reply.
    As you have suggested procedure in your reply have done according mentioned it is good suggestion but it is not works for conditional formatting.
    If i apply conditional formatting for output between to numbers and select format of output in bold font it will come into bold font. After come output in bold want to count in numbers that how much bold cell has came into results.

    Kindly suggest once again !

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to count bold cell with conditional formatting.

    What exactly is the condition you are using in conditional formatting? And what range are you applying it to?

    You need to use that same condition to count cells, not counting bold cells.

  5. #5
    Registered User
    Join Date
    09-14-2019
    Location
    India
    MS-Off Ver
    7,10,13
    Posts
    3

    Re: How to count bold cell with conditional formatting.

    Dear Sir/Ma'am,

    Thanks once again for your reply.

    I want to know the employees name and days of late coming (I.e. Marked their attendance after 10:15 AM) & also know the total numbers of days coming in series.
    Attachment 641643 (Attached file for your reference)
    I am trying with conditional formatting for knowing the employees late coming time it work in conditional formatting but i was unable to count total number of days of late coming.

    you are requesting that kindly suggest how to solve this problem.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to count bold cell with conditional formatting.

    Attempting to open the attachment in post #5 results in the following message: "Invalid Attachment specified. If you followed a valid link, please notify the administrator"
    To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Please be sure to manually include the expected output of the sample data.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: How to count bold cell with conditional formatting.

    Untested as I am about to run out, but does this do what you want (it counts bold text cells cause by Conditional Formatting and ignore bold cells set manually)...
    Please Login or Register  to view this content.
    Note: I do not believe this function will, or can be made to, update automatically as changing font colors does not raise any events in Excel or cause Excel to recalculate a sheet.
    Last edited by Rick Rothstein; 09-23-2019 at 08:19 AM.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: How to count bold cell with conditional formatting.

    @Rick Rothstein
    Unfortunately you cannot use DisplayFormat in a UDF.

  9. #9
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: How to count bold cell with conditional formatting.

    Quote Originally Posted by Fluff13 View Post
    @Rick Rothstein
    Unfortunately you cannot use DisplayFormat in a UDF.
    Picky...picky...picky. Of course you are right... and I knew that but that is what I get for trying to answer a question without having sufficient time to think about it (I had to run out to pick up my granddaughter). I guess we'll have to wait for the OP to tell us the formula he used in his Conditional Format.

+ 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. Replies: 3
    Last Post: 08-13-2019, 07:33 PM
  2. VBA: Count cell colours including conditional formatting
    By ragulduy in forum Tips and Tutorials
    Replies: 0
    Last Post: 12-17-2013, 11:04 AM
  3. VBA Formatting on bold
    By devilchild99 in forum Excel General
    Replies: 3
    Last Post: 09-12-2013, 01:10 AM
  4. [SOLVED] conditional formatting to count characters in a cell
    By juliemad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2012, 04:03 PM
  5. Replies: 1
    Last Post: 02-16-2012, 02:26 AM
  6. Bold text in rows (Conditional formatting XL2007)
    By chaomifen in forum Excel General
    Replies: 4
    Last Post: 08-13-2010, 01:24 PM
  7. excel count cell with color conditional formatting
    By Marco in forum Excel General
    Replies: 6
    Last Post: 11-20-2005, 01:00 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