Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tamsen
 
Posts: n/a
Default Summing by categories

Hello,
I would like to summarise my dive times (columan A) by depth (column B).
E.g. summed dive times for depths 0-9.9m, 10-19.9m, 20-29.9m, 30-39.9m,
40-49.9m, 50m-.

I cannot find similar syntax in the Function Help section.

Thank you,
Tamsen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default Summing by categories

=SUMPRODUCT(--(B1:B10<10), A1:A10)
=SUMPRODUCT(--(B1:B10=10), --(B1:B10<20), A1:A10)
=SUMPRODUCT(--(B1:B10=20), --(B1:B10<30), A1:A10)
=SUMPRODUCT(--(B1:B10=30), --(B1:B10<40), A1:A10)
=SUMPRODUCT(--(B1:B10=40), --(B1:B10<50), A1:A10)
=SUMPRODUCT(--(B1:B10=50), A1:A10)

"Tamsen" wrote:
Hello,
I would like to summarise my dive times (columan A) by depth (column B).
E.g. summed dive times for depths 0-9.9m, 10-19.9m, 20-29.9m, 30-39.9m,
40-49.9m, 50m-.

I cannot find similar syntax in the Function Help section.

Thank you,
Tamsen

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Summing by categories

Assuming that you have Time and Depth as headers in A1:B1 and data from
row 2 downwards...

In C1 enter: Category

In C2 enter & copy down:

=LOOKUP(B2,{0,10,20,30,40,50},{"0-9.9m","10-19.9m","20-29.9m","30-39.9m","40-49.9m","=50m"})

Now select the range in A:C inclusing the headers and run:

Data|PivotTables...

which would allow you to create any summary type you want by category:
Total, average, max, min, etc. all at once.

Tamsen wrote:
Hello,
I would like to summarise my dive times (columan A) by depth (column B).
E.g. summed dive times for depths 0-9.9m, 10-19.9m, 20-29.9m, 30-39.9m,
40-49.9m, 50m-.

I cannot find similar syntax in the Function Help section.

Thank you,
Tamsen

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
Switching Subcategories into Categories and Vice Versa [email protected] Excel Worksheet Functions 7 April 17th 06 03:23 PM
Drop down categories in Excel P. Carpenter Excel Worksheet Functions 1 April 17th 06 04:07 AM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 0 May 4th 05 02:46 PM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 2 May 3rd 05 01:23 AM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 0 April 29th 05 12:06 PM


All times are GMT +1. The time now is 08:51 PM.

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

About Us

"It's about Microsoft Excel"