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
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!