+ Reply to Thread
Results 1 to 5 of 5

SUMIF per MONTH

  1. #1
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    SUMIF per MONTH

    Hi Everyone,

    I hope someone could help me with my problem.

    Here it is... I have two sheets

    RAW DATA: Where all the transaction for the month is located
    BUDGET: Where the budget for 2016 (Column B:M) is located. It's FIXED.

    What I am doing every month is to compare the BUDGET vs ACTUALS by computing the total expense of the month per GL CODE (COLUMN A). What I usually do is to COPY the formula and just CHANGE it to the current MONTH.

    I was hoping if there is a way to CODE this using VBA... in one RUN, it will put the TOTAL ACTUAL EXPENSE to the right MONTH which is in COLUMN N to Y.

    Thank you in advance.

    ^_^ JB
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,761

    Re: SUMIF per MONTH

    You don't need VBA, just use SUMIFS with a Custom Number Format to hide zeroes.

    Or, more flexible, use a Pivot Table.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    140

    Re: SUMIF per MONTH

    Hi Buddy...

    Right.. Actually that is what I'm doing.. SUMIFS every month and just change it with the current... But I was just wondering if its possible to do it in VBA.. eheheh..

    But if its not.. I'm okay with the current ^_^ Just want to learn how..

    Tnx tnx

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,761

    Re: SUMIF per MONTH

    Why are you changing it every month? You have a column header that contains the month name. Use that.

    On iPad at the moment so can't see details. Will check back later.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,761

    Re: SUMIF per MONTH

    Adjust the formula in N3 and drag across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the updated example. It also has an example of a Pivot Table.


    Regards, TMS
    Attached Files Attached Files

+ 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. [SOLVED] SUMIF month equals today's month
    By bbrunof in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-05-2013, 02:59 PM
  2. [SOLVED] display cell to show only Month/year to do sumif calc if today()= any day of month
    By fireguy7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 06:55 PM
  3. Excel 2007 : Sumif by month help
    By nixboy in forum Excel General
    Replies: 1
    Last Post: 11-24-2010, 01:34 PM
  4. How to sumif and countif by month?
    By bisonbison in forum Excel General
    Replies: 2
    Last Post: 12-01-2008, 10:31 PM
  5. SUMIF in a given month
    By maztaz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-30-2007, 05:29 AM
  6. MONTH/SUMIF Function
    By bwjudy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-10-2007, 07:57 PM
  7. [SOLVED] SUMIF with only Month
    By Tufail in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-04-2006, 10:55 AM
  8. SUMIF & MONTH() ?
    By thornomad in forum Excel General
    Replies: 4
    Last Post: 10-05-2005, 07:05 AM

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