One month notification

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

One month notification

Post by adam »

Hi anyone,

I'm using the following formula in google sheet to display text in column H if today exceeds the date in column G. The formula works fine in this manner.

However, I need to amend the formula so that it will also display text "1 month" if the expiry date is one month ahead. if the expiry date is not reached the formula will display the text "OK"

following is the formula I'm using.
=ARRAYFORMULA(IF(ROW(A1:A)=1,"EXPIRY",IF(G1:G="","",If(G:G>TODAY(),"OK","expired"))))

any help would be kindly appreciated.
Best Regards,
Adam

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: One month notification

Post by HansV »

=ARRAYFORMULA(IFS(ROW(A:A)=1,"EXPIRY",G:G="","",G:G<=TODAY(),"Expired",G:G<=EDATE(TODAY(),1),"1 Month",TRUE,"OK"))
Best wishes,
Hans

User avatar
adam
SilverLounger
Posts: 2347
Joined: 23 Feb 2010, 12:07

Re: One month notification

Post by adam »

Thankyou so much for the help Hans. Sorry for the very late reply.
Best Regards,
Adam