+ Reply to Thread
Results 1 to 9 of 9

sumif with multiple conditions

  1. #1
    Ray
    Guest

    sumif with multiple conditions

    I have three columns: a, b & c and need sum the figures on c if a = week1
    and b = empty. Can someone suggest a formula to resolve this issue.

    Thanks,

    Ray



  2. #2
    KL
    Guest

    Re: sumif with multiple conditions

    =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)

    or a little slower:

    =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)

    Regards,
    KL


    "Ray" <[email protected]> wrote in message
    news:[email protected]...
    >I have three columns: a, b & c and need sum the figures on c if a = week1
    >and b = empty. Can someone suggest a formula to resolve this issue.
    >
    > Thanks,
    >
    > Ray
    >




  3. #3
    Ray
    Guest

    Re: sumif with multiple conditions

    KL,

    Thanks for your useful suggestion. Is it possible to apply to countif
    function as well?

    Thanks,

    Ray

    "KL" <[email protected]> wrote in message
    news:%[email protected]...
    > =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)
    >
    > or a little slower:
    >
    > =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)
    >
    > Regards,
    > KL
    >
    >
    > "Ray" <[email protected]> wrote in message
    > news:[email protected]...
    >>I have three columns: a, b & c and need sum the figures on c if a = week1
    >>and b = empty. Can someone suggest a formula to resolve this issue.
    >>
    >> Thanks,
    >>
    >> Ray
    >>

    >
    >




  4. #4
    Bob Phillips
    Guest

    Re: sumif with multiple conditions

    =SUMPRODUCT((A1:A100="week1")*(B1:B100=""))


    --
    HTH

    Bob Phillips

    "Ray" <[email protected]> wrote in message
    news:%[email protected]...
    > KL,
    >
    > Thanks for your useful suggestion. Is it possible to apply to countif
    > function as well?
    >
    > Thanks,
    >
    > Ray
    >
    > "KL" <[email protected]> wrote in message
    > news:%[email protected]...
    > > =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)
    > >
    > > or a little slower:
    > >
    > > =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)
    > >
    > > Regards,
    > > KL
    > >
    > >
    > > "Ray" <[email protected]> wrote in message
    > > news:[email protected]...
    > >>I have three columns: a, b & c and need sum the figures on c if a =

    week1
    > >>and b = empty. Can someone suggest a formula to resolve this issue.
    > >>
    > >> Thanks,
    > >>
    > >> Ray
    > >>

    > >
    > >

    >
    >




  5. #5
    KL
    Guest

    Re: sumif with multiple conditions

    I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
    Regards,
    KL


    "Ray" <[email protected]> wrote in message
    news:%[email protected]...
    > KL,
    >
    > Thanks for your useful suggestion. Is it possible to apply to countif
    > function as well?
    >
    > Thanks,
    >
    > Ray
    >
    > "KL" <[email protected]> wrote in message
    > news:%[email protected]...
    >> =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)
    >>
    >> or a little slower:
    >>
    >> =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)
    >>
    >> Regards,
    >> KL
    >>
    >>
    >> "Ray" <[email protected]> wrote in message
    >> news:[email protected]...
    >>>I have three columns: a, b & c and need sum the figures on c if a = week1
    >>>and b = empty. Can someone suggest a formula to resolve this issue.
    >>>
    >>> Thanks,
    >>>
    >>> Ray
    >>>

    >>
    >>

    >
    >




  6. #6
    Ray
    Guest

    Re: sumif with multiple conditions

    KL,

    No, I mean the same syntax is applied to countif. It seems not workable!

    Ray

    "KL" <[email protected]> wrote in message
    news:[email protected]...
    >I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
    > Regards,
    > KL
    >
    >
    > "Ray" <[email protected]> wrote in message
    > news:%[email protected]...
    >> KL,
    >>
    >> Thanks for your useful suggestion. Is it possible to apply to countif
    >> function as well?
    >>
    >> Thanks,
    >>
    >> Ray
    >>
    >> "KL" <[email protected]> wrote in message
    >> news:%[email protected]...
    >>> =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)
    >>>
    >>> or a little slower:
    >>>
    >>> =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)
    >>>
    >>> Regards,
    >>> KL
    >>>
    >>>
    >>> "Ray" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>>I have three columns: a, b & c and need sum the figures on c if a =
    >>>>week1 and b = empty. Can someone suggest a formula to resolve this
    >>>>issue.
    >>>>
    >>>> Thanks,
    >>>>
    >>>> Ray
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >




  7. #7
    Domenic
    Guest

    Re: sumif with multiple conditions

    Is this what you mean?

    =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""))

    In article <#[email protected]>,
    "Ray" <[email protected]> wrote:

    > KL,
    >
    > Thanks for your useful suggestion. Is it possible to apply to countif
    > function as well?
    >
    > Thanks,
    >
    > Ray


  8. #8
    KL
    Guest

    Re: sumif with multiple conditions

    Ray,

    I guess Bob and Domenic have answered your question ;-) It is workable.

    Regards,
    KL


    "Ray" <[email protected]> wrote in message
    news:[email protected]...
    > KL,
    >
    > No, I mean the same syntax is applied to countif. It seems not workable!
    >
    > Ray
    >
    > "KL" <[email protected]> wrote in message
    > news:[email protected]...
    >>I guess you meant SUMIF. Don't think so, SUMIF takes only 3 arguments.
    >> Regards,
    >> KL
    >>
    >>
    >> "Ray" <[email protected]> wrote in message
    >> news:%[email protected]...
    >>> KL,
    >>>
    >>> Thanks for your useful suggestion. Is it possible to apply to countif
    >>> function as well?
    >>>
    >>> Thanks,
    >>>
    >>> Ray
    >>>
    >>> "KL" <[email protected]> wrote in message
    >>> news:%[email protected]...
    >>>> =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""),C1:C100)
    >>>>
    >>>> or a little slower:
    >>>>
    >>>> =SUMPRODUCT((A1:A100="week1")*(B1:B100="")*C1:C100)
    >>>>
    >>>> Regards,
    >>>> KL
    >>>>
    >>>>
    >>>> "Ray" <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>>I have three columns: a, b & c and need sum the figures on c if a =
    >>>>>week1 and b = empty. Can someone suggest a formula to resolve this
    >>>>>issue.
    >>>>>
    >>>>> Thanks,
    >>>>>
    >>>>> Ray
    >>>>>
    >>>>
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >




  9. #9
    Ray
    Guest

    Re: sumif with multiple conditions

    Thanks for all useful suggestions!

    Ray

    "Domenic" <[email protected]> wrote in message
    news:[email protected]...
    > Is this what you mean?
    >
    > =SUMPRODUCT(--(A1:A100="week1"),--(B1:B100=""))
    >
    > In article <#[email protected]>,
    > "Ray" <[email protected]> wrote:
    >
    >> KL,
    >>
    >> Thanks for your useful suggestion. Is it possible to apply to countif
    >> function as well?
    >>
    >> Thanks,
    >>
    >> Ray




+ 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