PC Review


Reply
Thread Tools Rate Thread

Converting user-name to 'random' number

 
 
Alex \(YMG\)
Guest
Posts: n/a
 
      9th Sep 2005
Hi guys,

I wondered if you could help out a friend of mine - I'm just passing on his
message:

--------------------------

I'm trying to automate some coursework tasks for the new course and would
like to
randomise the data sets used by each student.

Ideally I'd like them to type their name into a pre-set cell, and then for
this to be converted to a long-ish number. I can then use the number to add
different deliberate errors to the data. I don't want to use RANNOR (random
number generator) as this would make marking a nightmare.

Does anyone know how to convert a cell containing a name into one
containing a number derived from the text - or something else that would
perform a similar function?

------------------------

Many thanks for any advice that you can give me so I can pass it on to him.

Best wishes

Alex


 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      9th Sep 2005
This formula uses the first and last character in the name plus
the length of the name. (the name is in cell E2)...

=CODE(E2) & CODE(RIGHT(E2,1))&CODE(LEN(E2))
"Alex" = 6512052

Jim Cone
San Francisco, USA


"Alex (YMG)"
<(E-Mail Removed)>
wrote in message
news:9KgUe.2980$(E-Mail Removed)
Hi guys,
I wondered if you could help out a friend of mine -
I'm just passing on his message:
--------------------------
I'm trying to automate some coursework tasks for the new course and would
like to
randomise the data sets used by each student.
Ideally I'd like them to type their name into a pre-set cell, and then for
this to be converted to a long-ish number. I can then use the number to add
different deliberate errors to the data. I don't want to use RANNOR (random
number generator) as this would make marking a nightmare.

Does anyone know how to convert a cell containing a name into one
containing a number derived from the text - or something else that would
perform a similar function?
Many thanks for any advice that you can give me so I can pass it on to him.
Best wishes
Alex
 
Reply With Quote
 
Alex \(YMG\)
Guest
Posts: n/a
 
      9th Sep 2005
"Jim Cone" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> This formula uses the first and last character in the name plus
> the length of the name. (the name is in cell E2)...
>
> =CODE(E2) & CODE(RIGHT(E2,1))&CODE(LEN(E2))
> "Alex" = 6512052
>
> Jim Cone
> San Francisco, USA
>
>


Many thanks Jim, I shall pass this info on to him.

Alex


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate Random Number/ Random Event M Microsoft Powerpoint 0 1st Sep 2007 10:24 PM
How can I match a random number with closest number from sequence? =?Utf-8?B?bWF0dA==?= Microsoft Excel Worksheet Functions 4 3rd Aug 2006 01:22 AM
Generating (in a random order)each number once from a given number =?Utf-8?B?TmVpbCBHb2xkd2Fzc2Vy?= Microsoft Excel Worksheet Functions 2 2nd Dec 2005 11:27 PM
Auto-number 'increment' changed to 'random' converting to access 2 =?Utf-8?B?Rmlubi5SdWRkQEVhcnRobGlua19RRURfU1BBTV9B Microsoft Access 4 15th Feb 2005 03:45 PM
AutoNumber Random Number not Random Brian Microsoft Access Database Table Design 1 27th Mar 2004 03:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 AM.