Returning next available number in a sequence

Jdsonne31

New Member
Joined
Dec 13, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am looking on how I can return the next available 3 digit sequence based on whether it is labeled as available or unavailable. In the image below, I want the ID in yellow to return 003
 

Attachments

  • mrexceltest.PNG
    mrexceltest.PNG
    14.1 KB · Views: 10

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I've made it filter so that the region and DC match what is on the top - I don't know if you needed that, if your list had a bunch of more stuff in it.

MrExcelPlayground23.xlsx
ABCDEFGHI
1Region050
2DC00150001
3ID003
4
5
6
7RegionDCThingAvailableID#
805000150001unavailable001
905000150001unavailable002
1005000150001available003
1105000150001unavailable004
1205000150001available005
1305000150001unavailable006
1405000150001available007
1505000150001available008
1605000150001available009
Sheet25
Cell Formulas
RangeFormula
B3B3=TAKE(FILTER(I8:I16,(E8:E16=B1)*(F8:F16=B2)*(H8:H16="available")),1)
 
Upvote 0
XLOOKUP returns the first result.
Excel Formula:
=XLOOKUP(1,(E8:E16=B1)*(F8:F16=B2)*(H8:H16="available"),I8:I16)
 
Upvote 0
Solution

Forum statistics

Threads
1,226,113
Messages
6,189,048
Members
453,522
Latest member
Seeker2025

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