Return minimum result from multi options not first
Hello,
I have 2 sheets collecting data, both sheets use a unique PRF reference number (which I use for match purposes), I need the look up to return the earliest date from the Book 1 Range 1 data, where the PRF numbers match more than once on the sheet. Currently it will only return the first option it finds, as you can see I added the MIN argument but not something I have used before, so unlikely in the correct argument point in the formula
=MIN(INDEX({Book1 Range 1}, MATCH([PRF Auto Number]@row, {Book1 Range 2}, 0)))
I have an excel formula that works for the above, if there a way of making if work in SS
=MIN(IF(Sheet2!B2:B4 = Sheet1!B2, Sheet2!C2:C4))
Thanks
Kate
Best Answer
-
Hi @Kate Hayes
You've done a great job! The only issue here is the order of the functions. You want to wrap the MIN function around the Range inside of your INDEX function... try this, swapped around:
=INDEX(MIN({Book1 Range 1}), MATCH([PRF Auto Number]@row, {Book1 Range 2}, 0))
This will look through all the rows that match the PRF Auto Number and return the Minimum date from Range 1. Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @Kate Hayes
You've done a great job! The only issue here is the order of the functions. You want to wrap the MIN function around the Range inside of your INDEX function... try this, swapped around:
=INDEX(MIN({Book1 Range 1}), MATCH([PRF Auto Number]@row, {Book1 Range 2}, 0))
This will look through all the rows that match the PRF Auto Number and return the Minimum date from Range 1. Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 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!