ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how can I list items in a column with totals? (https://www.excelbanter.com/excel-discussion-misc-queries/14209-how-can-i-list-items-column-totals.html)

andy

how can I list items in a column with totals?
 
how can I list items in a column with totals?

I have a column containing a list of multiple (text) items.

I'd like to have a summary, so that I have a list of the items together with
the totals of how many times the item appeared.

I guess this must be simple, but don't know how to go about it.

Cheers

papou

Hello Andy
Have a look at Data, Sub-Totals
HTH
Cordially
Pascal

"andy" a écrit dans le message de news:
...
how can I list items in a column with totals?

I have a column containing a list of multiple (text) items.

I'd like to have a summary, so that I have a list of the items together
with
the totals of how many times the item appeared.

I guess this must be simple, but don't know how to go about it.

Cheers




Dave O

Hi, Andy-
Here's how I do it, assuming all your text labels are in column A and
the numbers to be summed are in column B. I develop a grand total for
all items at the bottom of column B: call it cell B100. Under that I
list each item that appears in column A: call it cell A103 to A108.
The formula in cell B103 is
=SUMIF($A$1:$A$99,A103,$B$1:$B$99)
....which you can copy down through B108. In cell B109, develop a sum
of the individual totals and compare it to the total in B100 as a
checksum to make sure the list in A103:A108 is comprehensive.


andy

A bit more detail...

I have a column with text entries, ie:

a
a
b
c
c
c
a
a
c

I'm looking for someway to display all the text entries, i.e. a,b,c, but
will also give how many times they appeared in the list, so it would look
something like
a 4
b 1
c 3

There may be several types of text in the column (i.e. a,b,c,d,e,f,g etc...)
so I'm looking for something where you don't have to type in the values.

There may also be empty cells in the list. I wouldn't want to count them.

Any ideas?



"andy" wrote:

how can I list items in a column with totals?

I have a column containing a list of multiple (text) items.

I'd like to have a summary, so that I have a list of the items together with
the totals of how many times the item appeared.

I guess this must be simple, but don't know how to go about it.

Cheers


Dave Peterson

If your data is sorted, you could add a header row (if you don't have one) and
then:

Data|subtotal

Another option that is very powerful is: Data|Pivottable.

Add a single row of headers to your data (if you don't have them now).
select your data A1:A999 (through the bottom right corner)
Data|pivottable (actually, this menu item changes captions with versions of xl)
follow the wizard
(just click Next until you get to a dialog that has a Layout button on it)
click that Layout button
Drag the header for the column to the Row field.
drag the header for the Column field to the data field

If you don't see "Count of xxx" then double click on that one and
change it to Count

click ok and finish

Tada!

If you want to read more about the pivottable stuff, you may want to look at
some links:

Debra Dalgleish's pictures at Jon Peltier's site:
http://peltiertech.com/Excel/Pivots/pivottables.htm
And Debra's own site:
http://www.contextures.com/xlPivot01.html

John Walkenbach also has some at:
http://j-walk.com/ss/excel/files/general.htm
(look for Tony Gwynn's Hit Database)

Chip Pearson keeps Harald Staff's notes at:
http://www.cpearson.com/excel/pivots.htm

MS has some at (xl2000 and xl2002):
http://office.microsoft.com/downloads/2000/XCrtPiv.aspx
http://office.microsoft.com/assistan...lconPT101.aspx

andy wrote:

A bit more detail...

I have a column with text entries, ie:

a
a
b
c
c
c
a
a
c

I'm looking for someway to display all the text entries, i.e. a,b,c, but
will also give how many times they appeared in the list, so it would look
something like
a 4
b 1
c 3

There may be several types of text in the column (i.e. a,b,c,d,e,f,g etc...)
so I'm looking for something where you don't have to type in the values.

There may also be empty cells in the list. I wouldn't want to count them.

Any ideas?

"andy" wrote:

how can I list items in a column with totals?

I have a column containing a list of multiple (text) items.

I'd like to have a summary, so that I have a list of the items together with
the totals of how many times the item appeared.

I guess this must be simple, but don't know how to go about it.

Cheers


--

Dave Peterson


All times are GMT +1. The time now is 05:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com