+ Reply to Thread
Results 1 to 14 of 14

book recommendation to learn excel / want a macro to extract tickers / pivot table

  1. #1
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    book recommendation to learn excel / want a macro to extract tickers / pivot table

    Hello,

    I need to manipulate some data in order to make it reasonable. I'm reading up on Macro's now in order to be able to do this stuff in the future, but I think macro's are a long term thing. So coming for help.

    Actually before I go into that, is there any book one can recommend for macro's? I do have a friend's books, How to Do Everything with MS Office Excel 2003, MS Excel Bible 2003, and MS Office - Excel 2003 Formulas. Are these good or any other recommendations? In particular I would like some data to play around w/ so that when in the book they tel me to do something I actually have some data to manipulate. I imagine learning the basics of macro's will be easy enough, but as I understand it the real power of macro's comes from programming in VB, and I dont see how that can be covered in these books.

    Now for the more specific questions -

    My raw data looks like the attached excel file called Raw Data, I want it to end up as the other attached excel file called Result. How would I create a macro to read where the ticker begins and ends? Is there any way to do it w/o VB knowledge?

    Raw Data:
    \1

    Resulting Data:
    \1


    More importantly, I want to be able to order the tickers by how many times they've been mentioned. For example in the second excel file called Result, Laura has been mentioned twice as often as anyone else. When I sort this list I want to sort by who's been mentioned the most. So I'd like to see 6 lines of her data, followed by the person mentioned the second most (if they had 5 lines, the next 5 should be them etc). For this one would pivot tables do the job, or do I need macro's for this as well?

    Thanks
    Dan
    Last edited by zazzz; 10-02-2009 at 11:17 PM. Reason: dont see attachments, adding pix

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: need help w/ a macro, and maybe a pivot table?

    Hi Dan, please take a moment to edit your thread title to something descriptive of your problem, per the forum rules. Good thread titles help people find what they're looking for easier when searching, and allows volunteers to quickly see which posts they may want to or can help with.

    Thread titles should briefly describe the problem and not the solution or things you have already attempted. (If you can't come up with a concise thread title, your post may be asking too much or too vague.)

    Thanks!

  3. #3
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    sorry about the mistake paul, i had thought my title was reasonably descriptive. i have edited it, hope this works.


    i actually have another question now. i created a macro but didnt get the toolbar for it. instead it just said at the far bottom-left corner that it was recording. i think i figured out the issue, toolbars weren't on. but now stuff has been recorded and i want to start this same one from scratch. i can create a new one but id like to work on this if possible, for experimentation. first off, how do i do this? (without knowledge of VB). secondly, when i click on the marco and hit 'edit' i get an error saying: cannot edit a macro on a hidden workbook. unhide the workbook using the unhide command.

    what do i do? i certainly never tried to hide any workbook and dont know how to unhide it either.
    Last edited by zazzz; 10-02-2009 at 11:24 PM.

  4. #4
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    cmon guys. anyone?

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

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    Instead of uploading pictures of workbooks, upload an actual workbook with BEFORE/AFTER sheets with enough data in it to be useful.

    Click on GO ADVANCED and use the paperclip icon to upload your sample workbook.

    =======
    Also, please read all the forum rules. Crossposting on multiple forums is understandable, but forum rules require you post a link to those other threads in your thread here. We like to help, and we do it for free. To find out our time is wasted because the problem is already solved elsewhere and we had no link to the other activity...that would be bad, yes?
    _________________
    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!)

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl


  7. #7
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    i actually did use the paperclip earlier to attach an excel file and it even said it was uploading, but then i didnt see the upload anywhere, thats why did the pic thing instead. i'll try it again and see if it works.


    OK done, I see the attachment now. Sheet 1 is the raw data, sheet 2 is the way I want it to look.

    Thanks!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    sorry about the mistake. as i explained to paul and in the other forum, i had posted here 3 days ago and hadnt received a response, thats why decided to go to another forum. i had read this rule about cross-posting when i first signed up here but that was a while back and id completely forgotten about it.

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

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    Hey zazz, this is a VBA solution, formulas just got too cumbersome for me to think through.

    Please Login or Register  to view this content.
    =======
    How to use the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Edit the sheet name references in the macro, if necessary
    6. Get out of VBA (Press Alt+Q)
    7. Save your sheet

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.

  10. #10
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    thanks so much, this is great of you to go to all this trouble!

    and thanks for breaking down how to put it into VB, i didnt really know.

    everything worked fine, except the running part. i didnt really know which macro it was but i just assumed it was the last one on my list. that didnt do anything. neither did the second last one. i was actually surprised it didnt ask me what to name my macro, is it not supposed to do that?

    -------------------------------

    EDIT - ooh never mind! i see it now. didnt see that earlier, dont know what happened there. thanks again for the help.
    Last edited by zazzz; 10-06-2009 at 07:44 PM.

  11. #11
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    btw is there a way to sort this by how many times a ticker was mentioned?

    For example in the second excel file called Result, Laura has been mentioned twice as often as anyone else. When I sort this list I want to sort by who's been mentioned the most. So I'd like to see 6 lines of her data, followed by the person mentioned the second most (if they had 5 lines, the next 5 should be them etc). For this one would pivot tables do the job, or do I need macro's for this as well?
    thanks again beaucaire!
    Last edited by zazzz; 10-06-2009 at 07:46 PM.

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

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  13. #13
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    shoot that was fast!

    it does take care of more than half of my need. however if you or someone else could tel me about the sorting id appreciate it.

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: book recommendation to learn excel / want a macro to extract tickers / pivot tabl

    How about instead starting a new thread with a title that describes one issue?

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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