+ Reply to Thread
Results 1 to 6 of 6

Counting & summing formula (until last month,this month,until this month..

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Counting & summing formula (until last month,this month,until this month..

    hi all,

    i need help how to figure it out, count and sum with criteria by date with month as controller display (drop down list),
    - how to showing data/value (counting and summing) with 4 models ----"green area"-----;
    1) showing data until last month
    2) showing data only this month
    3) showing data until this month
    4) total data until last month, total this month and until this month

    when i click month (in cell K2) drop down list data in display....

    for example;
    when i click a month March (in cell K2), ;
    - counting & summing data until last month (January, February)
    - counting & summing only this month (March)
    - total counting & summing data until this month (January + February + March)

    note; not use Pivot

    please, see my workbook....

    thanks!!
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Counting & summing formula (until last month,this month,until this month..

    i would use

    For upto the end of last month
    =COUNTIFS(B:B,F4,A:A,">="&1/1/13,A:A,"<="&EOMONTH($K$2,-1))

    =SUMIFS(C:C,B:B,F4,A:A,">="&1/1/13,A:A,"<="&EOMONTH($K$2,-1))

    but that means changing the dropdown to be an actual date - see attached

    Just this month
    =COUNTIFS(B:B,F4,A:A,">="&$K$2,A:A,"<="&EOMONTH($K$2,0))

    =SUMIFS(C:C,B:B,F4,A:A,">="&$K$2,A:A,"<="&EOMONTH($K$2,0))

    Until this month

    =COUNTIFS(B:B,F4,A:A,">="&1/1/13,A:A,"<="&EOMONTH($K$2,0))

    =SUMIFS(C:C,B:B,F4,A:A,">="&1/1/13,A:A,"<="&EOMONTH($K$2,0))

    I hope thats what you need - check , as i have not checked extensively

    i have used 1/1/13 as the starting date - but you can change that to however, far you need to go back
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & summing formula (until last month,this month,until this month..

    etaf, FANTASTIC....

    THANK YOU SO MUCH, I AM GLAD NOW.....

  4. #4
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & summing formula (until last month,this month,until this month..

    I AM MISSING IT, WHAT GRAND TOTAL FORMULA ( COUNTING & SUMMING)??

    once again, thanks etaf....

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Counting & summing formula (until last month,this month,until this month..

    for the Grand Total - you would just do a SUM()

    If you put the criteria
    PUPN
    TAX
    BUMN
    AUCTION

    on every row - then you could just copy the formulas down
    otherwise you need to adjust to pickup the cell with that criteria in

    thanks for the rep

  6. #6
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & summing formula (until last month,this month,until this month..

    hi etaf, thank for your suggestion...

+ 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. Formula for average duration for each month based on the ending month
    By bobby769 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2013, 11:18 AM
  3. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  4. [SOLVED] Summing cumulative daily values for each month then resetting next month
    By JaredZ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2012, 06:04 AM
  5. [SOLVED] Excel 2007 : Counting date in specific month by month
    By adisakman in forum Excel General
    Replies: 8
    Last Post: 06-14-2012, 06:30 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