+ Reply to Thread
Results 1 to 5 of 5

Sorting variables from a file and creating table with some data

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Miami, US
    MS-Off Ver
    Excel 2007
    Posts
    83

    Sorting variables from a file and creating table with some data

    Hi,

    I am looking for a Macro:

    For each contact ID, first and second occurrence, we want to isolate the following variables:
    CHAIR_STAND
    ARM_CURL
    UP_AND_GO

    If someone has only one record they would not be included in output table. If they have more than 2 records, only the first two (with CASE_DATE sorted oldest to newest) would be included in output. The output table would look something like this

    CONTACT_ID CHAIR_STAND1 CHAIR_STAND2 ARM_CURL1 ARM_CURL2 UP_AND_GO1 UP_AND_GO2


    Thank you so much,
    Ajang
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Sorting variables from a file and creating table with some data

    See if this is what you wanted
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-13-2010
    Location
    Miami, US
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Sorting variables from a file and creating table with some data

    Yes, I want this but the code is password protected and I cannot view it in the file. Can you please make macro enable for view.

    Thank you

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Sorting variables from a file and creating table with some data

    Here's a code
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-13-2010
    Location
    Miami, US
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Sorting variables from a file and creating table with some data

    Hi Jindon,

    I am a student and work for a professor. We do not want column of both and difference. Apart from that the macro works perfectly. Thank you.

+ 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