+ Reply to Thread
Results 1 to 4 of 4

Help Counting

  1. #1
    SS
    Guest

    Help Counting

    I am trying to have a cell count based on the conditions of two other cells
    on a different sheet. Lets say my sheet names are Data and Stats, and I need
    a cell in my Stats page to only count cells which are on the Data sheet range
    C2:C450 and equal to "ACompany" AND cells which are on the Data sheet range
    G2:G450 and not null.

    I know this should be easy, but I haven't worked in excel in a long time. A
    followup to this question would be the same thing except the cells G2:G450
    would be between two specified dates.

    Many Thanks

  2. #2
    JE McGimpsey
    Guest

    Re: Help Counting

    One way:

    =SUMPRODUCT(--('Data'!C2:C450="ACompany"),--('Data'!G2:G450<>""))


    In article <[email protected]>,
    SS <[email protected]> wrote:

    > I am trying to have a cell count based on the conditions of two other cells
    > on a different sheet. Lets say my sheet names are Data and Stats, and I need
    > a cell in my Stats page to only count cells which are on the Data sheet range
    > C2:C450 and equal to "ACompany" AND cells which are on the Data sheet range
    > G2:G450 and not null.
    >
    > I know this should be easy, but I haven't worked in excel in a long time. A
    > followup to this question would be the same thing except the cells G2:G450
    > would be between two specified dates.
    >
    > Many Thanks


  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    So you are trying to count the number of times that both conditions are met?

    =SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G450>0))

    For between dates.

    =SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G450>DATE(2006,3,1))*(Data!G2:G450<DATE(2006,3,13)))


    HTH

    Steve

  4. #4
    SS
    Guest

    Re: Help Counting

    Great help guys!
    This is the first time I have used this forum and was suprised with the fast
    and helpful responses.
    Best Regards,
    SS

    "SteveG" wrote:

    >
    > So you are trying to count the number of times that both conditions are
    > met?
    >
    > =SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G450>0))
    >
    > For between dates.
    >
    > =SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G450>DATE(2006,3,1))*(Data!G2:G450<DATE(2006,3,13)))
    >
    >
    > HTH
    >
    > Steve
    >
    >
    > --
    > SteveG
    > ------------------------------------------------------------------------
    > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > View this thread: http://www.excelforum.com/showthread...hreadid=522283
    >
    >


+ 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