+ Reply to Thread
Results 1 to 6 of 6

Manipulate dataset in a quarterly format

  1. #1
    Registered User
    Join Date
    01-06-2017
    Location
    patagonia
    MS-Off Ver
    Professional Plus 2013
    Posts
    6

    Manipulate dataset in a quarterly format

    Dear All,

    I am new VBA user and I would like your help because I am getting crazy. I am using a data set with 2 columns. In the first one I have the years (1970-2013) and in the second column the month of an event. What I am trying to do is to manipulate these two columns and create a third one collecting the number of these events in a quarterly form. For the quarters that no event has been occurred I just put a 0 for them.

    The problem is that my code is working fine until it meets a missing year. There is something wrong and I CANT SEE IT. Can anyone help me with it please?? I have attached my data set. Much appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by telas; 01-06-2017 at 04:26 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Little VBA programming help please

    While I take a look at it can you amend your title? as per....

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    01-06-2017
    Location
    patagonia
    MS-Off Ver
    Professional Plus 2013
    Posts
    6

    Re: Little VBA programming help please

    What should a proper title be??

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Little VBA programming help please

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    01-06-2017
    Location
    patagonia
    MS-Off Ver
    Professional Plus 2013
    Posts
    6

    Re: Little VBA programming help please

    I have just corrected the title. Could anyone please help me with it? Many thanks

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Manipulate dataset in a quarterly format

    Im not certain you need all those ElseIF statements but in the interests of a quick answer I think that if you change the following:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    It should do it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vba programming-xl
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2012, 11:50 PM
  2. VBA Programming
    By Dr.Levis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2012, 09:36 AM
  3. Programming without VBA?
    By jesperhs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2010, 09:44 AM
  4. Help with programming...
    By FooFghtrs33 in forum Excel General
    Replies: 1
    Last Post: 05-06-2009, 02:45 PM
  5. VBA programming
    By kush28 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2006, 04:05 AM
  6. [SOLVED] Programming help
    By BB in forum Excel General
    Replies: 3
    Last Post: 12-04-2005, 09:15 PM
  7. [SOLVED] Programming Help???
    By Moonraker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2005, 01:05 AM
  8. [SOLVED] Programming
    By Javad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2005, 06:06 PM

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