Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Random ticket number for raffle

If I had 1000 people who have paid their money to enter a raffle, I would
like to be able to assign a ticket number to each person without having to
write each person's name on each ticket (and ticket stub). I have read
through all Q+As without any luck. Examples of tickets are as follows: Blue
A1, Yellow C32, Red E86 etc. Each ticket book has a maximum of 100 tickets
(eg Blue A1 - Blue A100).

I was intending on using sheet 2 as the entry sheet in which to enter ticket
information ticket colours in column A, ticket letters in Column B, ticket
numbers in Column C and then concatenate them in Column D. On sheet 1, I was
going to enter all peoples names into Column A and have a formula in Column B
that references Column D on sheet 2 and selects a ticket number at random.

What formula should I use to return a randomly selected ticket number?
Thanks in advance.
--
Regards
Matt
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Random ticket number for raffle


Well, I suggest you to use vlookup because it is a convenient way to
make a reference between sheets…even workbooks
1.select a cell in column (say B1) in sheet1 and enter following
formula
=VLOOKUP(A1,Sheet2!A1:D3,4,FALSE)



Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com




--
Chris Bode
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Random ticket number for raffle

Thanks Chris but I don't think VLOOKUP helps. I was thinking something like:
=INDEX(Sheet 2!A$2:D$6,RANDBETWEEN(1,COUNTA(A$2:D$6)))
This formula returns a random value but the values are repeated.
Assuming Row 1 contains headings (on both Sheet1 and Sheet2):
Sheet2!D2 to Sheet2!D6 contain concatenated values that look like this:
Red A1
Red A2
Red A3
Red A4
Red A5
Sheet1!A2 to Sheet1!A6 contain names as follows:
John
Jane
Frank
Mary
George
What I am looking for is a formula to put into cells Sheet1!B2 to Sheet1!B6.
Formula needs to randomly select a ticket number from cells Sheet2!D2 to
Sheet2!D6. Value needs to be unique and cannot be repeated (error message
needs to be displayed maybe if not enough tickets?)

--
Regards
Matt


"Chris Bode" wrote:


Well, I suggest you to use vlookup because it is a convenient way to
make a reference between sheets€¦even workbooks
1.select a cell in column (say B1) in sheet1 and enter following
formula
=VLOOKUP(A1,Sheet2!A1:D3,4,FALSE)



Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com




--
Chris Bode

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
Need to find all instances of a ticket number in a spreadsheet DebraR Excel Worksheet Functions 3 January 3rd 09 05:40 AM
Numbering as for a raffle ticket Mom needs help! Excel Discussion (Misc queries) 3 October 27th 06 12:29 AM
ticket counting Bob Excel Worksheet Functions 4 August 26th 06 05:14 PM
How can I match a random number with closest number from sequence? Matt Excel Worksheet Functions 4 August 3rd 06 01:22 AM
How do I find random number in list of random alpha? (Position is. jlahealth-partners Excel Discussion (Misc queries) 0 February 8th 05 05:31 PM


All times are GMT +1. The time now is 11:39 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"