Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 6
Default Sumif between 2 numbers

I am trying to create a sumif which will add numbers which are between two ranges. Here is the data:

On Time 160
1 day late 4
2 days late 3
3 days late 2
4 days late 3
6 days late 5
7 days late 2
8 days late 1
10 days late 2
11 days late 1
12 days late 4
13 days late 2
14 days late 6
15 days late 1
16 days late 2
17 days late 1
20 days late 2
21 days late 3
22 days late 1
26 days late 1
28 days late 1
29 days late 2
30 days late 1
31 days late 1
34 days late 1
45 days late 1
65 days late 1


I would like to break the infor down into weeks, so in week one I would have 19 late.

Any thoughts?
  #2   Report Post  
Member
 
Posts: 31
Default

Quote:
Originally Posted by Randy Mis View Post
I am trying to create a sumif which will add numbers which are between two ranges.
This is easily achieved using the SUMIFS function, which allows you to enter multiple criteria. The following shows the results I received using this in a formula, however I pared back your data to the raw info needed for the calculation:
Code:
 A      B       C      D
Day   Late    Week   Total
 1      4       1     19
 2      3       2     16
 3      2       3      9
 4      3       4      3
 6      5       5      5
 7      2       6      0
 8      1       7      1
10      2       8      0
11      1       9      0
12      4       10     1
13      2
14      6
15      1
16      2
17      1
20      2
21      3
22      1
26      1
28      1
29      2
30      1
31      1
34      1
45      1
65      1
The formula in cell D2 to return the value of 19 is:
Code:
=SUMIFS($B$2:$B$28,$A$2:$A$28,"=" & C2*7-6,$A$2:$A$28,"<=" & C2*7)
...copy this formula down for each week and it will sum the late column based on the week.
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
dividng numbers using the sumif function tiare1021 Excel Worksheet Functions 6 February 6th 09 09:55 PM
Sumif only numbers formated as currency Bonita Excel Worksheet Functions 3 June 8th 07 08:00 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
Sumif for lowerst value within limited to 2 numbers only ken Excel Worksheet Functions 2 November 11th 04 12:57 PM


All times are GMT +1. The time now is 09:21 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"