SUMIFS with less than & more than

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: SUMIFS with less than & more than

  1. #1
    Board Regular
    Join Date
    May 2011
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default SUMIFS with less than & more than

     
    Hi guys,
    I have a range of figures with a range of dates. I also have to cells where I input starting date and end date. I need my sumifs formula sum all the values between two dates.
    Now I have the following:
    =SUMIFS('Trade Search Results'!Y:Y;'Trade Search Results'!D:D;'Portfolio stats'!B16;'Trade Search Results'!AN:AN;"<=$L$3";'Trade Search Results'!AN:AN;">=$L$2")

    where Y:Y are values
    D:D is a range with company names and B16 is the needed company
    AN:AN is a range of dates
    L2 is start date
    L3 is end date

    Now it keeps looking for dates that are equal or less that "$L$3" and equal or more than "$L$2", not the date in the cell.

    How can I change it?

    Thanks!

  2. #2
    Board Regular
    Join Date
    May 2011
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: SUMIFS with less than & more than

    P.S. when i input needed dates instead of the cell address it works just fine

  3. #3
    MrExcel MVP
    Join Date
    Aug 2010
    Location
    Rio de Janeiro BRAZIL
    Posts
    13,804
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    3 Thread(s)

    Default Re: SUMIFS with less than & more than

    Hi,

    Try
    "<="&$L$3 instead of "<=$L$3"
    and
    ">="&$L$2 instead of ">=$L$2"

    HTH

    M.

  4. #4
    Board Regular
    Join Date
    May 2011
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: SUMIFS with less than & more than

    Cool, it did help, thanks man!

  5. #5
    MrExcel MVP
    Join Date
    Aug 2010
    Location
    Rio de Janeiro BRAZIL
    Posts
    13,804
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    3 Thread(s)

    Default Re: SUMIFS with less than & more than

    Quote Originally Posted by stepan1987 View Post
    Cool, it did help, thanks man!
    You are welcome and tks for the feedback

    M.

  6. #6
    New Member
    Join Date
    Jun 2007
    Location
    New Brunswick
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: SUMIFS with less than & more than

      
    Great workaround, thank you as well.

    Cheers,
    Graeme,

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com