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?

[TABLE="width: 295"]
<tbody>[TR]
[TD]Warehouse[/TD]
[TD]New Or Old?[/TD]
[TD]Tote Serial Number[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]N[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]O[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]N[/TD]
[TD]1001[/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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