+ Reply to Thread
Results 1 to 19 of 19

Pages Generated by Number of Participants

  1. #1
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Pages Generated by Number of Participants

    Firstly I hope I am posting in the appropriate Forum as I am guessing that the answer to my issue will involve some sort of formula.

    This is not so much a problem, rather a how do you do it?

    Basically I have a front page where you can input a list of participants in a course (1 to 20) and these names and associated information will populate other pages (course score, exam marks etc) and give an overview of the course as a whole.
    What I would like is to also generate an individual final page for each participant that shows their final score and grade etc (taken from the other pages). So if there were 4 participants, it would generate 4 final pages and if there were 5 participants it would generate 5 and so on.
    I am pretty sure I know how to populate these pages with the info, I am just unsure how to generate them based on the number of participants.

    Thank you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Pages Generated by Number of Participants

    I've moved your thread to the VBA section of the forum, as this will require a VBA solution.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Pages Generated by Number of Participants

    Just to confirm, when you're talking about "pages" you are meaning worksheets (tabs in your workbook)?

    Are you wanting the sheets creating with the data in or do you want them to contain cell formulas/ references to the other workbooks so that they can update automatically?
    If someone has helped you then please add to their Reputation

  4. #4
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Quote Originally Posted by pjwhitfield View Post
    Just to confirm, when you're talking about "pages" you are meaning worksheets (tabs in your workbook)?

    Are you wanting the sheets creating with the data in or do you want them to contain cell formulas/ references to the other workbooks so that they can update automatically?
    Sorry for my bad explanation, yes I want it to create extra Tabs in the workbook for each participant. The data on these extra tabs would be taken from the other pages in the workbook, and there would also be the option of filling in certain data manually on the extra tabs.

  5. #5
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Pages Generated by Number of Participants

    The basic concept of creating the tabs is simple its the data on them that causes a bit more of an issue, for example, if you want the values to lookup in the relevant row then you'll need to add in a formula in the cell to carry out a vlookup or refer to a particular cell on the other sheets.

    Code to create a new tab for each name in column A
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Thank you for the reply. The Code you have posted above, where would I input this into my workbook?
    I am learning Excel as I go and will try to edit it to fit my workbook, but I don't know where it goes initially.

    Thank again

  7. #7
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Pages Generated by Number of Participants

    Access the VBA editor (press Alt + F11)

    Insert a new module and paste it in there.

  8. #8
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Thanks again for the reply. I have had a look and tried to input the code but I can't seem to get it to work, its probably because my original explanation was more basic than the workbook is.
    I have attached the workbook and the tab Course participants is the tab with the names on it, that I would like to make the individual tabs for.

    If you could have a look and provide anymore advice I would really appreciate it.

    Thanks again
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Attachment should be here
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Pages Generated by Number of Participants

    Ive added it as a button to your workbook.

    This is the most basic form of creating the sheets but its a basic start.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Thank you for the reply and help, I really appreciate it. I had a look and this is pretty much what I need it to do.
    Is there a part of the code I can change that would make the new tabs appear at the end of the workbook.

    Also one last thing, when the pages appear they are empty sheets, how do I input formula etc into these sheets so that when they are created they automatically take data from the rest of the workbook.
    At the moment I cant edit them until they are created.

    Thanks again for the help.

  12. #12
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Pages Generated by Number of Participants

    What you'll need to do is create a template worksheet and then copy/ paste that as a new one each time.

    Ive amended the code to do that, not knowing what your sheet should look like created a basic example called Template.

    Your template should contain a cell where you can populate the Participants name in the loop (in this case C2) and then have numerous vlookups, matches etc to pull the data based on that name. (Ive created a basic example in the grade report form so you can see what I mean.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Thanks, that looks like it will do the job.
    I will try to edit how I need it, and if I come across any issues I will post back here.

    Thanks again.

  14. #14
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    I have had a play about with it but I am having a small issue (it could just be my lack of excel knowledge).
    At present the Template you so kindly made puts the participants name in cell C2. If I wanted this in a different cell what part would I need to change, I have tried changing several parts that I thought would do this but it has had no effect. I am sure this morning I managed to do it but didn't save that version as I was just testing ideas.

    Thanks again

  15. #15
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Any help with the above would be appreciated.

    I have put the formula below, I assumed changing the $C$2 would be the part to change but it doesn't seem to do anything. Being new to Excel and learning as I go the formula side of things is quite confusing.

    Thanks for all the help so far.

    =VLOOKUP($C$2,'Course Participants'!C5:D12,2,FALSE)

  16. #16
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Think I solved it. It was not in the formula but in the VB code.

  17. #17
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Another request for help. I have edited the template sheet to the basic layout I am looking for, however I need it to fill more cells with data from other sheets.
    For example the 'Merit Position' cell on the template needs to have the corresponding data from the 'Merit Position' cell on the Grade report sheet.
    If someone could show me how to make a second Vlookup request, I am guessing for any subsequent requests I could just copy and paste the code and change the cell data that the code references.

    Hopefully my explanation makes sense, if not please ask and I will try to explain a little better.

    Attached is latest version of the file.

    Thank you

  18. #18
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Having trouble attaching the file, I will try to upload shortly.

  19. #19
    Registered User
    Join Date
    11-27-2016
    Location
    London
    MS-Off Ver
    Excel For Mac v15.14
    Posts
    29

    Re: Pages Generated by Number of Participants

    Hopefully its attached now.
    Attached Files Attached Files

+ 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. Dynamic calculation of an average number of participants
    By zlubi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2016, 04:21 PM
  2. Updating Macros to accomodate hidden columns and customize auto generated pages
    By jeskea20 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-28-2016, 12:37 AM
  3. Replies: 2
    Last Post: 09-30-2013, 07:06 PM
  4. [SOLVED] Calculate unduplicated number of participants in one month
    By ajang in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-19-2012, 06:58 PM
  5. [SOLVED] Using Macro to calculate number of participants in a month
    By ajang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 05:14 AM
  6. Pages Generated by macro are slow
    By theinexplicablefuzz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2012, 01:51 PM
  7. Replies: 0
    Last Post: 07-16-2006, 08:55 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