Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SueC
 
Posts: n/a
Default calculate the sum of cells where values are between 6 and 10 in e.

Office 2003
In the example below I would like to calculate the sum of all values which
are in these catergories: 0-5, 6-10 and 11-15.
eg:
value age
5 4
55 5
41 10
1 15
2 4
5 5
I have used =SUMIF(b2:b25, "<6", a2:a25) for the first catergory. I'm stuck
on the second catergory. Please can someone help me with this.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A100<

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SueC" wrote in message
...
Office 2003
In the example below I would like to calculate the sum of all values which
are in these catergories: 0-5, 6-10 and 11-15.
eg:
value age
5 4
55 5
41 10
1 15
2 4
5 5
I have used =SUMIF(b2:b25, "<6", a2:a25) for the first catergory. I'm

stuck
on the second catergory. Please can someone help me with this.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try again

=SUMPRODUCT(--(A1:A100=0),--(A1:A100<6),B1:B100)

or

=SUMIF(A1:A100,"=0",B1:B100) - SUMIF(A1:A100,"=6",B1:B100)

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SueC" wrote in message
...
Office 2003
In the example below I would like to calculate the sum of all values which
are in these catergories: 0-5, 6-10 and 11-15.
eg:
value age
5 4
55 5
41 10
1 15
2 4
5 5
I have used =SUMIF(b2:b25, "<6", a2:a25) for the first catergory. I'm

stuck
on the second catergory. Please can someone help me with this.



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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
How do I calculate ratios between 2 cells? Excel Novice Excel Discussion (Misc queries) 2 January 17th 05 03:29 PM
How do you calculate the difference between two values within a p. emlouise Excel Discussion (Misc queries) 2 December 10th 04 03:13 AM
delete values in several cells without deleting the formulas dranreb Excel Discussion (Misc queries) 4 December 9th 04 01:15 AM
How to add a button to restore all altered cells original values? Dawnybros Excel Discussion (Misc queries) 2 December 2nd 04 04:35 PM


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

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"