B
Bob
I've got two columns of data, column A is a date column,
and column B is a text column, with the text column being
one of 5 values. My goal is to count the quantity of
values from column B on a per date basis. I can do this
via a pivot table, but I can't figure out how to do this
via a function.
Example:
Column A Column B
11/16/2003 dog
11/16/2003 dog
11/16/2003 cat
11/17/2003 cat
11/17/2003 mouse
11/18/2003 dog
11/18/2003 mouse
I need an output that shows
dog cat mouse total
11/16/2003 2 1 0 3
11/17/2003 0 1 1 2
11/18/2003 1 0 1 2
I've tried several nested if's:
IF(columnA=11/16/2003,(countif(columnB,"cat")),"")
and the vice versa (doing the if on the text first).
Can this be done? I'm at a lost.
and column B is a text column, with the text column being
one of 5 values. My goal is to count the quantity of
values from column B on a per date basis. I can do this
via a pivot table, but I can't figure out how to do this
via a function.
Example:
Column A Column B
11/16/2003 dog
11/16/2003 dog
11/16/2003 cat
11/17/2003 cat
11/17/2003 mouse
11/18/2003 dog
11/18/2003 mouse
I need an output that shows
dog cat mouse total
11/16/2003 2 1 0 3
11/17/2003 0 1 1 2
11/18/2003 1 0 1 2
I've tried several nested if's:
IF(columnA=11/16/2003,(countif(columnB,"cat")),"")
and the vice versa (doing the if on the text first).
Can this be done? I'm at a lost.