I need to create a formula IF with dates and 2 variables

Closed
adrianmty - 14 Jul 2017 à 20:18
Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 - 15 Jul 2017 à 08:53
Im trying to create the following formula in excel
If theres number greater than 0 in a column and if the date in the other column is before one month from today date result = SELL
Related:

1 response

Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 147
15 Jul 2017 à 08:53
adrianmty, Good morning.

Suppose:
A2 --> Cell with number
B2 --> DATE
C2 --> Result --> Formula

Try to use it:
C2 --> =IF(AND(A2>0,B2<=TODAY()-30), "SELL", "")

Is that what you want?
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão