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
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!