+ Reply to Thread
Results 1 to 5 of 5

Sumifs with date range - help please!

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Hertfordshire
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    3

    Sumifs with date range - help please!

    Hi all,

    I'm new to this forum business, apologies if I don't do it quite right! I'm not very advanced in excel and have hit a brick wall...

    I am trying to write a sumifs formula that will sum total stock delivered within a date range. I've attached the file complete with formula error. I'm trying to build a stock taking spreadsheet that will allow the user to specify the range of weeks he has between stock takes and then sum up the total delivered and the total sales and use these to calculate an expected stock.

    I have searched lots of excel forums etc but still cannot get this to work. My formula is: =sumifs(D6:D21,C6:C21,">="&H4,C6:C21,"<="&I4) where D6:D21 is the data I want summed, C6:C21 my criteria range and H4 and I4 are my dates (they work on drop down list selection).

    If you are able to help with this that would be amazing.

    Thanks,

    Ruth
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sumifs with date range - help please!

    The essence of your formula is correct..

    I modified it to
    =SUMIFS(C4:F4,$C$3:$F$3,">="&$H$3,$C$3:$F$3,"<="&$I$3)

    See attached highlighted in yellow. Is this something you can work off?
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Hertfordshire
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    3

    Re: Sumifs with date range - help please!

    Hi Ace_Xl,

    Many thanks for such a quick reply - when I open the file, the formula doesn't work if I change the date? E.g. change 18/08/12 for 25/08/12?

    Also, what was I doing wrong?

    Thanks,

    Ruth

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,714

    Re: Sumifs with date range - help please!

    Are you using Excel 2003? SUMIFS doesn't work in that version, try subtracting one SUMIF from another, i.e.

    =SUMIF($C$3:$F$3,">="&$H$3,C4:F4)-SUMIF($C$3:$F$3,">"&$I$3,C4:F4)
    Audere est facere

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Hertfordshire
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    3

    Re: Sumifs with date range - help please!

    hi daddylonglegs,

    Thanks - I didn't realise this. I am doing a bit of both (work vs home laptop) but now appreciate that isn't going to work. Thinking about it end users of the sheet may only have 2003 so I'll do this - thanks :-)

    Ruth

+ 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