Dear Friends,
I have two columns of sales data A and B. Column A contains garment types e.g. Hats, Coats, Scarves etc. and each entry is unique. Column B contains colours e.g. green, red, blue etc. and contains duplicates (and possibly blanks). I wish to know how many different coloured hats have been purchased. Having trawled the web, the common result on a question like this provides a formula structured:
=SUMPRODUCT((Criteria_Range="Hats")/COUNTIF(Count_Range , Count_Range&""))
When I apply this formula, I keep getting answers there not whole numbers e.g. 1.5 or 0.8. My query cannot be that complicated, what am I doing wrong?
Can someone help? Its driving me crazy. Thank you!
I have two columns of sales data A and B. Column A contains garment types e.g. Hats, Coats, Scarves etc. and each entry is unique. Column B contains colours e.g. green, red, blue etc. and contains duplicates (and possibly blanks). I wish to know how many different coloured hats have been purchased. Having trawled the web, the common result on a question like this provides a formula structured:
=SUMPRODUCT((Criteria_Range="Hats")/COUNTIF(Count_Range , Count_Range&""))
When I apply this formula, I keep getting answers there not whole numbers e.g. 1.5 or 0.8. My query cannot be that complicated, what am I doing wrong?
Can someone help? Its driving me crazy. Thank you!