Mirroring the most recent date to another cell

Greetings
I am attempting to complete a project where routine maintenance tasks are assigned in rotation between 3 shifts. Tasks are cycled Bi-Weekly, Monthly, Bi-Monthly and Bi-Yearly. I have a formula that is suppose grab the last date in a date column. The date that is being referenced in "BY1 Date" is applied by a workflow that "Records a Date" when the task is submitted via the attached form. The formula I'm using works in other scenarios (example of it working can be seen highlighted in yellow in "Date" column) but fails in this case as #INVALID DATA TYPE. "BY1 Data" and "BY Date" columns are indeed set to Date. Formula is:
=WORKDAY(INDEX([BY1 Date]:[BY1 Date], COUNTIFS([BY1 Date]:[BY1 Date], NOT(ISBLANK(@cell)))), -1)
I'm thinking it's because of the blank cells, but I'm having troubles figuring out the correct formula.
Any help provided would be greatly appreciated.
Answers
-
Welp, I may have been wildly overthinking this. I think I found my answer to be as simple as =MAX
-
Hey @EricR
I'm glad you found a solution! 🙂
You can use a combination of MAX(COLLECT if you need to filter down what type of Max date is needed. Here's an article with an example:
Formula combinations for cross sheet references
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!