1

I want to have a different value in the cell depending on the date entered i.e. if the date is between 04/01/2021 and 04/25/20201 then 20%. (If 05/01/2021-05/10/2021 then 15%.)

I am tracking growth times of seedlings between late fall to early spring. I would like to enter the seeding date and days to maturity and have "15%" or whatever pop up so I can calculate adjusted days to maturity without looking it up every date every single time.

Google sheets/Excel.

1 Answer 1

2

try:

=ARRAYFORMULA(IF(A2:A="",,
 IF((A2:A >= DATEVALUE("01/04/2021"))*(A2:A <= DATEVALUE("25/04/2021")), 20%,
 IF((A2:A >= DATEVALUE("01/05/2021"))*(A2:A <= DATEVALUE("10/05/2021")), 15%, ))))

enter image description here

see also: https://webapps.stackexchange.com/q/123729/186471

1
  • I would add the DATEVALUE to a cell so it can reference easier to make it truly dynamic - good answer as always
    – Umar.H
    Commented Nov 9, 2020 at 20:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.