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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!