Forum Discussion
Excel formula, conditional date
Tengo 250 plantas diferentes que necesitan riego en intervalos de días diferentes según la estación y la planta.
Hay dos estaciones:
- ene, feb, abr, nov, dic
- mar, may, jun, jul, ago, sep, oct
Columna A: lista de plantas
Columna B: frecuencia de riego en la estación 1
Columna C: frecuencia de riego en la estación 2
Columna 😧 fecha del riego más reciente
Estas 4 columnas ya tienen todos los datos necesarios.
Necesito la fórmula para la columna E con la fecha del próximo riego
7 Replies
- Patrick2788Silver Contributor
Try this one:
=LET( r, SEQUENCE(ROWS(LastWatered)), c, XMATCH("*" & TEXT(LastWatered, "mmm") & "*", season, 2), INDEX(WateringFreq, r, c) + LastWatered )- PeterBartholomew1Silver Contributor
- gehcoleCopper Contributor
Patrick2788 Thanks, this example may make the problem clearer. Please note that all data are filled in by hand.
- PeterBartholomew1Silver Contributor
A formula such as
= LET( isSeason1?, ISNUMBER(XMATCH(MONTH(LastWatered), season1)), LastWatered + IF(isSeason1?, Freq1, Freq2) )would give the next date. The catch is that then you may need the second and the third dates.
- gehcoleCopper Contributor
¿Podría adjuntar un pequeño libro de muestra que demuestre el problema (sin datos confidenciales) o, si eso no es posible, ponerlo a disposición a través de OneDrive, Google Drive, Dropbox o similar?
- gehcoleCopper Contributor