+ Reply to Thread
Results 1 to 10 of 10

Using Randbetween to generate specific amounts of numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Brighton,England
    MS-Off Ver
    Excel 2002
    Posts
    22

    Using Randbetween to generate specific amounts of numbers

    Hi,

    Im hoping that there is a formula or Excel has an easy way to complete a very tedious task i have to complete.

    I have a very long list of names and a number next to them which indicates how many tickets they have.

    e.g.
    Bob Smith 9
    Tom Smith 6

    Now, i need to use the =RANDBETWEEN() formula to assign e.g. 9 tickets to Bob Smith, with each ticket number in an individual cell. The second issue i have is that i need my long list of names to have unique ticket numbers (not repeated)

    Hope someone can help?
    Last edited by ryanch69; 07-31-2014 at 06:34 AM. Reason: Moderator request

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to assist with tedious task

    I Think I know what you need however can you upload a sample spreadsheet with expected results

    Thanks
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Brighton,England
    MS-Off Ver
    Excel 2002
    Posts
    22

    Re: Formula to assist with tedious task

    Sample.xlsx

    File should be attached.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula to assist with tedious task

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    10-18-2012
    Location
    Brighton,England
    MS-Off Ver
    Excel 2002
    Posts
    22

    Using Randbetween on a large scale

    Hi,

    Im hoping that there is a formula or Excel has an easy way to complete a very tedious task i have to complete.

    I have a very long list of names and a number next to them which indicates how many tickets they have.

    e.g.
    Bob Smith 9
    Tom Smith 6

    Now, i need to use the =RANDBETWEEN() formula to assign e.g. 9 tickets to Bob Smith, with each ticket number in an individual cell. The second issue i have is that i need my long list of names to have unique ticket numbers (not repeated)

    I have attached an example of what I am trying to achieve.Attachment 336070

    Hope someone can help?

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Using Randbetween on a large scale

    Unfortunately this is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed by a Moderator, you may continue in your other thread after changing the thread title as requested.

    http://www.excelforum.com/excel-form...ious-task.html

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to assist with tedious task

    hmm the title has been changed but in the other post..someone needs to sort this out
    http://www.excelforum.com/excel-form...rge-scale.html
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Using Randbetween to generate specific amounts of numbers

    @ ryanch69

    Thanks for changing the Thread Title as requested. Thanks for following the forum rules.

  9. #9
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Using Randbetween to generate specific amounts of numbers

    I tried this a few different ways and they were all very slow on the processing side.

    Attached document is the quickest way I could get it but I think you may have to go down the road of VBA to make it quicker

    The tab RAND List contains numbers betweeen 1000-9999 assuming you only want 4 digits

    Distribute Rand Tickets.xlsx

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Randbetween to generate specific amounts of numbers

    quickest i could get with functions was this.. still not that fast tho(edit now i've closed 30 windows of excel it seems to work fine)
    very very unlikely to get dupes but it is just possible
    Attached Files Attached Files
    Last edited by martindwilson; 07-31-2014 at 08:50 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PLease assist with a formula
    By nightcrawler-jay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2010, 03:56 AM
  2. Formula Assist
    By admin@wyomingcallcenter.com in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 07:37 PM
  3. Expediting Tedious Work
    By mikemillsjr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2005, 06:06 PM
  4. Expediting Tedious Work (Will Pay!)
    By mikemillsjr in forum Excel General
    Replies: 1
    Last Post: 12-19-2005, 03:09 PM
  5. If formula- hoping someone can assist
    By Ntisch in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 07-26-2005, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1