counting

W

Win

if i have two columns
001, apple
001, orange
001, orange
001, fish
001, fish
001, fish
002, apple
002, meat
002, meat
003, beef

how can i get the following result
001, apple, 1
001, orange, 2
001, fish, 3
002, apple, 1
002, meat, 2
003, beef, 1
 
D

Dave Peterson

You can get close by sorting the data and using data|subtotals.

You can get closer by using data|pivottable.

Select your data (A1:Cxxx) and include headers in row 1
data|pivottable
follow the wizard until you get a dialog with a Layout button on it.
click that layout button

drag the item number to the row field
drag the fruit name to the row field
drag the fruit name to the data field
and finish up.

If you double click on the grey item number and grey fruit name, you can tell
excel not to show subtotals for that field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top