+ Reply to Thread
Results 1 to 4 of 4

I give up...S & P 500 formatting issue....

  1. #1
    Registered User
    Join Date
    06-26-2010
    Location
    SF, CA
    MS-Off Ver
    Excel 2003
    Posts
    4

    I give up...S & P 500 formatting issue....

    I give up.

    If anyone can solve this for me than you are officially my hero.

    I've attached a small piece of the spreadsheet I need formatted. The sheet contains all of the stock data for the SP 500 over the last year. I only left the stocks with tickers starting with "A" to make the spreadsheet (column B) a little more manageable but needless to say, it's BIG.

    Here's what I need to do: I need a macro that will put the each stock in it's own worksheet, with the title of that worksheet being the stock ticker. That's 500 worksheets total (although in the attached file there's probably only a couple dozen.) Each time I pull the data the number of days each stock reports is different so that may add a kink to things.

    For instance, I tried a macro that would cut the first 260 or so columns and then paste them into a new worksheet, delete the remaining empty rows on worksheet one, then rinse and repeat. Problem is different stocks have different numbers of days that get pulled (don't ask why).

    So if ANYONE can solve this I would be greatly appreciative. See the attached file for reference.

    D
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: I give up...S & P 500 formatting issue....

    Hello sospitt,

    I have added a button to the main worksheet to run the macro. There seems to be a problem with uploading files right now. I will attempt to upload the workbook later. Here is the macro code if you want to add this to your workbook yourself.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-26-2010
    Location
    SF, CA
    MS-Off Ver
    Excel 2003
    Posts
    4

    re: I give up...S & P 500 formatting issue....

    You sir, are amazing. No clue how you did it, but you did it in style and I applaud you.

    I'm currently working for a major financial institution in San Francisco (I see you're from here as well). I'll be sure to keep you name at the top of the code. If, by some miracle for both of us, I strike technical analysis gold, I'll be sure to let some of the love flow your way.

    God bless. Enjoy the beautiful weather today.

    D

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: I give up...S & P 500 formatting issue....

    sorry, late
    Last edited by protonLeah; 06-26-2010 at 08:45 PM.
    Ben Van Johnson

+ 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