complex fomula: counting cells that are blank

S

shmurphing

I have a range of cells that I need to count and they must meet certain
criteria. I have found that if the cell is blank, it will count it instead
of eliminating it from the criteria.

Here is the sumproduct formula I have been using:
=SUMPRODUCT(--('Wpg #s data'!C2:C642="Incident"),--('Wpg #s data'!G2:G642<D2))

I need to eliminate a count for cells that are blank in the G column.
Column G contains the date and time of the record. So, it should ask, is it
an incident, and is the date greater than a specific date, and eliminate it
in the count if it is null. Possible?
 
D

Dave R.

Your formula is "asking" if it is LESS than a specific date (in D2), try
flipping the sign around to a ">".
 
A

Aladin Akyurek

=SUMPRODUCT(--('Wpg #s data'!C2:C642="Incident"),--('Wpg #s
data'!G2:G642<D2),--ISNUMBER('Wpg #s data'!G2:G642))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top