Building reference numbers for different selections from defined list

Excheltenham

New Member
Joined
Sep 18, 2015
Messages
7
Hi there,
Sorry folks not sure even where to start on this. At work I have 12 sites , and I need a work code for each variable so i can identify jobs.. I.e. If supplier goes to site 1,2,3 I need one code, or he goes to sites 6,8,4,9 i need another. I need enough options to cover all variables with a separate reference for each distinct choice

Any ideas , please :confused:
 

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.
Welcome to the board :-)
We'll need a little more info to help you, though. I think you might need to have ID Ranges established for suppliers, and another for worksites, like the following examples.

Please provide some more details, and we'll go from there.
Suppliers example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]SupID[/TD]
[TD]SupName[/TD]
[TD]SupLocation[/TD]
[/TR]
[TR]
[TD]AX01[/TD]
[TD]Acme Widgets[/TD]
[TD]Auburn Hills, MI[/TD]
[/TR]
[TR]
[TD]AV12[/TD]
[TD]Northwind Industries[/TD]
[TD]Baltimore, MD[/TD]
[/TR]
</tbody>[/TABLE]

Worksites example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]SiteID[/TD]
[TD]SiteDesc[/TD]
[/TR]
[TR]
[TD]INITECH01[/TD]
[TD]Detroit, MI location[/TD]
[/TR]
[TR]
[TD]INITECH02[/TD]
[TD]Flint, MI location[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thank you so much for your help and advice , and ok here's some more flesh on the bone.

There are 12 stores that get deliveries and each delivery may to any of the stores. to create a work order i want reference code which is constamt and unique to the stores delivered to.

let's say 12 stores include .. Fitzroy, Brunswick, Richmond, Toorak , Hawthorn etc

So if the delivery goes to only Fitzroy . it's code 00001 ,
If delivery goes to Brunswick & Hawthorn it's code 00065
If delivery goes to Toorak, Richmond & Fitzroy it's code 00147

So I need a way to create unique and fixed identifiers for all possible scenarios.

Again , thanks in advance
 
Upvote 0
Ah, making me dig through math skills I haven't used in a few years... If any delivery could go to any combination of the 12 stores, as low as 1 and up to 12... You would need 12 + 66 + 220 + 792 + ... codes. While I could do the other 12Cx calculations and line up that many codes for you, that's not the most efficient way to develop this.

WHY: Say you've got work order A, with delivery codes for 3 pallats of widgets going to Code ID2002. Say this represents going to Fitzroy, Brunswick, and Toorak. This code is tied to other data - store location(s) for each of the three, payment info for each of the three, etc. Anytime code 2,002 is called, the system needs to rifle through thousands of records to get the data to say that this delivery goes to Fitzroy, Fitzroy address, Brunswick, Brunswick address, and Toorak, Toorak address, etc..

Instead, it would be much more efficient to have delivery slots available to be filled with any number of up to the 12 stores. Then the system only has 12 records to go through at each instance - in this case, 12 * 3 = 36 records checked. Fewer = faster.

Not to mention the fact that work order A going to FITZ01, BRUN02, and TOOR04 is much more readable to workers filling and delivering this order.
 
Upvote 0
Thanks so much for that, but I would see the calculation as a great starting point. Could you please asssit with that please ? Thanks :)
 
Upvote 0
Wow Mick that is fantastic ! It solves part a, and yes Ginger take on board ramifications if this ever becomes much more than a labelling excercise. Thank you both !
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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