Finding the next available supplier based on date last accepted and if available

zefrogi

New Member
Joined
Feb 25, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I have a list of suppliers that goes on a rolling basis. I'd like to be able to know which suppliers are next in line based on when they last accepted as it should go the longest waiting and if they are available.

SupplierStatusDate of Last Accepted
Test 1Available31/8/22
Test 2Suspended31/8/22
Test 3Available2/9/22
Test 4Available29/8/22

So I have 6 suppliers and I'd like to know who is next in line, but also the next supplier in line after that.

I have the code:
Excel Formula:
INDEX(SuppTable[Supplier],MATCH(SMALL(IF(SuppTable[Status]="Available",SuppTable[Date of last contract Accepted]),1),SuppTable[Date of last contract Accepted],0))

But I'm noticing an issues; if the suppliers have the same date as accepted it will only return first supplier of that date and it will include suspended suppliers.

Ideally, I'd like to have cells under the table that would read "First: Test 4, Second: Test 1, Third: Test 3". I feel like I'm missing someone major but can't quite put my finger on. I've recently moved to Office365 so getting used to that as well
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
@zefrogi As you have 365, how about using FILTER and SORT functions similar to below?

RandomXl.xlsx
ABC
1SupplierStatusDate of Last Accepted
2Test 1Available8/31/22
3Test 2Suspended8/31/22
4Test 3Available9/2/22
5Test 4Available8/29/22
6Test 5Suspended8/29/22
7Test 6Available8/27/22
8
9
10First:Test 6
11Second:Test 4
12ThirdTest 1
13
Sheet11
Cell Formulas
RangeFormula
B10:B12B10=INDEX(SORT(FILTER($A$2:$C$7,$B$2:$B$7="Available"),3,1),ROWS(B$10:B10),1)


Hope that helps.
 
Upvote 0
Solution
@zefrogi As you have 365, how about using FILTER and SORT functions similar to below?

RandomXl.xlsx
ABC
1SupplierStatusDate of Last Accepted
2Test 1Available8/31/22
3Test 2Suspended8/31/22
4Test 3Available9/2/22
5Test 4Available8/29/22
6Test 5Suspended8/29/22
7Test 6Available8/27/22
8
9
10First:Test 6
11Second:Test 4
12ThirdTest 1
13
Sheet11
Cell Formulas
RangeFormula
B10:B12B10=INDEX(SORT(FILTER($A$2:$C$7,$B$2:$B$7="Available"),3,1),ROWS(B$10:B10),1)


Hope that helps.
Superb work Snakehips! Thanks for your solution. Appreciate you.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,842
Members
449,471
Latest member
lachbee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top