Results 1 to 6 of 6

Problem with IF statement within a COUNTIF statement

Threaded View

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    Durham, NC
    Posts
    10

    Problem with IF statement within a COUNTIF statement

    Hello,

    I am trying to have a cell in sheet "Summary" count the number of cells in column DX of sheet "Analyses" that are greater than 0, provided that the value in column A of "Analyses" corresponds with the value in B8 of sheet "Summary."

    (In "Analyses," there are 106 subjects, each taking up 64 rows. So, columns 1-64 correspond to Subject 1, columns 65-128 correspond to subject 2, etc. In column DX, each subject has 64 values that are either 0 or greater than 0. In "Summary," each subject has one row that summarizes the 64 trials. I want a single cell in the "Summary," sheet to reflect the number of times each subject produces a value greater than 0 in column DX of "Analyses.")

    I tried using this formula, but it did not work correctly:

    =COUNTIF(IF(Analyses!$A$1:$A$10000=Summary!B8,Analyses!$DX$1:$DX$10000,""),">0")

    (Summary!B8 = 1, so I am trying to calculate the number of values in DX that are greater than 0 only for subject 1.)

    When I press enter, this yields a value of 384. This is impossible, given that subject 1 only has 64 possibilities of yielding a value greater than 0. Subject 1 has 2 values in column DX that are greater than 0.

    I tried making this an array formula by pressing Shift+Ctrl+Enter, and that just gives me a #VALUE! error.

    What am I doing wrong?

    Thanks in advance!
    Last edited by girlofscience; 04-22-2009 at 10:20 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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