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

Closed
-
Posts
1950
Registration date
Monday August 16, 2010
Status
Contributor
Last seen
January 9, 2022
-
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

1 reply

Posts
1950
Registration date
Monday August 16, 2010
Status
Contributor
Last seen
January 9, 2022
148
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