Date Formatting

Copper Contributor

I would like some assistance creating a date formula.

What i require is the following.

Planting Date: eg- 01-01-2019 (entered as a date that a crop was planted)

Growing Days: (if i set this as a =IF(xx="","",=TODAY()-xx) and the date was 25-03-2019 this would be easy, BUT, once todays date is past the harvest date it would continue to increase and if i was to reaccess this figure in 2020 it would be 300+ days when it should stop at 90 days.

Harvest Date: eg- 01-04-2019 (lets use this date the date crop is harvested)

 

can i please have some assistance with this as im struggling to get it right.

6 Replies
Do you have a harvest date field?
=If(HarvestDate=“”,Today(),HarvestDate)-PlantDate

Or I’d there is a maximum number of growing days (e.g 90), you could:
=PlantDate+Min(Today()-PlantDate,90)

I currently have this

 

FieldAreaCrop TypePlanting Date Growing DaysDesication DateDays DesicatedDesication typeHarvest DateTotal Growing Days   Todays Date
Two West163.13Chickpeas1-01-201911516-04-2019102litres round up1-04-201990   26-04-2019

The planting Date and HArvest date will be manually entered as this formala will be mulitplied for severald feilds and those specific date will need to be enter manually. I will try that and see what happens. i just used the 90 days as an example

I have tried that and that has worked for me thank you so much

 

@MichaelMays 

ok another question then

 

I have now got a number (43581)


@MichaelMays wrote:
Do you have a harvest date field?
=If(HarvestDate=“”,Today(),HarvestDate)-PlantDate

Or I’d there is a maximum number of growing days (e.g 90), you could:
=PlantDate+Min(Today()-PlantDate,90)


coming up for feilds that have not yet been planted. anyway to keep that figure ""

 

FieldAreaCrop TypePlanting Date Growing DaysDesication DateDays DesicatedDesication typeHarvest DateTotal Growing Days   Todays Date
Two West163.13Chickpeas1-01-201911216-04-2019102litres round up23-04-2019112   26-04-2019
Farm 4320Chickpeas4-01-201911019-04-20197 24-04-2019110   26-04-2019
   8-01-2019106   24-04-2019106   26-04-2019
    43581        26-04-2019
    43581        26-04-2019
    43581        26-04-2019

@MichaelMays 

=If(PlantDate=“”,””,If(HarvestDate=“”,Today(),HarvestDate)-PlantDate)

Thank you so much, Much appreciated michael@MichaelMays