VBa code to select from worksheet
I have some columns like this below except that there are 700 rows.
Date Status
3/7/2006 CLOSED
3/7/2006 CLOSED
3/7/2006 CANCEL
3/7/2006 OPEN
3/7/2006 OPEN
3/7/2006 OPEN
I need to be able to produce output like this:
Date Status Count
3/7/2006 CLOSED 2
3/7/2006 CANCEL 1
3/7/2006 OPEN 3
I was wondering if excel can do something like:
select a, b, count(a) as c
from worksheet1
group by a, b
Any chance?
Mike
|