Sharepoint Formula for days past Due Date

I need a formula to calculate the number of days past the Due Date in a SharePoint 2010 List.

I have successfully created the formula for calculating the number of days until the Due date:

=DATEDIF(TODAY(),[Due Date],"D"

But I need to be able to count the number of days that are past the Due Date.

Thank you
Who is Participating?

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

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.

NorieAnalyst Assistant Commented:
Try this.

=IF([Due Date]<TODAY(), DATEDIF([Due Date], TODAY(), "D")&" past due date", DATEDIF(TODAY(),[Due Date],"D")&" until due date")

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.

Start your 7-day free trial
Lord_DragonAuthor Commented:
You're the man! Thanks

it also works this way..

=[Due Date]-TODAY()
NorieAnalyst Assistant Commented:
For some reason I though that wouldn't work in 'SharePoint', and that was why you were using DATEDIF.:)
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 SharePoint

From novice to tech pro — start learning today.