Duplicate rank what formula would return the most recent week?
I have a formula to return the date of the 5 highest ranking weeks. Two weeks are both ranking as the 5th week as they both have the same result. Currently it is returning the oldest of the two dates. Is there a way to get the most recent week instead?
Best Answer
-
Hi @B Young
I agree with Paul! You could use a MAX function, however I would put this in an MAX(COLLECT formula instead of VLOOKUP.
Try something like this:
=MAX(COLLECT([Week Column]:[Week Column], [Rank of boxes ticked]:[Rank of boxes ticked], Rank@row)
I'm not sure what your Week Column is called, so you may need to replace that with the column that has your dates. Let us know if that worked for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
You would use a MAX function.
-
Thank you for your suggestion @Paul Newcome. Could you help me further on this? I have included a screenshot of the data.
Week commencing column has formula: =VLOOKUP(Rank@row, [Rank of boxes ticked]:[TOTAL BOXES TICKED], 2, false)
Rank column is just numerical 1-5
No Ticked has formula: =VLOOKUP(Rank@row, [Rank of boxes ticked]:[TOTAL BOXES TICKED], 3, false)
How does the max function fit into these formulas? Or should the formula be recreated?
-
Hi @B Young
I agree with Paul! You could use a MAX function, however I would put this in an MAX(COLLECT formula instead of VLOOKUP.
Try something like this:
=MAX(COLLECT([Week Column]:[Week Column], [Rank of boxes ticked]:[Rank of boxes ticked], Rank@row)
I'm not sure what your Week Column is called, so you may need to replace that with the column that has your dates. Let us know if that worked for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thank you @Genevieve P. this has helped solve the problem. Appreciate your help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!