+ Reply to Thread
Results 1 to 4 of 4

How to count items in a date range in column F, w/o initials or blanks in col G

  1. #1
    Registered User
    Join Date
    05-12-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    17

    How to count items in a date range in column F, w/o initials or blanks in col G

    Hello,

    I need to exclude blank cells from my formula. Currenlty I am using a formula which was kindly provided to me on this forum. It works great except that I realized I also need to exclude blank cells in column G from my count. In addition if the cells in column H are non-blank cells, I need to exclude those from my count as well.

    I am trying to account for work completed by new employees to come whose initials we don't have on our spreadsheets yet(of course). So I am accounting for this in a special column by trying to take out all the known initial combo's and blanks (blanks because I do not initial my own work completed). However, if the work has a word in column H, it means it was rejected. I dont want to include non-blanks in column H.

    Here is what I have so far:

    =SUMPRODUCT((Stats!F2:F5000>=DATE(2012,4,30))*(Stats!F2:F5000<=DATE(2012,5,4))*(ISNA(MATCH(Stats!G2:G5000,{"ac","gm","tm","jp","rr","mr","dv"},0))))

    I really appreciate any feedback! I am using excel 2003.

  2. #2
    Registered User
    Join Date
    05-12-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to count items in a date range in column F, w/o initials or blanks in col G

    Or, If someone can tell me how to refer to blank and non blank cells in a sumproduct formula, that would also be helpful.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: How to count items in a date range in column F, w/o initials or blanks in col G

    For column H, add (Stats!H2:H5000="") and for G, (Stats!G2:G5000<>"")
    sooo

    =SUMPRODUCT((Stats!H2:H5000="")*(Stats!G2:G5000<>"") * (Stats!F2:F5000>=DATE(2012,4,30))* (Stats!F2:F5000<=DATE(2012,5,4))*(ISNA(MATCH(Stats!G2: G5000,{"ac","gm","tm","jp","rr","mr","dv"},0))))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-12-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to count items in a date range in column F, w/o initials or blanks in col G

    Worked perfectly!! You've saved me countless hours :-) Thank you! Thank you!

+ 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