Relating today to other dates

Closed
Carolina - 6 Apr 2016 à 09:54
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Moderator Last seen 6 September 2024 - 8 Apr 2016 à 06:51
Hello,

=IF(M38>=A197;(M38);(O38))

M38 - date for the first payment
A197 - =Today()
O38 - date for the second payment

What I wanted with this formula was for the date for the first payment to show up if that date was superior or equal to today's date, if not, then the date for the second payment would appear.

However, in excel I always get the date for the first payment. Could you help me please?

Thank you so much,

Carolina

1 response

vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Moderator Last seen 6 September 2024 262
8 Apr 2016 à 06:51
Hello Carolina,

Make the following adjustments to your formula:-

From:-

=IF(M38>=A197;(M38);(O38)) 


to

=IF(M38>=A197,M38,O38)


I'm assuming that you know that the formula needs to be placed in any cell other than M38, A197 or O38 otherwise you will receive a circular reference error with the result being 0.

I hope that this helps.

Cheerio,
vcoolio.