PDA

View Full Version : [SOLVED:] conditional month()



cpampas
07-14-2019, 11:59 PM
Hello,
Can somebody help with an expression to add a value into a cell based on the month part of a date of another cell. I have tried so far with no result :



=SE(and(MONTH(A3)>=5;MONTH(A3)<=9);600; 0)

meaning that if the month is between 5 and 9, the cell values equals 600, otherwise it will be 0
thanks a lot

Bob Phillips
07-15-2019, 04:57 AM
Should it be

=SE(E(MESE(A3)>=5;MESE(A3)<=9);600;0)

cpampas
07-15-2019, 02:14 PM
=SE(E(MES(A3)>=5;MES(A3)<=9);600;0)

it works like a charm
many thanks