Returning Max Date from Another Sheet with Conditions
Hello,
I am trying to gather the max date from a row on another sheet if that row has a matching cell to one on the current sheet. Below is a screenshot of the current sheet. I am trying to fill the Last Action Date cell if the Originating WO# cell matches the one on the other sheet.
Other sheet:
I would like the formula to choose the latest date (from between Sent, Date Conf, Shipped, Received) on the other sheet if the WO numbers match.
I've tried a few combinations of Index, Match, Max, and Collect but can't seem to get the right formula.
Thank you!
Best Answers
-
You will want to use a MAX/COLLECT...
=MAX(COLLECT({Other Sheet Date Column}, {Other Sheet WO Column}, [WO Column]@row)
-
The easiest way to do that would be to add another date column on your source sheet. In that column, you would use...
=MAX([Date Conf.]@row, Shipped@row, Received@row)
This will return the latest date of the three columns. Then in the cross sheet formula provided earlier, you would reference this new date column.
Answers
-
You will want to use a MAX/COLLECT...
=MAX(COLLECT({Other Sheet Date Column}, {Other Sheet WO Column}, [WO Column]@row)
-
Paul,
Is there a way to get it to return the latest date in that row? For example, if the Shipped and Received columns are blank, I want it to return the Date Conf. date since that is the latest date:
-
The easiest way to do that would be to add another date column on your source sheet. In that column, you would use...
=MAX([Date Conf.]@row, Shipped@row, Received@row)
This will return the latest date of the three columns. Then in the cross sheet formula provided earlier, you would reference this new date column.
-
Thanks @Paul Newcome, I struggled with this for 2 hours and was about to give up. This formula works perfect for me.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!