Pulling Data from Column in Another Sheet
I am trying to pull data from a date column in another sheet - per location, month and year. I have tried the below formula with no success:
=IF({Center Name}, $[Center Name]@row, {Final Walk-Through Date}, MONTH(@cell) = $[Month #]@row, {Final Walk-Through Date}, YEAR(@cell) = $Year@row, COLLECT({Last Inspection Date}))
Any assistance is appreciated!
Answers
-
You are going to need an INDEX/COLLECT along the lines of...
=INDEX(COLLECT({Last Inspection Date}, {Center Name}, $[Center Name]@row, {Final Walk-Through Date}, MONTH(@cell) = $[Month #]@row, {Final Walk-Through Date}, YEAR(@cell) = $Year@row), 1)
-
The Screen shots are posted, I need the date "2024-01-08" from sheet one to appear where you see "unparseable" on sheet 2 next to "Edenton Ridge Apartments" if the row for "2024-01-08" contains "Edenton Ridge Apartments", Fire Drill Procedures" and "1st".
Thank you,
-
I agree that an INDEX(COLLECT is the way to go, here!
Try something with a structure like this:
=INDEX(COLLECT({Date Column to Return}, {Location Column}, [Quarterly Procedure Review Facilities]@row, {Procedure Reviewed Column}, "Fire Drill Procedure", {Shift Receiving Review Column}, HAS(@cell, "1st")), 1)
Keep in mind two things:
- If your column type that houses "2024-01-08" is a date type of column, the column you're typing this formula into should also be a date type of column or you'll get an error. You could add + "" to the end of the formula if you want to return the date as text instead.
- If you're using this for a list of different locations, across multiple columns, then I would suggest adding one "all locations" column in your source sheet where it simply returns whatever location is being listed in that row. You can hide it in your source sheet, but then reference it in this formula so your formula only needs to look in one column for any location.
Here's more information:
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
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!