+ Reply to Thread
Results 1 to 20 of 20

Pulling data from one sheet to another that meets certain criteria.

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Pulling data from one sheet to another that meets certain criteria.

    Hello,

    I work at a youth center and we are offering several camps this summer to our kids. I'm trying to create a database that tracks all of the kids, their payments and who is signed up for what camps.

    Currently I have it divided into two pages. The first tracks the kids, what camps they have signed up for and how much they have paid for each camp. The second pulls the data from the first page and tracks how much each kid has paid total, how much they owe total, and then the difference.

    I'd like to be able to create a page for each camp that lists the kids in order who have signed up for the camp, but not the ones who haven't. So far I've been somewhat unsuccessful in using if statements to do it, but I've come close. Any help would be greatly appreciated.

  2. #2
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    I've attached the spreadsheet to give a better idea of what I'm talking about. I have some if statements I've tried to use on the third sheet, but they definitely have some issues.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-22-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003,2007, 2010
    Posts
    85

    Re: Pulling data from one sheet to another that meets certain criteria.

    Can you provide a sample worksheet?

  4. #4
    Registered User
    Join Date
    09-22-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003,2007, 2010
    Posts
    85

    Re: Pulling data from one sheet to another that meets certain criteria.

    Just saw the second posting - will take a look at it. Seems straightforward.

  5. #5
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Sweet, thanks pmalen.

  6. #6
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    I've tried several codes, but they are all ridiculously long and always seem to have small issues. I feel like there has to be an easy way to do this.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    Try the attached. I adjusted some of your fomulae, and added a filter to the "Extreme Week 1" sheet. use the filter to filter out all blank entries.

    let me know if this is what you were after?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Thanks FDibbins, that should work! Is there any way to make it display the numbers on the side in chronological order, or will it just pull them from the first page? It's not a huge issue it can't.

    And thanks for cleaning up the code, that looks much better.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    hi i made some changes to (i hope), give you what you want (i moved a helper column way over to Column AZ so you wont even know its there - you could even hide it if you want). let me know if that works for you. shout if you need anything else
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    That added numbering to the side, thank you! It's doing something weird where it skips every other person if I have them all signed up though. I'm trying to understand VLookup and iferror a bit more so I can fix it myself (or at least understand in the future) but I'm not having much luck.

  11. #11
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Alright, I think I'm understanding what you did exactly, the only thing that I'm not really sure of is the row function. I think that's where the issue might be, and I tried messing around with it but it didn't help at all.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    ok sorry, i forgot to absolute the small() range

    =IFERROR(SMALL($AZ$2:$AZ$37,ROW()-1),"")

    the row() just sets which sequence number to pull. so in row 3, row()-1 rulls the 2nd (3-1) smallest number, row 4 pulls the 4th smallest etc. doing it that way eliminates having to manually adjust each formula to ,1....,2....,3 etc

    I should also have added that if your table is not at the top of the sheet, as it is in your example, then you need to adjust the -1 accordingly. in your example, your data starts in row 2, hence row()-1. if it starts in row 4, it needs to change to row()-3 etc.

    hope that explained it?

  13. #13
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Post Re: Pulling data from one sheet to another that meets certain criteria.

    That explained it indeed! That update is now pulling all names that it should, but it stopped numbering them in chronological order. I'm thinking I may just leave it, it's proving to be quite complicated

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    I just added some dummy data, and extended your range to 50, it seems to working fine? I have no problem working with you to make sure we get this to do what you need, so let me know if it is still gioving the same problem you said it was
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Sorry, I wasn't explaining what I was trying to do very clearly. It's numbering them in chronological order, but I'm trying to make them number "1,2,3,4,5,etc." down column A regardless of who is listed in column B. That's what I've been struggling to do :S

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    ok no problem....

    I added a helper column on Extreme Week 1 after column A, and added this formula in B2, and copied down...

    =IF(C2="","",1+B1)

    once you have done this, you can hide column A if you want.

    However, bear in mind, that if you re-number your attendees, you will lose your "link" with them back to the Entry Sheet page. Number 1 on Extreme Week 1 sheet will no longer be number 1 on your Entry Sheet

  17. #17
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    So I change the code for everything in column b on Extreme Week 1 to the code you posted and it will work?

  18. #18
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Never mind. I just pulled everything that was in column A down to column AY, and then put numbers 1-36 in column A. It seems to be working exactly as I was hoping for. Thanks for all of the help FDibbins! I'll post back if anything else crops up.

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Pulling data from one sheet to another that meets certain criteria.

    happy to help. If this is what you needed, please mark this thread as closed, and dont forget to add to my reputation (by clicking on the star on the lower left) if i have helped you

  20. #20
    Registered User
    Join Date
    04-19-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pulling data from one sheet to another that meets certain criteria.

    Done and done. Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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