Hey all,
So I have a table that has roughly 250,000 rows that looks like this:
The Customer # and State fields are text types, and the Sales and Year fields are number types.
Customer # - Sales - Year - State
000001 - $100.00 - 2011 - VT
000001 - $200.00 - 2010 - VT
000002 - $500.00 - 2011 - CA
000003 - $100.00 - 2011 - VT
000004 - $0.00 - 2010 - VT
000004 - $50.00 - 2011 - VT
000004 - $100 - 2011 VT
What I'm looking to do is to write a formula that counts the number of unique customer numbers (customers) who have sales greater than $0, in 2011, and are in the state of VT.
Using the table above, I should get back the number 3, as there are three different customer numbers who have some positive sale in 2011 in Vermont (Records 1, 4 and 6 and 7 qualify all criteria, but then since 6 and 7 contain the same customer number only 1 would count towards my total number).
Any ideas? I've toyed around with countif(s) and am still a bit stumped.
Bookmarks