count how many different numbers in the column and return to the n

C

CC

I have a sheet
Amount Item
$12 1
$2 1
$8 3
$98 2
$23 2
the thing I would like to do is
item amount
1 total(amount part is easy, I can use sumif())
2 ***
3 ***

the item part is hard, I tried if(countif()>0,item #), but I have 7 items in
total, if I have only 3 items in the colume, I will have 4 empty rows.
 
L

Luke M

A PivotTable would work very nicely here because it would automatically
condense/expand to include the number of different items you need, as well as
summing all the value.
 
S

Shane Devenshire

To make a pivot table select the data with one row of titles and choose Data,
PivotTable and PivotChart Report, Next, Next, pick the location and choose
Finish. Then put the Item field in the Row area and the Amount field into
the Data area twice. There will be a Data button in the pivot table, drag
this to the blank cell above the word Total. Right-click either of the Sum
of Amount fields and choose Field Setting. Change the calculation from Sum
to Coount.
 

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