On Oct 29, 4:27*am, "Andrew" <theajarn...@gmail.com> wrote:
> I have this formula that gives me a date 10 month in the future based on the
> date in M3:
> =IF(E3="","",IF(M3="",DATE(YEAR(E3),MONTH(E3)+10,DAY(E3)),DATE(YEAR(M3),MONTH(M3)+10,DAY(M3))))
>
> ... however I want to add 2 other columns/cells so that instead of only
> having one date to refer to, I would have dates in M3, N3 and O3. M3, if it
> has an entry, will always have the oldest date. I want to only use the most
> recent date from the range.
>
> For instance M3 may have 23/08/2009, N3 may have 1/9/2009 and O3 may have
> 6/10/2010. I only want the formula to take the most recent date being in O3.
I would suggest that you put the following into P3:
=IF(COUNT(M3:O3),MAX(M3:O3),"")
and use P3 instead M3 in your formula. Alternatively:
=IF(E3="", "", IF(MAX(M3:O3)=0, DATE(YEAR(E3), MONTH(E3)+10, DAY(E3)),
DATE(YEAR(MAX(M3:O3)), MONTH(MAX(M3:O3))+10, DAY(MAX(M3:O3)))))
PS: For broader participation, you might want to post future
inquiries using the MS Answers Forums at
http://social.answers.microsoft.com/...ry/officeexcel.
It's not that I like that forum. It's just that MS has ceased to
support the Usenet newsgroups. Hence, participation here is limited
to the sites that share a common newsgroup mirror, which is no longer
centralized at MS.