Excel Formula

Experts - I am going mad and confused with the below formula.

Basically i have 6 dates in excel as columns. Each of these are some milestone dates. Date 1 cannot be blank. and if Date 2 is blank, subsequent dates also will be blank.

I need to find the sum of each dates & add it as total sum.

1. If date2 is blank, then display blank as result.
2. If date3 is blank, then display date2 - date1 as result
3. If date4 is blank, then display (date2-date1) + (date3-date2)
4. If date5 is blank, then display (date2-date1) + (date3-date2) + (date4-date3)
5. If date6 is blank, then display (date2-date1) + (date3-date2) + (date4-date3) + (date5-date4)
6. if no blank in any dates, then display (date2-date1) + (date3-date2) + (date4-date3) + (date5-date4) + (date6-date5).

Kindly help
ManjuIT - Project ManagerAsked:
Who is Participating?
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.

Roy CoxGroup Finance ManagerCommented:
How do you expect to sum dates? What result are you expecting?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
What about this?

In H7

Open in new window

and then copy it down.

Experts Exchange Solution brought to you by ConnectWise

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
ManjuIT - Project ManagerAuthor Commented:
Expected result added now.
ManjuIT - Project ManagerAuthor Commented:
@subhodh - perfect. thank you
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Manju!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.