+ Reply to Thread
Results 1 to 2 of 2

Counting cells that fall within a date range and that are bolded

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    SPringfield, MO
    MS-Off Ver
    2016
    Posts
    1

    Counting cells that fall within a date range and that are bolded

    Hello,

    I'm new to this forum and thanks in advance for any help I can get on this issue.

    I have several worksheets I use to track information and one main worksheet which is my Monthly Report which pulls information from all the other worksheets automatically. On the Monthly Report worksheet, I have a cell that has the full name of the current month and another one that has the current year. I've got all the formulas on the Monthly Report set up to where I can change the month and/or the year and it will pull all the data from the other worksheets that correspond with that month/year.

    One piece I am struggling with is trying to count cells from another worksheet that both (1) match the currently displayed month/year on the Monthly Report and (2) are in bold(the bold is to signify a certain status). I realize I may have to use VBA to accomplish this.

    Here is an example:

    On the Monthly Report worksheet, K2=November and N2=2018
    I want to count all the cells in column E in Worksheet2 that contain dates that fall within the month of November 2018 and that are bold.

    I have a good formula that I use in another cell that accomplishes the task of counting the dates by converting them to text and comparing them to K2 and N2. Here is what that formula looks like: =SUMPRODUCT(--(TEXT(Transitions!E26:E95, "mmmmyyyy")=K2&N2))

    I just can't figure out how to add the second condition of those dates being bold as well.

    I hope I've not sounded too confusing and appreciate any help I can get on this.

    Thank you!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Counting cells that fall within a date range and that are bolded

    Hi

    Can you tell us if there is a condition that dictates that the cell should be in bold?

    If so that condition can be used for count, otherwise you need VBA.

    In alternative make a column with a value 1 if the cell is bold or 0 if not and use that column in your formula.

+ 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] Counting Number of cells that fall within a date range not working
    By adam121212 in forum Excel General
    Replies: 3
    Last Post: 06-12-2017, 03:51 PM
  2. Add Cells Whose Date Fall Between A Specific Range
    By STBTC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2016, 07:31 PM
  3. [SOLVED] Counting how many rows fall on a certain date between two other dates in different cells
    By JessHasQuestions in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2014, 10:18 AM
  4. [SOLVED] Counting hours and minutes that fall within a date range
    By Harrytheb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2013, 05:42 PM
  5. Counting figures that fall withing a weekly date range
    By sam-1890 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2012, 06:58 AM
  6. [SOLVED] Counting cells that fall in a date range AND meet a Yes/No condition
    By pentatonic145 in forum Excel General
    Replies: 2
    Last Post: 05-01-2012, 04:26 PM
  7. Auto fill cells with a calculation if they fall in a given date range
    By timmy1254 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2011, 08:31 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