Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default How to total Items in a List "not that easy"

Hi:

At first glance this question seems below this group's level , but it's
really not that simple, the list can go on and on and the items are numerous.


What would be the better way to sum the amounts Needed "Column E"
for the individual items in column A!.

A B C D E
1 Material Length Height SqFT Needed
2 Plywood 8 8 0.03 2
3 Block 4 2 1.13 9
4 Brick 10 10 6.75 675
5 Plywood 4 8 0.03 1
6 Block 4 12 1.13 54
7 Brick 10 12 6.75 810

Results Being:

Plywood 3
Block 63
Brick 1485


The result could be written to an obscure part of the worksheet
for the tally and reference if need be.

I tried to use some routines with dsum and subtotal but my solutions seemed
pretty clumsy.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default How to total Items in a List "not that easy"

Hi,
Several methods:
1. Single Criterium
As in your example, you have only 1 criterium eg: count when a1:a7="Plywood"
=COUNTIF(a1:a7,"Plywood")
If you want to sum the total lenght for plywood:
=SUMIF(a1:a7,"Plywood",b1:b7) (will sum b1:b7, which may be
meaningless but just for example)
Instead of exact match, you can also check for =, , <, <=
eg: =SUMIF(a1:a7,"=Plywood",b1:b7) in case you eg Plywood1 and Plywood2
And finally in your example, assuming "Plywood" is entered in A10
=COUNTIF(a1:a7,A10)

2. Multiple Criteria
Use SUMPRODUCT function (see online help)

3. Pivot Table
-Select your data and header
-menu Data Pivot Table
- Step 1of 3 of the Pivot dialog: choose MS Excel list or database. Click Next
- Step 2 of 3: that's the data source which is by default the selected
range. Good. click next.
- Step 3 of 3: in 'Layout' , put 'Material' in Row Data, and put 'Material'
again in Data area. Click finish.
(in this last step, adding a non-numeric field to the Data area
automatically count it, adding a numeric field would sum it by default)

Regards,
Sebastien


"TK" wrote:

Hi:

At first glance this question seems below this group's level , but it's
really not that simple, the list can go on and on and the items are numerous.


What would be the better way to sum the amounts Needed "Column E"
for the individual items in column A!.

A B C D E
1 Material Length Height SqFT Needed
2 Plywood 8 8 0.03 2
3 Block 4 2 1.13 9
4 Brick 10 10 6.75 675
5 Plywood 4 8 0.03 1
6 Block 4 12 1.13 54
7 Brick 10 12 6.75 810

Results Being:

Plywood 3
Block 63
Brick 1485


The result could be written to an obscure part of the worksheet
for the tally and reference if need be.

I tried to use some routines with dsum and subtotal but my solutions seemed
pretty clumsy.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to total Items in a List "not that easy"

You can create a list of unique entries from column A by selecting column A
and doing

Data=Filter=Advanced Filter

select copy to another location - click in the textbox and designate a
location
leave the criteria blank
check the Uniques checkbox on the lower left

Click OK

Assume the first material is in M2
in N2 put in the formula

=Sumif(A:A,M2,E:E)

then drag fill this down

--
Regards,
Tom Ogilvy

"TK" wrote in message
...
Hi:

At first glance this question seems below this group's level , but it's
really not that simple, the list can go on and on and the items are

numerous.


What would be the better way to sum the amounts Needed "Column E"
for the individual items in column A!.

A B C D E
1 Material Length Height SqFT Needed
2 Plywood 8 8 0.03 2
3 Block 4 2 1.13 9
4 Brick 10 10 6.75 675
5 Plywood 4 8 0.03 1
6 Block 4 12 1.13 54
7 Brick 10 12 6.75 810

Results Being:

Plywood 3
Block 63
Brick 1485


The result could be written to an obscure part of the worksheet
for the tally and reference if need be.

I tried to use some routines with dsum and subtotal but my solutions

seemed
pretty clumsy.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default How to total Items in a List "not that easy"

Perfect: Tom

Thank you!


"Tom Ogilvy" wrote:

You can create a list of unique entries from column A by selecting column A
and doing

Data=Filter=Advanced Filter

select copy to another location - click in the textbox and designate a
location
leave the criteria blank
check the Uniques checkbox on the lower left

Click OK

Assume the first material is in M2
in N2 put in the formula

=Sumif(A:A,M2,E:E)

then drag fill this down

--
Regards,
Tom Ogilvy

"TK" wrote in message
...
Hi:

At first glance this question seems below this group's level , but it's
really not that simple, the list can go on and on and the items are

numerous.


What would be the better way to sum the amounts Needed "Column E"
for the individual items in column A!.

A B C D E
1 Material Length Height SqFT Needed
2 Plywood 8 8 0.03 2
3 Block 4 2 1.13 9
4 Brick 10 10 6.75 675
5 Plywood 4 8 0.03 1
6 Block 4 12 1.13 54
7 Brick 10 12 6.75 810

Results Being:

Plywood 3
Block 63
Brick 1485


The result could be written to an obscure part of the worksheet
for the tally and reference if need be.

I tried to use some routines with dsum and subtotal but my solutions

seemed
pretty clumsy.

Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation - List - with "Add Items..." Neon520 Excel Discussion (Misc queries) 4 March 9th 09 05:36 PM
How do I delete items out of my "recent documents" list? susan carroll Excel Discussion (Misc queries) 2 August 17th 07 06:52 PM
Data List - Total Row - Only displays "Total" Debbie Long Excel Worksheet Functions 0 February 14th 07 05:52 PM
Linking two "total" pages to create a "Complete Total" page Jordon Excel Worksheet Functions 0 January 10th 06 11:18 PM
Search "Total" in all worksheets and delete rows containing "Total" mk_garg20 Excel Programming 2 July 30th 04 06:42 AM


All times are GMT +1. The time now is 04:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"