Solved

Sumif statement in excel

Posted on 2014-11-15
5
108 Views
Last Modified: 2014-11-17
I would like to do a sumif statement in excel that involves dates.

Cell A1 has a date in the format 11/15/2014. Comunm L:L has dates in the format of date and time.

If the date in greater than or equal to the date in A1 I want it to add the dates in column M.

Any ideas on how to do that?
0
Comment
Question by:cansevin
5 Comments
 
LVL 21

Expert Comment

by:Ejgil Hedegaard
ID: 40444961
A date in Excel is actually a number, so 11/15/2014 is 41958.
So when adding tomorrow 11/16/2014 (41959) the result is 83917 equal to the date 10/02/2129.
Is that what you want?

Please specify.
A sample worksheet would help.
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40444995
Are you looking to Sum the values or just get a count of the number of dates that meet the criteria? If you want a count, use this:

=COUNTIF(L:L,">="&A1)

Flyster
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40446708
It appears you just want:
=SUMIF(L:L,">="&$A$1,M:M)
0
 
LVL 31

Expert Comment

by:Rob Henson
ID: 40446961
Assuming you want to extract dates from column L where it is greater than A1, in column M:

=IF(INT(L2)>=$A$1,INT(L2),"")

Copy down column M as required.

Thanks
Rob H
0
 
LVL 31

Expert Comment

by:Rob Henson
ID: 40447415
@cansevin - I assume col M does not contain dates but includes values related to the date.

If not, can I ask what you are achieving by adding up dates? As Ejgil pointed out, adding together dates just gives a larger number which represents a date further into the future.

Thanks
Rob H
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now