+ Reply to Thread
Results 1 to 7 of 7

Copy data from broken list in a column to a row

  1. #1
    Registered User
    Join Date
    10-10-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Copy data from broken list in a column to a row

    Hello all

    I'm a total novice at macros and I'm currently working on creating a more efficient reporting process for my team. I work for a bank and am responsible for managing operational risk and processing on options trades.

    I have a report where trade details and each trades portfolio number is listed in rows. Each portfolio might have one or more trades and some days we might have some portfolios that might not be there other days. Basically, I need a code that can go down the column to the end of the data and copy the different portfolio numbers into a specified row where a formula under that row will count how many times that number is repeated in that column. Please refer to attached for an idea of what I'm looking for and thanks in advance for your help.

    Maurice
    Attached Files Attached Files
    Last edited by jaffermo; 10-15-2011 at 08:21 PM. Reason: Resolved

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy data from broken list in a column to a row

    Hi jaffermo

    Welcome to the Forum.

    How many portfolios could there potentially be?
    You mention
    copy the different portfolio numbers into a specified row
    In your sample file that's row 24. Is the specified row 24 or is the specified row "the 3rd row below the end of the data"?
    Will the portfolio numbers be in column G and start on row 2?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    10-10-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy data from broken list in a column to a row

    Hi jaslake - the number of portfolios we treat in our daily workflow can range from 2 or 3 to 30..it's never the same number of portfolios daily.

    The specified row will always be the 3rd line after the last line of data. And yes, the portfolio numbers will always start in G2.

    Thanks for looking into this!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy data from broken list in a column to a row

    Hi jaffermo

    This code is in the attached and appears to do as you require.

    Please note that the code requires you to set a reference to Microsoft Scripting Runtime... Tools > Reference > Microsoft Scripting Runtime

    You'll need to think about how to implement...I don't know your process. The code can be adapted to whatever that process is. Let me know of issues.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-10-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Copy data from broken list in a column to a row

    Jaslake - don't know how to thank you. It works so smoothly and doesn't interfere with data around it. I doubt there's any computer or excel related advice I can give you but if you're ever in NYC, don't hesitate to look me up. Drink's on me

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy data from broken list in a column to a row

    Hi jaffermo

    You're welcome...glad I could help. Thanks for the Rep.

    If that satisfies your need, I'd appreciate it if you'll please mark your thread as "Solved".
    To mark your thread solved do the following:
    - Go to your first post on the thread
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solved
    - Click Save

  7. #7
    Registered User
    Join Date
    10-10-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy data from broken list in a column to a row

    done - thanks

+ 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