# Sumif statement in excel

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?
Asked:
###### Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
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.
Commented:
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
Commented:
It appears you just want:
=SUMIF(L:L,">="&\$A\$1,M:M)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Finance AnalystCommented:
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
Finance AnalystCommented:
@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
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.