I have a dilemma. I have a spreadsheet I put together for my research. I have each subject assigned to a unique ID # (in column A). In one worksheet I have complications and each row is a complication that occurred, so there may be multiple rows for any given subject ID #.
I had created a worksheet to show results and have been using the following formula to count unique subjects that had a complication based on criteria in two other columns.
=COUNT(1/FREQUENCY(IF(('Complications'!E2:E135=1)*('Complications'!H2:H135=1),MATCH('Complications'!A2:A135,'Complications'!A2:A135,0)),ROW('Complications'!A2:A135)-MIN(ROW('Complications'!A2:A135)+1)))
The problem I have run into is that when I sort my complications worksheet the above formula produces a different answer each time.
I would appreciate any insight you might have.
Thanks!
I had created a worksheet to show results and have been using the following formula to count unique subjects that had a complication based on criteria in two other columns.
=COUNT(1/FREQUENCY(IF(('Complications'!E2:E135=1)*('Complications'!H2:H135=1),MATCH('Complications'!A2:A135,'Complications'!A2:A135,0)),ROW('Complications'!A2:A135)-MIN(ROW('Complications'!A2:A135)+1)))
The problem I have run into is that when I sort my complications worksheet the above formula produces a different answer each time.
I would appreciate any insight you might have.
Thanks!