+ Reply to Thread
Results 1 to 7 of 7

Can a cell formula count only the cell values that are in bold?

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Austin, TX - USA
    MS-Off Ver
    Microsoft 365
    Posts
    114

    Can a cell formula count only the cell values that are in bold?

    I have a table, let's say B5:D7. Let's say, each of the cells in the table has an alphanumeric value. I have a VB script that marks any of the cells that I double-click on by changing its fill color to green and the font weight of the cell changes to bold. What I want to add to my sheet is a total count of all the "marked" cells that will be displayed in D1. I had a VB script for that, but the problem that I had was that the count did not automatically update with each new marked cell. I had to "refresh" the sheet to see the updated count. Is there a way make it work with a cell formula, similar to "=COUNTIF(B5:D7,???)" or, maybe, count the cells that have a different fill color?
    Last edited by 6StringJazzer; 11-26-2021 at 04:37 PM. Reason: Moved from Excel Formulas & Functions

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Can a cell formula count only the cell values that are in bold?

    Share your current VB Script to make changes.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Can a cell formula count only the cell values that are in bold?

    can't you add a recalculation or a call to that 2nd script as last command in your 1st script ?
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  4. #4
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Austin, TX - USA
    MS-Off Ver
    Microsoft 365
    Posts
    114

    Re: Can a cell formula count only the cell values that are in bold?

    Quote Originally Posted by :) Sixthsense :) View Post
    Share your current VB Script to make changes.
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,594

    Re: Can a cell formula count only the cell values that are in bold?

    What I want to add to my sheet is a total count of all the "marked" cells that will be displayed in D1.
    Please Login or Register  to view this content.
    Last edited by protonLeah; 11-26-2021 at 04:06 PM.
    Ben Van Johnson

  6. #6
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Can a cell formula count only the cell values that are in bold?

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

  7. #7
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Austin, TX - USA
    MS-Off Ver
    Microsoft 365
    Posts
    114

    Re: Can a cell formula count only the cell values that are in bold?

    Thank you, y'all! It's exactly what I was looking for!

+ 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. How to count bold cell with conditional formatting.
    By RoshanRaj in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-23-2019, 01:41 PM
  2. [SOLVED] How to extract BOLD values only in excel into another cell ?
    By Ashlaad in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-20-2018, 12:31 PM
  3. Replies: 8
    Last Post: 03-28-2018, 04:12 AM
  4. Replies: 2
    Last Post: 04-03-2017, 01:19 PM
  5. Separating Bold from After-Bold Parts of Cell Strings
    By mlexcelhelpforum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2012, 07:11 AM
  6. Insert Bold Line After Counting Cell Values
    By temple.georgia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2012, 05:43 AM
  7. Count bold text values
    By Stan Altshuller in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 10:05 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