+ Reply to Thread
Results 1 to 4 of 4

Double Criteria

  1. #1
    Registered User
    Join Date
    06-29-2006
    Posts
    8

    Double Criteria

    I wish to check two columns of data for the purpose of counting.
    1st column is either "Inpatient" or "Outpatient". The 2nd is either "Cardio", "General".

    I want to count how many "Inpatient" are "Cardio"

    My formula looks like this -
    SUM(IF((G55:G119="Inpatient")+(I55:I119="CARDIO"),1,0))

    The result is #VALUE

    What gives?

    Currently, I'm using a PivotTable that works ok but I'de rather use a formula so I can easily format a nice looking table.

    Can anyone help me?

    Drandon

  2. #2
    Don Guillett
    Guest

    Re: Double Criteria

    SUMproduct((G55:G119="Inpatient")*(I55:I119="CARDIO"))

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "DRANDON" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I wish to check two columns of data for the purpose of counting.
    > 1st column is either "Inpatient" or "Outpatient". The 2nd is either
    > "Cardio", "General".
    >
    > I want to count how many "Inpatient" are "Cardio"
    >
    > My formula looks like this -
    > SUM(IF((G55:G119="Inpatient")+(I55:I119="CARDIO"),1,0))
    >
    > The result is #VALUE
    >
    > What gives?
    >
    > Currently, I'm using a PivotTable that works ok but I'de rather use a
    > formula so I can easily format a nice looking table.
    >
    > Can anyone help me?
    >
    > Drandon
    >
    >
    > --
    > DRANDON
    > ------------------------------------------------------------------------
    > DRANDON's Profile:
    > http://www.excelforum.com/member.php...o&userid=35901
    > View this thread: http://www.excelforum.com/showthread...hreadid=556923
    >




  3. #3
    Registered User
    Join Date
    06-29-2006
    Posts
    8

    Re: Double Criteria

    Thanks man, that works outstanding!

    Drandon

  4. #4
    Don Guillett
    Guest

    Re: Double Criteria

    glad to help

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "DRANDON" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks man, that works outstanding!
    >
    > Drandon
    >
    >
    > --
    > DRANDON
    > ------------------------------------------------------------------------
    > DRANDON's Profile:
    > http://www.excelforum.com/member.php...o&userid=35901
    > View this thread: http://www.excelforum.com/showthread...hreadid=556923
    >




+ 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