+ Reply to Thread
Results 1 to 4 of 4

sumif using today's date

  1. #1
    Eqa
    Guest

    sumif using today's date

    I am trying to use SUMIF. In column A I have dates and column B there are
    dollar values. I am trying to sum all dollar values due from today out to the
    next 7 days. How do I add 2 criteria to the sumif formula?

  2. #2
    Peo Sjoblom
    Guest

    Re: sumif using today's date

    2 ways

    =SUMIF(A2:A30,">="&TODAY(),B2:B30)-SUMIF(A2:A30,">"&TODAY()+7,B2:B30)

    format result as non date

    or

    =SUMPRODUCT(--(A2:A30>=TODAY()),--(A2:A30<=TODAY()+7),B2:B30)

    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "Eqa" <Eqa@discussions.microsoft.com> wrote in message
    news:28E32EE0-D75F-4B56-B808-B02072EFD378@microsoft.com...
    >I am trying to use SUMIF. In column A I have dates and column B there are
    > dollar values. I am trying to sum all dollar values due from today out to
    > the
    > next 7 days. How do I add 2 criteria to the sumif formula?



  3. #3
    Biff
    Guest

    Re: sumif using today's date

    Hi!

    Try one of these:

    =SUMIF(A1:A13,">="&TODAY(),B1:B13)-SUMIF(A1:A13,">"&TODAY()+7,B1:B13)

    =SUMPRODUCT(--(A1:A13>=TODAY()),--(A1:A13<=TODAY()+7),B1:B13)

    You could even use a helper cell:

    C1 =TODAY()

    Then:

    =SUMIF(A1:A13,">="&C1,B1:B13)-SUMIF(A1:A13,">"&C1+7,B1:B13)

    =SUMPRODUCT(--(A1:A13>=C1),--(A1:A13<=C1+7),B1:B13)

    Biff

    "Eqa" <Eqa@discussions.microsoft.com> wrote in message
    news:28E32EE0-D75F-4B56-B808-B02072EFD378@microsoft.com...
    >I am trying to use SUMIF. In column A I have dates and column B there are
    > dollar values. I am trying to sum all dollar values due from today out to
    > the
    > next 7 days. How do I add 2 criteria to the sumif formula?




  4. #4
    Eqa
    Guest

    Re: sumif using today's date

    Thanks That is great and NOW seems so easy.

    "Peo Sjoblom" wrote:

    > 2 ways
    >
    > =SUMIF(A2:A30,">="&TODAY(),B2:B30)-SUMIF(A2:A30,">"&TODAY()+7,B2:B30)
    >
    > format result as non date
    >
    > or
    >
    > =SUMPRODUCT(--(A2:A30>=TODAY()),--(A2:A30<=TODAY()+7),B2:B30)
    >
    > --
    > Regards,
    >
    > Peo Sjoblom
    >
    > (No private emails please)
    >
    >
    > "Eqa" <Eqa@discussions.microsoft.com> wrote in message
    > news:28E32EE0-D75F-4B56-B808-B02072EFD378@microsoft.com...
    > >I am trying to use SUMIF. In column A I have dates and column B there are
    > > dollar values. I am trying to sum all dollar values due from today out to
    > > the
    > > next 7 days. How do I add 2 criteria to the sumif formula?

    >
    >


+ 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