+ Reply to Thread
Results 1 to 4 of 4

custome Lottery with raffles

  1. #1
    Registered User
    Join Date
    01-13-2017
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    52

    custome Lottery with raffles

    hello there I am trying to create a spread sheet that has in Sheet 1 Column A and Column B with the corresponding titles "Participants" and "Raffles" . The Column A and Column B does not have a fixed amount of participants or raffles , which means in one day there can be 5 participants but in the next day there can be 500 participants . Same happens with Column B.

    Now at the cell F1, I have the total number of raffles (the sum of the total ruffles from Column B.

    What I want to do is a code that when I have in Column A , for example 3 names FireDragon, Ulothar, Ioana, and the corresponding Values in Column B are : 100, 50, 5 to get the results in Sheet 1

    FireDragon 1
    FireDragon 2
    FireDragon 3
    ...................
    FireDragon 100
    Ulothar 101
    Ulothar 102
    Ulothar 103
    ......................
    Ulothar 150
    Ioana 151
    Ioana 152
    Ioana 153
    ......................
    Ioana 155


    I do include a sample file as well to show you what I want
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: custome Lottery with raffles


    Hi !

    with a row header in Sheet2, could be easily achieved without a code just with an advanced filter & formulas.
    Of course if really a code is needed just activating the Macro Recorder as a starter …

    The other way like Sheet2 is actually : via a Dictionary object …

  3. #3
    Registered User
    Join Date
    01-13-2017
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    52

    Re: custome Lottery with raffles

    Hello Marc L

    Yes I do need to make a code for it, what you mean to activate the Macro Recorder , I mean I need the macro for it I am confused hehe

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,635

    Re: custome Lottery with raffles

    Assuming that you want to get the results in sheet 2, not sheet 1, then perhaps the following will help.
    1) Populate column C in sheet 1 by placing zero in C1 then use the following for C2 and down: =SUM(B$2:B2)
    2) Populate the numbers in sheet 2 by placing a one in the first row then using the following for the second row and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3) Populate the names in sheet 2 using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Custome Date Fill
    By Jietoh in forum Excel General
    Replies: 1
    Last Post: 02-22-2016, 11:30 AM
  2. Help with custome sorting
    By cdantonelli in forum Excel General
    Replies: 15
    Last Post: 10-20-2015, 01:45 PM
  3. [SOLVED] Custome Number Fromatting HELP!
    By MG3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2015, 02:44 PM
  4. [SOLVED] Custome formula
    By Sparkplug90 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2013, 03:58 AM
  5. Custome Sort By Value on 2 Pages
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2009, 12:34 PM
  6. Custome AutoFilter
    By nicolachen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2007, 01:53 AM
  7. [SOLVED] Custome Colors?
    By Mark in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-21-2005, 11:06 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