Comparing dates in multiple columns and using one that matches [Solved/Closed]

Stovvy 1 Posts Friday October 7, 2016Registration date October 7, 2016 Last seen - Oct 7, 2016 at 12:28 PM - Latest reply:  Stovvy
- Oct 7, 2016 at 01:16 PM
Hello,

I have a table with multiple columns of date values and need to check whether a date in a certain column is less than that date and dependent on this then check against the next column and so on for up to 5 dates. When it finds an answer to match it will calculate a difference in days. Please see example below

See more 

2 replies

Mazzaropi 1831 Posts Monday August 16, 2010Registration dateContributorStatus May 21, 2018 Last seen - Oct 7, 2016 at 12:53 PM
+1
Helpful
Stovvy, Good afternoon.

Suppose:

A2 --> START DATE
G2 --> STOP DATE

H2 --> =(G2-MAX(A2:F2)) & " days"
Copy it down.

Is this what you want?
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão
Was this answer helpful?  
So simple! And the perfect answer.
Many thanks