How to pull latest date from a second sheet for a specific item
I'm trying to pull the latest date a certain site has been visited include that in summary sheet from second containing visits data. In secon sheet, specific can have multiple lines corresponding different vists. Any help with formulas do this would be greatly appreciated. Consider it your COVID-19 effort :).
Sheet one columns: Site name; Date of latest visit; etc.
A site has only one row in sheet 1
Sheet 2 columns: Site name; Date of visit; etc.
A site can have multiple rows in sheet 2
Answers
-
Are you trying to pull from sheet 1 or from sheet 2?
-
I'm trying to pull from sheet 2 the latest date for a specific site, so the latest "Date of visit" from sheet 2 will be pulled in the column "Date of latest visit" in sheet 1
-
Ok. So the Formula on sheet 2 would look something like this:
=MAX(COLLECT({Other Sheet Date Column}, {Other Sheet Site Name Column}, "Site Name"))
-
This only pulls in the latest date from sheet 2.
I'm trying to pull into the 'Date last visit' on sheet 1 the latest date Hospital 1 was visited from sheet 2
This is sheet 1
Sheet 2
Thanks
-
As long as the site names match, it will pull the latest date for that specific site name. You can replace "Site Name" with either specific text for the site name you are wanting to pull, or since you have a column with that data already in it, you can use a cell reference of [Site Name]@row.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!