+ Reply to Thread
Results 1 to 9 of 9

Conditional SUMIF

  1. #1
    Curtis
    Guest

    Conditional SUMIF

    I am currently using the formulae to clcualte the sum for $A5

    =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)

    I would to modify this so it leaves out all numbers less than 0

    Thanks

  2. #2
    Bernie Deitrick
    Guest

    Re: Conditional SUMIF

    Curtis,

    =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0))

    HTH,
    Bernie
    MS Excel MVP


    "Curtis" <[email protected]> wrote in message
    news:[email protected]...
    >I am currently using the formulae to clcualte the sum for $A5
    >
    > =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    >
    > I would to modify this so it leaves out all numbers less than 0
    >
    > Thanks




  3. #3
    Bernard Liengme
    Guest

    Re: Conditional SUMIF

    Use SUMPRODUCT
    =SUMPRODUCT(--(JAN_05'!$C$2:$C$65536=$A5),--(JAN_05'!$C$2:$C$65536,>0),JAN_05'!J$2:$J$65536)

    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "Curtis" <[email protected]> wrote in message
    news:[email protected]...
    >I am currently using the formulae to clcualte the sum for $A5
    >
    > =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    >
    > I would to modify this so it leaves out all numbers less than 0
    >
    > Thanks




  4. #4
    Bernie Deitrick
    Guest

    Re: Conditional SUMIF

    Oops, forgot to actually sum:

    =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0)*JAN_05'!J$2:$J$65536)


    HTH,
    Bernie
    MS Excel MVP


    "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
    news:%[email protected]...
    > Curtis,
    >
    > =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0))
    >
    > HTH,
    > Bernie
    > MS Excel MVP
    >
    >
    > "Curtis" <[email protected]> wrote in message
    > news:[email protected]...
    >>I am currently using the formulae to clcualte the sum for $A5
    >>
    >> =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    >>
    >> I would to modify this so it leaves out all numbers less than 0
    >>
    >> Thanks

    >
    >




  5. #5
    Curtis
    Guest

    Re: Conditional SUMIF

    It gives me " The formula you typed contains an error" message. FYI the sum
    of number greater than zero is in column J not c...Sorry but that should not
    be the difference.

    Thanks

    ce


    "Bernard Liengme" wrote:

    > Use SUMPRODUCT
    > =SUMPRODUCT(--(JAN_05'!$C$2:$C$65536=$A5),--(JAN_05'!$C$2:$C$65536,>0),JAN_05'!J$2:$J$65536)
    >
    > --
    > Bernard V Liengme
    > www.stfx.ca/people/bliengme
    > remove caps from email
    >
    > "Curtis" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am currently using the formulae to clcualte the sum for $A5
    > >
    > > =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    > >
    > > I would to modify this so it leaves out all numbers less than 0
    > >
    > > Thanks

    >
    >
    >


  6. #6
    Curtis
    Guest

    Re: Conditional SUMIF

    Thnaks

    But this leaves the sums blank for all values in column c that contain a 0

    "Bernie Deitrick" wrote:

    > Oops, forgot to actually sum:
    >
    > =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0)*JAN_05'!J$2:$J$65536)
    >
    >
    > HTH,
    > Bernie
    > MS Excel MVP
    >
    >
    > "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
    > news:%[email protected]...
    > > Curtis,
    > >
    > > =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0))
    > >
    > > HTH,
    > > Bernie
    > > MS Excel MVP
    > >
    > >
    > > "Curtis" <[email protected]> wrote in message
    > > news:[email protected]...
    > >>I am currently using the formulae to clcualte the sum for $A5
    > >>
    > >> =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    > >>
    > >> I would to modify this so it leaves out all numbers less than 0
    > >>
    > >> Thanks

    > >
    > >

    >
    >
    >


  7. #7
    Curtis
    Guest

    Re: Conditional SUMIF

    Got it to work....Thanks

    needed to fchange formatting in column $A

    "Bernie Deitrick" wrote:

    > Oops, forgot to actually sum:
    >
    > =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0)*JAN_05'!J$2:$J$65536)
    >
    >
    > HTH,
    > Bernie
    > MS Excel MVP
    >
    >
    > "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
    > news:%[email protected]...
    > > Curtis,
    > >
    > > =SUMPRODUCT((JAN_05'!$C$2:$C$65536=$A5)*(JAN_05'!J$2:$J$65536>0))
    > >
    > > HTH,
    > > Bernie
    > > MS Excel MVP
    > >
    > >
    > > "Curtis" <[email protected]> wrote in message
    > > news:[email protected]...
    > >>I am currently using the formulae to clcualte the sum for $A5
    > >>
    > >> =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    > >>
    > >> I would to modify this so it leaves out all numbers less than 0
    > >>
    > >> Thanks

    > >
    > >

    >
    >
    >


  8. #8
    Myrna Larson
    Guest

    Re: Conditional SUMIF

    Try inserting an apostrophe before each occurrence of JAN_05, so, e.g. the
    first one becomes 'JAN_05'!$C$2:$C$65536

    On Mon, 26 Sep 2005 12:31:01 -0700, Curtis <[email protected]>
    wrote:

    >It gives me " The formula you typed contains an error" message. FYI the sum
    >of number greater than zero is in column J not c...Sorry but that should not
    >be the difference.
    >
    >Thanks
    >
    >ce
    >
    >
    >"Bernard Liengme" wrote:
    >
    >> Use SUMPRODUCT
    >>

    =SUMPRODUCT(--(JAN_05'!$C$2:$C$65536=$A5),--(JAN_05'!$C$2:$C$65536,>0),JAN_05'!J$2:$J$65536)
    >>
    >> --
    >> Bernard V Liengme
    >> www.stfx.ca/people/bliengme
    >> remove caps from email
    >>
    >> "Curtis" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am currently using the formulae to clcualte the sum for $A5
    >> >
    >> > =SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    >> >
    >> > I would to modify this so it leaves out all numbers less than 0
    >> >
    >> > Thanks

    >>
    >>
    >>


  9. #9
    Aladin Akyurek
    Guest

    Re: Conditional SUMIF

    Remove comma before the >0 bit...

    Curtis wrote:
    > It gives me " The formula you typed contains an error" message. FYI the sum
    > of number greater than zero is in column J not c...Sorry but that should not
    > be the difference.
    >
    > Thanks
    >
    > ce
    >
    >
    > "Bernard Liengme" wrote:
    >
    >
    >>Use SUMPRODUCT
    >>=SUMPRODUCT(--(JAN_05'!$C$2:$C$65536=$A5),--(JAN_05'!$C$2:$C$65536,>0),JAN_05'!J$2:$J$65536)
    >>
    >>--
    >>Bernard V Liengme
    >>www.stfx.ca/people/bliengme
    >>remove caps from email
    >>
    >>"Curtis" <[email protected]> wrote in message
    >>news:[email protected]...
    >>
    >>>I am currently using the formulae to clcualte the sum for $A5
    >>>
    >>>=SUMIF(JAN_05'!$C$2:$C$65536,$A5,JAN_05'!J$2:$J$65536)
    >>>
    >>>I would to modify this so it leaves out all numbers less than 0
    >>>
    >>>Thanks

    >>
    >>
    >>


+ 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