Forum Discussion
PrakashJha03081998Pj
Apr 19, 2021Copper Contributor
How to get a target date for billing date that fall in particular date range?
I am working to get a target for a billing date that fall in a given date range. Like for example if sale is made on 1st April than it comes in date range 1-7 so the target date become 8th but if Satu...
HansVogelaar
Apr 20, 2021MVP
Try this:
=WORKDAY(WORKDAY(DATE(YEAR(A2),MONTH(A2),IFS(DAY(A2)<=7,7,DAY(A2)<=15,15,DAY(A2)<=22,22,DAY(A2)>22,DAY(EOMONTH(A2,0))))+3,1),1)
PrakashJha03081998Pj
Apr 20, 2021Copper Contributor
It's not working giving #Name? Error.
- HansVogelaarApr 21, 2021MVP
Ah yes, the IFS function was not in Excel 2010.
- PrakashJha03081998PjApr 21, 2021Copper ContributorThank you very much for helping me.
I was getting error as I was using excel 2010 version but then I changed formula slightly and used choose function instead of ifs and than it started working. - HansVogelaarApr 20, 2021MVP