the sum of cells that meet a greater than and less than criteria

j.doe214

I am trying to find the sum of a range/set of cells... if those cells meet two criteria.

I have two columns with specific dates:

start(J)       end(K)
12/4/2017   12/10/2017
12/11/2017  12/17/2017

I have a date column with numerous dates:

Date
14-Dec-17
etc

and lastly a column with a value:

 Value
 12.5

What I want to achieve is if a cell under the date column is >= the start date and is <= to the end date in the same row. I want to take the value in the value column on the same row as the date and calculate the sum of the value cell data if the date data matches the criteria.

if ("date1" >= "start1" && "date1" <= "end1") than if true take cell value for "value1" in the same row as the "date1" and sum together all the values for dates that meet the criteria and return the sum.

That's the best I can think to explain what I am trying to achieve. I would like to do this using a formula if possible.

So the first formula I came up with is this:

=IF(AND(E$15:E$218>J15,E$15:E$218<K15),SUBTOTAL(9,H$15:H$218),0)

this returns zeros for every row except one and that one looks like if summed all the value in the "value" range and returned.

I am currently trying to see if I can use a SUMIFS formula with no luck yet.

Any suggestions on how I can or if its possible to achieve this using a formula. My data is also in a table if that makes a difference. I can put data in standard spreadsheet if needed.

any help would be greatly appreciated. Thanks in advance.

Solution as provided by Scott Craner:

Date    Unit Value  Daily EV            Week Start  Week End        Weekly Total
14-Dec-17   0.57    1.71                12/4/2017   12/10/2017      0
14-Dec-17   0.65    0.65                12/11/2017  12/17/2017      2.36

in my case the daily EV is the "value" I wanted to sum if the "date" fell between "week start" and "week end"...."weekly total" being the sum of all "daily EV" values that fell between those dates

Scott Craner

SUMIFS:

=SUMIFS(H$15:H$218,E$15:E$218,">" & J15,E$15:E$218, "<" & K15)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Excel - Treat Greater Than or Less Than Symbol as part of Text Criteria

From Dev

Excel - Treat Greater Than or Less Than Symbol as part of Text Criteria

From Dev

Greater than or Less than equal to

From Dev

if greater than or less than and zero

From Dev

sum if greater than in r

From Dev

If value is greater than, less than and becomes greater than again

From Dev

If value is greater than, less than and becomes greater than again

From Dev

How do I email an update to the table results for specific columns that meet the criteria less than 0?

From Dev

Microsoft Excel how to select all cells that meet certain condition (i.e greater than a value)

From Dev

Python Less/Greater than issue

From Dev

greater than and less than equals to in sql?

From Dev

Creating a greater than but less than function in XML

From Dev

Strange Greater than or Less than Results

From Dev

Greater than, Less than string Lua (Lapis)

From Dev

Using '/' as greater than less than in Python?

From Dev

Javascript diamond? (Less than followed by greater than)

From Dev

Is there a greater than but less than function in python?

From Dev

Greater than and less than symbol in regular expressions

From Dev

AppleScript less than number or greater than number

From Dev

Regex that detects greater than ">" and less than "<" in a string

From Dev

SQL Server - Dates, Greater than and Less than

From Dev

Returning greater than and less than values in pandas

From Dev

Greater than and Less than Value SSRS 2008

From Dev

greater than and less than equals to in sql?

From Dev

Greater than and less than symbol in regular expressions

From Dev

Strange Greater than or Less than Results

From Dev

Python greater than and less than operands not working?

From Dev

Use R switch for less than or greater than?

From Dev

.NET Greater than/less than not working

Related Related

  1. 1

    Excel - Treat Greater Than or Less Than Symbol as part of Text Criteria

  2. 2

    Excel - Treat Greater Than or Less Than Symbol as part of Text Criteria

  3. 3

    Greater than or Less than equal to

  4. 4

    if greater than or less than and zero

  5. 5

    sum if greater than in r

  6. 6

    If value is greater than, less than and becomes greater than again

  7. 7

    If value is greater than, less than and becomes greater than again

  8. 8

    How do I email an update to the table results for specific columns that meet the criteria less than 0?

  9. 9

    Microsoft Excel how to select all cells that meet certain condition (i.e greater than a value)

  10. 10

    Python Less/Greater than issue

  11. 11

    greater than and less than equals to in sql?

  12. 12

    Creating a greater than but less than function in XML

  13. 13

    Strange Greater than or Less than Results

  14. 14

    Greater than, Less than string Lua (Lapis)

  15. 15

    Using '/' as greater than less than in Python?

  16. 16

    Javascript diamond? (Less than followed by greater than)

  17. 17

    Is there a greater than but less than function in python?

  18. 18

    Greater than and less than symbol in regular expressions

  19. 19

    AppleScript less than number or greater than number

  20. 20

    Regex that detects greater than ">" and less than "<" in a string

  21. 21

    SQL Server - Dates, Greater than and Less than

  22. 22

    Returning greater than and less than values in pandas

  23. 23

    Greater than and Less than Value SSRS 2008

  24. 24

    greater than and less than equals to in sql?

  25. 25

    Greater than and less than symbol in regular expressions

  26. 26

    Strange Greater than or Less than Results

  27. 27

    Python greater than and less than operands not working?

  28. 28

    Use R switch for less than or greater than?

  29. 29

    .NET Greater than/less than not working

HotTag

Archive