Count multiple criteria
Hi Pete,
I've now applied your function to my master sheet and it works great.
However, I've met two further problems.
1. By using the 0, it then doesn't include any 0 entries I might have in
Col B (Sales Value). I changed the formula to =0 at the end but it then
included the cells that were blank too (cells may be blank until I've agreed
a sale price).
=SUMPRODUCT((TEXT(A1:A100,"mmm-yy")="Jan-08")*(B1:B100=0))
Is there a way of setting the 2nd criteria to be a value or entry of any
kind eg wildcard*.
2. I also need to calculate the value of all the sales when both my criteria
are met. eg. sum if Col A is Jan-08 and Col B has an entry of any value,
what is the sum of the values in Col B. Have tried amending the sumproduct
function but can't quite get there.
Thanks for any help you can offer.
"Pete_UK" wrote:
You're welcome - thanks for feeding back.
Pete
On Dec 2, 11:03 pm, KJ wrote:
Thanks for that. Seems to work a treat on my sample. Will have a go on the
real thing tomorrow. Didn't have the TEXT bit or mmm-yy at all - simply went
into range, "Jan-08". Also, hadn't realised I couldn't use full column
references in v2003.
Thank you kindly.
|