+ Reply to Thread
Results 1 to 6 of 6

Sumif formula not giving result

  1. #1
    Registered User
    Join Date
    06-13-2006
    Posts
    10

    Sumif formula not giving result

    What could be wrong with this formula please? It is not throwing an error, just evaluating to zero. However, the basic data which I have should return a positive number. The formula is

    =SUMIF($C2:$C54,">date(2005,9,30)",E2:E54)

    The range c2:c54 contains valid dates some of which are greater than sep 30 2005. The range e2:e54 contains amounts.
    The range c2:c54 also includes a few blank cells.

  2. #2
    Guest

    Re: Sumif formula not giving result

    Hi

    Try this:
    =SUMIF($C2:$C54,">"&date(2005,9,30),E2:E54)

    Hope this helps.
    Andy.

    "abanerji" <[email protected]> wrote in
    message news:[email protected]...
    >
    > What could be wrong with this formula please? It is not throwing an
    > error, just evaluating to zero. However, the basic data which I have
    > should return a positive number. The formula is
    >
    > =SUMIF($C2:$C54,">date(2005,9,30)",E2:E54)
    >
    > The range c2:c54 contains valid dates some of which are greater than
    > sep 30 2005. The range e2:e54 contains amounts.
    > The range c2:c54 also includes a few blank cells.
    >
    >
    > --
    > abanerji
    > ------------------------------------------------------------------------
    > abanerji's Profile:
    > http://www.excelforum.com/member.php...o&userid=35382
    > View this thread: http://www.excelforum.com/showthread...hreadid=551513
    >




  3. #3
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    =sumif($c2:$c54,">"&date(2005,9,30),e2:e54)
    Google is your best friend!

  4. #4
    Toppers
    Guest

    RE: Sumif formula not giving result

    Try where A1 contains your date:

    =SUMIF($C2:$C53,">" & A1,E2:E53)

    OR

    =SUMIF($C2:$C53,">25/9/2005",E2:E53)

    "abanerji" wrote:

    >
    > What could be wrong with this formula please? It is not throwing an
    > error, just evaluating to zero. However, the basic data which I have
    > should return a positive number. The formula is
    >
    > =SUMIF($C2:$C54,">date(2005,9,30)",E2:E54)
    >
    > The range c2:c54 contains valid dates some of which are greater than
    > sep 30 2005. The range e2:e54 contains amounts.
    > The range c2:c54 also includes a few blank cells.
    >
    >
    > --
    > abanerji
    > ------------------------------------------------------------------------
    > abanerji's Profile: http://www.excelforum.com/member.php...o&userid=35382
    > View this thread: http://www.excelforum.com/showthread...hreadid=551513
    >
    >


  5. #5
    Registered User
    Join Date
    06-13-2006
    Posts
    10
    Thank you Toppers. I tried your second alternative ... it worked.

    But, I am still academically curious as to why my "date(year,month,day)" function inserted within the formula failed to evaluate.
    I think I have successfully embedded functions within other formulae several times in the past.

  6. #6
    Toppers
    Guest

    Re: Sumif formula not giving result

    See the other responses but the ">date(...)" is treated as a text string
    whereas the ">" & date( ...) is treated as comparator + function in the same
    way that you can use ">" & A1.

    HTH

    "abanerji" wrote:

    >
    > Thank you Toppers. I tried your second alternative ... it worked.
    >
    > But, I am still academically curious as to why my
    > "date(year,month,day)" function inserted within the formula failed to
    > evaluate.
    > I think I have successfully embedded functions within other formulae
    > several times in the past.
    >
    >
    > --
    > abanerji
    > ------------------------------------------------------------------------
    > abanerji's Profile: http://www.excelforum.com/member.php...o&userid=35382
    > View this thread: http://www.excelforum.com/showthread...hreadid=551513
    >
    >


+ 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