Next Available Number in Range

Marhier

Board Regular
Joined
Feb 21, 2017
Messages
128
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Good morning, I hope you're all well today.
I'm trying to find a formula that will give me the next available sequential number in a range of cells.

Use case:
I have an order register with a list of sequential schedule numbers (Column A).
Once an order has been placed, I put the order number in the respective cell in Column O.
I might order schedule 024, before I order schedule 016, so the order numbers aren't typically listed in sequential order.

What I'm After:
In cell V5, I want to put a formula that looks that looks at range O9:O1008 (or PurchaseOrderTable[Order Ref 2] - table reference) and tells me what the next number in the sequence is.

Potential Issue:
Sometimes, an N/A gets put in one of these cells if a schedule has been cancelled, or placed on a credit card, so worried the moment a text value gets entered, it'll throw that formula out.

Any help would be greatly appreciated.
Thank you.
Regards
Marhier.
 
I've been quite meticulous with the formatting of each cell, due to lots of people interrogating the data, using the autofilter fucntion, plus having a lot of buttons that do various things with the data.
All of the alignments have been done on purpose - the only data set hard right is currency.

Not meticulous enough though, so it seems!

Thanks again mate.
You've really helped.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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