VLOOKUP to calculate dates - holidays = due date
My Eval Pull date is based upon the TCP Type the user selects and also needs to calculate in the holidays.
Currently, Eval Start Date has a reference to another cell =[Date Completed]32
Once the Date Completed/Eval Start Date has a date, based upon the users pre-selected TCP Type of 115 days (VLOOKUP to TCPTypeDropDown and TCPTypeValue), an Eval pull date should be calculated off of that minus the holidays listed.
My current formula with the VLOOKUP in my Eval Pull Date is
The formula that I used when dealing with holidays, NOT using VLOOKUP, is
Can I merge the two and if so, how?
Thank you :)
Best Answer
-
Yes! Your current VLOOKUP formula can replace the Number Of Days portion of the WORKDAY formula.
WORKDAY( date, num_days, holidays )
So in your instance:
=IFERROR(WORKDAY([Eval Start Date]@row, VLOOKUP([TCP Type]@row, $TCPTypeDropDown$1:$TCPTypeValue$3, 2), Holidays:Holidays), "")
Note that I used @row instead of the row number after the column reference so it will run a little quicker (just looking in its own row for the values). I also added in $ signs to lock the VLOOKUP table reference to those specific cells, so you can drag-fill the formula down your column without it updating the row numbers.
Let me know if this works for you!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Answers
-
Yes! Your current VLOOKUP formula can replace the Number Of Days portion of the WORKDAY formula.
WORKDAY( date, num_days, holidays )
So in your instance:
=IFERROR(WORKDAY([Eval Start Date]@row, VLOOKUP([TCP Type]@row, $TCPTypeDropDown$1:$TCPTypeValue$3, 2), Holidays:Holidays), "")
Note that I used @row instead of the row number after the column reference so it will run a little quicker (just looking in its own row for the values). I also added in $ signs to lock the VLOOKUP table reference to those specific cells, so you can drag-fill the formula down your column without it updating the row numbers.
Let me know if this works for you!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
-
Thank you! worked perfect! and thank you for explaining it :)
-
No problem at all! 🙂
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!