+ Reply to Thread
Results 1 to 5 of 5

SUMIF function

  1. #1
    Jo Davis
    Guest

    SUMIF function

    Here is my problem

    I want to sum the values in a column if they meet two criteria, see below:

    A B C D

    Site Vehicle Value 4 Wheeler Bardon

    Bardon 4 Wheeler 1000
    Croft 4 Wheeler 2000

    Bardon 4 wheeler 3000



    In column D I want it to sum the value column if A equals Bardon and B
    equals 4 wheeler. I have done this with one column using the following:


    =SUMIF(T4:T47,"4 wheelers",F4:F47)

    can I use the AND function?


  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Something like
    =SUMPRODuct((B4:B47="4 wheelers")*(A4:A47="Bardon"),F4:F47)

    Regards

    Dav

  3. #3
    Guest

    Re: SUMIF function

    Hi
    Try something like this:
    =SUMPRODUCT(--(A2:A100="Bardon"),--(B2:B100="4 Wheeler"),(C2:C100))
    This function cannot use full columns as ranges and the ranges must all be
    the same size.

    Hope this helps.
    Andy.

    "Jo Davis" <[email protected]> wrote in message
    news:[email protected]...
    > Here is my problem
    >
    > I want to sum the values in a column if they meet two criteria, see below:
    >
    > A B C D
    >
    > Site Vehicle Value 4 Wheeler
    > Bardon
    >
    > Bardon 4 Wheeler 1000
    > Croft 4 Wheeler 2000
    >
    > Bardon 4 wheeler 3000
    >
    >
    >
    > In column D I want it to sum the value column if A equals Bardon and B
    > equals 4 wheeler. I have done this with one column using the following:
    >
    >
    > =SUMIF(T4:T47,"4 wheelers",F4:F47)
    >
    > can I use the AND function?
    >




  4. #4
    Jo Davis
    Guest

    Re: SUMIF function

    Thanks that works a treat!!

    "Andy" wrote:

    > Hi
    > Try something like this:
    > =SUMPRODUCT(--(A2:A100="Bardon"),--(B2:B100="4 Wheeler"),(C2:C100))
    > This function cannot use full columns as ranges and the ranges must all be
    > the same size.
    >
    > Hope this helps.
    > Andy.
    >
    > "Jo Davis" <[email protected]> wrote in message
    > news:[email protected]...
    > > Here is my problem
    > >
    > > I want to sum the values in a column if they meet two criteria, see below:
    > >
    > > A B C D
    > >
    > > Site Vehicle Value 4 Wheeler
    > > Bardon
    > >
    > > Bardon 4 Wheeler 1000
    > > Croft 4 Wheeler 2000
    > >
    > > Bardon 4 wheeler 3000
    > >
    > >
    > >
    > > In column D I want it to sum the value column if A equals Bardon and B
    > > equals 4 wheeler. I have done this with one column using the following:
    > >
    > >
    > > =SUMIF(T4:T47,"4 wheelers",F4:F47)
    > >
    > > can I use the AND function?
    > >

    >
    >
    >


  5. #5
    Guest

    Re: SUMIF function

    Thanks for the feedback - glad you're sorted!

    Andy.

    "Jo Davis" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks that works a treat!!
    >
    > "Andy" wrote:
    >
    >> Hi
    >> Try something like this:
    >> =SUMPRODUCT(--(A2:A100="Bardon"),--(B2:B100="4 Wheeler"),(C2:C100))
    >> This function cannot use full columns as ranges and the ranges must all
    >> be
    >> the same size.
    >>
    >> Hope this helps.
    >> Andy.
    >>
    >> "Jo Davis" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > Here is my problem
    >> >
    >> > I want to sum the values in a column if they meet two criteria, see
    >> > below:
    >> >
    >> > A B C D
    >> >
    >> > Site Vehicle Value 4 Wheeler
    >> > Bardon
    >> >
    >> > Bardon 4 Wheeler 1000
    >> > Croft 4 Wheeler 2000
    >> >
    >> > Bardon 4 wheeler 3000
    >> >
    >> >
    >> >
    >> > In column D I want it to sum the value column if A equals Bardon and B
    >> > equals 4 wheeler. I have done this with one column using the following:
    >> >
    >> >
    >> > =SUMIF(T4:T47,"4 wheelers",F4:F47)
    >> >
    >> > can I use the AND function?
    >> >

    >>
    >>
    >>




+ 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