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

1. ## 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. ## 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. ## 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?

4. ## 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!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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