+ Reply to Thread
Results 1 to 8 of 8

Using SUMIF with non-blank cells

  1. #1
    Peter Aitken
    Guest

    Using SUMIF with non-blank cells

    I want to use SUMIF to sum the numbers in column G only if the adjacent cell
    in column H is not empty. I cannot figure out the criterion to use.

    Thanks,

    --
    Peter Aitken

    Remove the crap from my email address before using.



  2. #2
    Springbok
    Guest

    RE: Using SUMIF with non-blank cells

    Hi Peter,

    SUMIF(range,criteria,sum_range). Criteria = "<>"""

    SUMIF(A:A,"<>""",B:B)

    Regards,
    Jon

    "Peter Aitken" wrote:

    > I want to use SUMIF to sum the numbers in column G only if the adjacent cell
    > in column H is not empty. I cannot figure out the criterion to use.
    >
    > Thanks,
    >
    > --
    > Peter Aitken
    >
    > Remove the crap from my email address before using.
    >
    >
    >


  3. #3
    N Harkawat
    Guest

    Re: Using SUMIF with non-blank cells

    =sumproduct(--isblank(h1:h1000),(g1:g1000))
    adjust the range accordingly

    "Peter Aitken" <paitken@CRAPnc.rr.com> wrote in message
    news:%23Y%23jeQ3DFHA.3728@TK2MSFTNGP14.phx.gbl...
    >I want to use SUMIF to sum the numbers in column G only if the adjacent
    >cell in column H is not empty. I cannot figure out the criterion to use.
    >
    > Thanks,
    >
    > --
    > Peter Aitken
    >
    > Remove the crap from my email address before using.
    >




  4. #4
    Springbok
    Guest

    RE: Using SUMIF with non-blank cells

    Sorry, that doesn't work. Do a sum of the range and then deduct the blanks:

    SUM(B:B)-SUMIF(A:A,"",B:B)

    Cheers,
    Jon

    "Springbok" wrote:

    > Hi Peter,
    >
    > SUMIF(range,criteria,sum_range). Criteria = "<>"""
    >
    > SUMIF(A:A,"<>""",B:B)
    >
    > Regards,
    > Jon
    >
    > "Peter Aitken" wrote:
    >
    > > I want to use SUMIF to sum the numbers in column G only if the adjacent cell
    > > in column H is not empty. I cannot figure out the criterion to use.
    > >
    > > Thanks,
    > >
    > > --
    > > Peter Aitken
    > >
    > > Remove the crap from my email address before using.
    > >
    > >
    > >


  5. #5
    R.VENKATARAMAN
    Guest

    Re: Using SUMIF with non-blank cells

    try this

    =SUMPRODUCT(--(G1:G7),--(H1:H7<>0))

    the signs are two minus signs

    my data is G1 to G7 change it to suit your purposes




    Peter Aitken <paitken@CRAPnc.rr.com> wrote in message
    news:#Y#jeQ3DFHA.3728@TK2MSFTNGP14.phx.gbl...
    > I want to use SUMIF to sum the numbers in column G only if the adjacent

    cell
    > in column H is not empty. I cannot figure out the criterion to use.
    >
    > Thanks,
    >
    > --
    > Peter Aitken
    >
    > Remove the crap from my email address before using.
    >
    >






  6. #6
    Jason Morin
    Guest

    Re: Using SUMIF with non-blank cells

    =SUMIF(H:H,"<>",G:G)

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >I want to use SUMIF to sum the numbers in column G only

    if the adjacent cell
    >in column H is not empty. I cannot figure out the

    criterion to use.
    >
    >Thanks,
    >
    >--
    >Peter Aitken
    >
    >Remove the crap from my email address before using.
    >
    >
    >.
    >


  7. #7
    LanceB
    Guest

    RE: Using SUMIF with non-blank cells

    =SUMIF(H:H,"<>",G:G)

    Lance

    "Peter Aitken" wrote:

    > I want to use SUMIF to sum the numbers in column G only if the adjacent cell
    > in column H is not empty. I cannot figure out the criterion to use.
    >
    > Thanks,
    >
    > --
    > Peter Aitken
    >
    > Remove the crap from my email address before using.
    >
    >
    >


  8. #8
    Peter Aitken
    Guest

    Re: Using SUMIF with non-blank cells

    Thanks - Jason your solution is certainly nonintuitive but it works and is
    the simplest one.

    --
    Peter Aitken

    Remove the crap from my email address before using.

    "Jason Morin" <jasonjmorin@OPPOSITEOFCOLDmail.com> wrote in message
    news:0d8501c50f77$9a907350$a401280a@phx.gbl...
    > =SUMIF(H:H,"<>",G:G)
    >
    > HTH
    > Jason
    > Atlanta, GA
    >
    >>-----Original Message-----
    >>I want to use SUMIF to sum the numbers in column G only

    > if the adjacent cell
    >>in column H is not empty. I cannot figure out the

    > criterion to use.
    >>
    >>Thanks,
    >>
    >>--
    >>Peter Aitken
    >>
    >>Remove the crap from my email address before using.
    >>
    >>
    >>.
    >>




+ 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