+ Reply to Thread
Results 1 to 8 of 8

Auto total for every month

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    kuwait
    MS-Off Ver
    Excel 2013
    Posts
    5

    Auto total for every month

    Any one help me for automatically sum to be calculated in excel.
    Say i have attahced the file evey month expens for 12 months in 3 column like actual exp for last year, budget for the year and actual for current year. I need the formula when ever i have updated the data of every month total column shows total automatically.
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto total for every month

    In AM4 Cell

    =SUMPRODUCT((TEXT($B$1:$AK$1,"YYYY")=TRIM(SUBSTITUTE(UPPER(AM$1),"YTD.","")))*($B$2:$AK$2=AM$2),$B4:$AK4)

    Drag it down and right...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-20-2013
    Location
    kuwait
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Auto total for every month

    It is fine. But i need the total like as below.
    01-- i am not going to hide the all column. only i will keep column till march.
    02-- Which ever column UN-hide that total only should show in last column.(it means actual and budget.
    Plz help on this.
    Thanks

  4. #4
    Registered User
    Join Date
    05-20-2013
    Location
    kuwait
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Auto total for every month

    Sorry i have mentioned wrongly earlier post.

    But i need the total like as below.
    01-- i am going to hide the all column. only i will keep column till march.
    02-- Which ever column UN-hide that total only should show in last column.(it means actual and budget.
    Plz help on this.
    Thanks

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto total for every month

    Just limit the reference to that range alone

    In AM4 Cell

    =SUMPRODUCT((TEXT($B$1:$J$1,"YYYY")=TRIM(SUBSTITUTE(UPPER(AM$1),"YTD.","")))*($B$2:$J$2=AM$2),$B4:$J4)

    Drag it down and right...

  6. #6
    Registered User
    Join Date
    05-20-2013
    Location
    kuwait
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Auto total for every month

    Really very nice one.
    But When i am going to un-hide the april automatically can update the formula?
    Suppose one cell i will update say May, the formula can automatically update.
    I need like that formula.
    Please help me.
    I am sorry to treble you
    thanks-shankar

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto total for every month

    I created an UDF to result whether the column is hidden.

    Please Login or Register  to view this content.
    Whenever you hide / unhide a column then just press F2 on any cell and press Enter to let the UDF to recalculate.

    Refer the attached file for details
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-20-2013
    Location
    kuwait
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Auto total for every month

    Thanks a lot

+ 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] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  2. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2013, 08:45 AM
  3. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2013, 07:18 AM
  4. [SOLVED] Help with a system to auto populate month names based on current month
    By rosboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 05:17 PM
  5. [SOLVED] Auto populate cells from data in a 6 month range starting with the current month
    By ecarnley349 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:32 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