+ Reply to Thread
Results 1 to 4 of 4

Sumif using date range

  1. #1
    Registered User
    Join Date
    10-24-2007
    Location
    Kuwait
    Posts
    6

    Sumif using date range

    I want to take sum of values in one column depending on dates in another column. Can anyone please help me do it.
    In the attached sheet I have dates in column A and values in column B.
    In cell E3, I want the sum of all values in column that fall in month of Jan08.
    Similatly in cell E4 i want sum of values for month of Feb08 and so on.
    Thanks,

    Taher
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    =SUMPRODUCT(($A$3:$A$31>=D3)*($A$3:$A$31<DATE(YEAR(D3),MONTH(D3)+1,1))*($B$3:$B$31))

    Does that help?

    Regards

    Dav

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    10-24-2007
    Location
    Kuwait
    Posts
    6

    Solved

    Both the formulas worked great!
    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)

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