How to reference cell based on MAX date and another condition?

Hello!
I am trying to reference another sheet that has multiple data for the same building:
On another sheet I am trying to pass over the information from Column4 if Column3 equals "Cobb Stadium" and by picked the MAX Created Date & Time.
So it would pass "Yes" Since the last row has the Max date and time from today.
Anyone have any ideas?
Thank you!
Best Answer
-
You would need to add another column onto the source sheet that will flag the row that contains the MAX date for whatever is in [Column3].
=IF(Created@row = MAX(COLLECT(Created:Created, [Column3]:[Column3], [Column3]@row)), 1)
Then in the target sheet your formula would look something like this...
=INDEX(COLLECT({Other Sheet Column 4}, {Other Sheet Column 3}, "Cobb Stadium", {Other Sheet Flag Column}, 1), 1)
Answers
-
You would need to add another column onto the source sheet that will flag the row that contains the MAX date for whatever is in [Column3].
=IF(Created@row = MAX(COLLECT(Created:Created, [Column3]:[Column3], [Column3]@row)), 1)
Then in the target sheet your formula would look something like this...
=INDEX(COLLECT({Other Sheet Column 4}, {Other Sheet Column 3}, "Cobb Stadium", {Other Sheet Flag Column}, 1), 1)
-
Hey Paul,
Thank you so much with the first part I was able to do what I needed. Thank you so much!!
-Lizzy
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 513 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!