Consulting

Results 1 to 4 of 4

Thread: Solved: sum total based on month

  1. #1
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location

    Solved: sum total based on month

    hi,

    i need to add the number of entries based on month & year.
    in column A12, i have numbers ; in column B12 i have dates.
    in cell B3, i'm looking to add up the numbers in Column A12 for the month of January 2008.
    i tried sumif but that didn't work out.
    is there a formula for this or do i need to write some code ?



    thanks
    zach

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =SUMPRODUCT(--(TEXT($B$12:$B$20,"mmm")=B$2),--(YEAR($B$12:$B$20)=$A3),$A$12:$A$20)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location
    thanks xldid
    someday i'll understand sumproduct

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Take a look at http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed explanation.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •