Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Please! Random generator issue.

I'd love some help with this tricky question please.

When I reference a random generation formula in sheet 1 to insert value in
sheet 6, i need each instance in sheet 6 to show a different outcome from the
random generation.

The formula in sheet 6 uses a VLOOKUP because the formula is each item in
sheet 1. Hence, I can't simply copy the formula from sheet 1, because to
handle the different iterations would mean maybe 30 formulas combined into
one.

If it helps, here's what I'm doing:

Sheet 1 is a list of 240 Product Types and the rules for creating product
codes.
Sheet 1 Column A contains 2 letter Product Type Codes
Sheet 1 Column G contains random Generated code based on different formulas
for different product types. (240 product types and with many using the same
formula, means about 30 different formulas down through column G.

EG: Product Type ES has a prefix MQ, 3 letters and 2 numbers (eg MQABC12).
Column G generates a random code specific to these parameters, resulting in,
say MQNNM74. Whereas Product Type BT has a prefix WGL, 4 numbers and a letter
(eg WGL1234A). Hence a different formula is used to generate a random product
number.

That sheet works beautifully.

Sheet 6 contains a list of the inventory, about 50,000 items.
Column K contains a list or the manufacturers product categories, given in 4
to 7 letters. Using "LEFT(K12,2)" I can extract the first 2 letters which I
use in the VLOOKUP to sheet 1 (Like "ES" in the 1st example above). The
VLOOKUP finds ES (the Type code) on sheet 1 and then grabs the randomly
generated product code from column G in sheet 1.

But when I do this for like products, the code remains the same for all
products. I need the formula in sheet 1 column G to either recalculate each
time a cell uses it, or to effectively transpose to sheet 6 so that each
instance of the same product type generates a different product code.

Hope i haven't been too wordy ;)
And thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Help Please! Random generator issue.

Look he

http://www.mcgimpsey.com/excel/udfs/randint.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"narrator" wrote in message
...
I'd love some help with this tricky question please.

When I reference a random generation formula in sheet 1 to insert value in
sheet 6, i need each instance in sheet 6 to show a different outcome from
the
random generation.

The formula in sheet 6 uses a VLOOKUP because the formula is each item in
sheet 1. Hence, I can't simply copy the formula from sheet 1, because to
handle the different iterations would mean maybe 30 formulas combined into
one.

If it helps, here's what I'm doing:

Sheet 1 is a list of 240 Product Types and the rules for creating product
codes.
Sheet 1 Column A contains 2 letter Product Type Codes
Sheet 1 Column G contains random Generated code based on different
formulas
for different product types. (240 product types and with many using the
same
formula, means about 30 different formulas down through column G.

EG: Product Type ES has a prefix MQ, 3 letters and 2 numbers (eg MQABC12).
Column G generates a random code specific to these parameters, resulting
in,
say MQNNM74. Whereas Product Type BT has a prefix WGL, 4 numbers and a
letter
(eg WGL1234A). Hence a different formula is used to generate a random
product
number.

That sheet works beautifully.

Sheet 6 contains a list of the inventory, about 50,000 items.
Column K contains a list or the manufacturers product categories, given in
4
to 7 letters. Using "LEFT(K12,2)" I can extract the first 2 letters which
I
use in the VLOOKUP to sheet 1 (Like "ES" in the 1st example above). The
VLOOKUP finds ES (the Type code) on sheet 1 and then grabs the randomly
generated product code from column G in sheet 1.

But when I do this for like products, the code remains the same for all
products. I need the formula in sheet 1 column G to either recalculate
each
time a cell uses it, or to effectively transpose to sheet 6 so that each
instance of the same product type generates a different product code.

Hope i haven't been too wordy ;)
And thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Please! Random generator issue.

Thanks Niek, Not what I'm after, but a nice little function to know about. :)

"Niek Otten" wrote:

Look he

http://www.mcgimpsey.com/excel/udfs/randint.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"narrator" wrote in message
...
I'd love some help with this tricky question please.

When I reference a random generation formula in sheet 1 to insert value in
sheet 6, i need each instance in sheet 6 to show a different outcome from
the
random generation.

The formula in sheet 6 uses a VLOOKUP because the formula is each item in
sheet 1. Hence, I can't simply copy the formula from sheet 1, because to
handle the different iterations would mean maybe 30 formulas combined into
one.

If it helps, here's what I'm doing:

Sheet 1 is a list of 240 Product Types and the rules for creating product
codes.
Sheet 1 Column A contains 2 letter Product Type Codes
Sheet 1 Column G contains random Generated code based on different
formulas
for different product types. (240 product types and with many using the
same
formula, means about 30 different formulas down through column G.

EG: Product Type ES has a prefix MQ, 3 letters and 2 numbers (eg MQABC12).
Column G generates a random code specific to these parameters, resulting
in,
say MQNNM74. Whereas Product Type BT has a prefix WGL, 4 numbers and a
letter
(eg WGL1234A). Hence a different formula is used to generate a random
product
number.

That sheet works beautifully.

Sheet 6 contains a list of the inventory, about 50,000 items.
Column K contains a list or the manufacturers product categories, given in
4
to 7 letters. Using "LEFT(K12,2)" I can extract the first 2 letters which
I
use in the VLOOKUP to sheet 1 (Like "ES" in the 1st example above). The
VLOOKUP finds ES (the Type code) on sheet 1 and then grabs the randomly
generated product code from column G in sheet 1.

But when I do this for like products, the code remains the same for all
products. I need the formula in sheet 1 column G to either recalculate
each
time a cell uses it, or to effectively transpose to sheet 6 so that each
instance of the same product type generates a different product code.

Hope i haven't been too wordy ;)
And thanks in advance


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Letter Generator Lost in Microbiology Excel Discussion (Misc queries) 4 October 8th 09 07:03 PM
Random Generator Richard Champlin Excel Discussion (Misc queries) 15 October 26th 07 09:32 PM
Random Name Generator Smeeg Excel Worksheet Functions 5 March 3rd 06 03:25 PM
Random cell generator JK2 Excel Worksheet Functions 1 January 29th 06 03:18 AM
Random # Generator vamosj Excel Worksheet Functions 0 November 8th 04 07:14 PM


All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"