Select next number in a range for a specific selection

Toastis

Board Regular
Joined
Apr 20, 2011
Messages
65
I am creating a spreadsheet
Column A - the managers will select their location from a drop down menu. (which I know how to set up),
Column B it would have an indicator if New(N) or Old(O).
Column C is a Serial # column in which there would be a formula that would automatically select the next not already used serial number in their range for that warehouse. If they selected O it would remain blank and they would need to complete that cell with the tote number. If New - it would assign a tote number based on a selected range of numbers. This is a brand new process so all numbers are new and never used before.

What is the best way to accomplish it considering we have warehouse people who are not excel saavy entering this data?

WarehouseNew Or Old?Tote Serial Number
1N1000
1O
1N1001

<tbody>
</tbody><colgroup><col><col><col></colgroup>
 

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
As far as how I've understood it,
There is a way to count up in such conditions but not when you only want to work with the cells based on their recent selections.
You would have to use VBA in order to recognize that selection has been made.

In case I have misinterpreted it, this is the way to "assign a number for N case":
Put this in B2 assuming that there is a new serial number in row 1:
Code:
=IF(B2 = "N", COUNTIF($B$1:B2, "=N") - 1 + $C$1,  "")
 
Upvote 0
As far as how I've understood it,
There is a way to count up in such conditions but not when you only want to work with the cells based on their recent selections.
You would have to use VBA in order to recognize that selection has been made.

In case I have misinterpreted it, this is the way to "assign a number for N case":
Put this in B2 assuming that there is a new serial number in row 1:
Code:
=IF(B2 = "N", COUNTIF($B$1:B2, "=N") - 1 + $C$1,  "")

Thank you for the response - if VBA code could be used I would be open to that. I know just basics and not sure if I could create the VBA code on my own.
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,831
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