+ Reply to Thread
Results 1 to 4 of 4

using sumif & countif to sort multiple cells

  1. #1
    floridasurfn
    Guest

    using sumif & countif to sort multiple cells

    i have this information:

    A1= YES B1=YES C1=10
    A2= YES B2=NO C2=15
    A3= NO B3=NO C3=25
    A4=YES B4=NO C4=6
    A5=YES B5=YES C5=11

    I would like to sumif, range a1:a5 =yes & range b1:b5 =yes, then sum range
    c1:c5
    Can a formula check ranges and return (21) which is sum of c1 & c5

  2. #2
    Ken Wright
    Guest

    Re: using sumif & countif to sort multiple cells

    =SUMPRODUCT(--(A1:A5="YES"),--(B1:B5="YES"),C1:C5)

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "floridasurfn" <[email protected]> wrote in message
    news:[email protected]...
    > i have this information:
    >
    > A1= YES B1=YES C1=10
    > A2= YES B2=NO C2=15
    > A3= NO B3=NO C3=25
    > A4=YES B4=NO C4=6
    > A5=YES B5=YES C5=11
    >
    > I would like to sumif, range a1:a5 =yes & range b1:b5 =yes, then sum range
    > c1:c5
    > Can a formula check ranges and return (21) which is sum of c1 & c5





  3. #3
    floridasurfn
    Guest

    RE: using sumif & countif to sort multiple cells

    thanks ken this worked perfect

    "floridasurfn" wrote:

    > i have this information:
    >
    > A1= YES B1=YES C1=10
    > A2= YES B2=NO C2=15
    > A3= NO B3=NO C3=25
    > A4=YES B4=NO C4=6
    > A5=YES B5=YES C5=11
    >
    > I would like to sumif, range a1:a5 =yes & range b1:b5 =yes, then sum range
    > c1:c5
    > Can a formula check ranges and return (21) which is sum of c1 & c5


  4. #4
    Ken Wright
    Guest

    Re: using sumif & countif to sort multiple cells

    You're welcome :-)

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "floridasurfn" <[email protected]> wrote in message
    news:[email protected]...
    > thanks ken this worked perfect
    >
    > "floridasurfn" wrote:
    >
    > > i have this information:
    > >
    > > A1= YES B1=YES C1=10
    > > A2= YES B2=NO C2=15
    > > A3= NO B3=NO C3=25
    > > A4=YES B4=NO C4=6
    > > A5=YES B5=YES C5=11
    > >
    > > I would like to sumif, range a1:a5 =yes & range b1:b5 =yes, then sum

    range
    > > c1:c5
    > > Can a formula check ranges and return (21) which is sum of c1 & c5




+ 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