+ Reply to Thread
Results 1 to 9 of 9

Record Data from sheet1 to sheet2 using name as the criteria

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Question Record Data from sheet1 to sheet2 using name as the criteria

    Hi All,

    I am not really good when comes to creating macros. But I am trying really hard to learn. please help me in my dilema. . Is there are way on how to automatically record the data in MainPage (sheet1) to AMR (sheet2).

    My dilema: need to record data from column I in MainPage sheet to AMR sheet by name (I can only do a record w/ the date but i don't know how to record it based on the name )


    Please help me in this, i am on my pits already . . . And Many Thanks!

    See my attached sample template

    Attendance Template v1.xlsm


    Best regards,

    Cittie
    Last edited by city; 01-29-2012 at 06:20 AM. Reason: solved

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    What name do you want to use as a reference to transfer the data?
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    A better sample workbook would have you manually enter some of the desired results in the AMR sheet so it's clear how the data on the MAIN page lines up. Do the first few names on the main page.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    Your request is not very clear. What do you mean by record based on name?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    Sorry! I really am having a hard time explaining this. .

    I need to copy column J from MainPage to AMR. The macro created there( if you are to press (ctrl+ shift+R)) will only copy the whole column J from MainPage to AMR based on the date in C4 of MainPage.

    But if you are to check the data, there is an inaccuracy because the Agent's data in AMR does not match MainPaige does not match data
    (Example: Furio Venice in AMR will have marquez, Natalie's attendance status)

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    This should do it:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 01-28-2012 at 02:30 PM.

  7. #7
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    Thanks JBeaucaire for the prompt response. =) but the code seems to have an error . . .

    Please Login or Register  to view this content.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    Works when I run it on your uploaded sheet. Odd. This works too, try it:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-17-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Record Data from sheet1 to sheet2 using name as the criteria

    Thanks JBeaucaire! I reviewed the code and learned something new. This really works great! I can now use this in my different trackers/workbooks!

    Thank you so much!! You are the best!

    Cittie

+ 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