You need to sign in to do that
Don't have an account?

Help with a formula to display dates between two dates
Hi,
I need help with a formula that will display the dates between a start and end date. ie, if start date is June 28, 2019 and end date is July 2, 2019; then the dates in between are June 29, 2019, June 30, 2019 and July 1, 2019.
I need help with a formula that will display the dates between a start and end date. ie, if start date is June 28, 2019 and end date is July 2, 2019; then the dates in between are June 29, 2019, June 30, 2019 and July 1, 2019.
I'm almost sure that this requirement is not possible with a formula field. You need to use a trigger.
Firstly you need to create a Long Text Area(32768) field on your object to save all these dates, set the visible lines to 10 or your wish. Make this field Read-Only from the page layout.
I have created a field with the API name: Available_Dates__c.
Create a trigger on your object. I created it on Opportunity like below. Result:
Make the required changes and let me know if you need any assistance. :)
All Answers
I'm almost sure that this requirement is not possible with a formula field. You need to use a trigger.
Firstly you need to create a Long Text Area(32768) field on your object to save all these dates, set the visible lines to 10 or your wish. Make this field Read-Only from the page layout.
I have created a field with the API name: Available_Dates__c.
Create a trigger on your object. I created it on Opportunity like below. Result:
Make the required changes and let me know if you need any assistance. :)
You cannot use a loop with a formula (impossible) so the only limited solution is below with about 10 days max.
You can add some days ( compiled size about 3,000 characters here for 5,000 max. )
You can create some sub-formulae ( first 10 days, next 10 days, etc ) if you can to cover a month ( about three formulae ) that you concatenate with a final formula.
Other problem : the "and" before the last day is a complication that must be replaced by a simple comma if you uise a huge formula.
June 29, 2019, June 30, 2019 and July 1, 2019.
June 29, 2019, June 30, 2019, July 1, 2019.
You can create some sub-formulae ( first 10 days, next 10 days, etc ) if you want to cover a month ( about three formulae )
that you concatenate with a final formula.The concatenate formula would have a total compiled size far too big (exceeding the limit). That is impossible.
That is the main problem with formulae.