Hello! I appreciate in advance anyone who helps me with this.
In this example, I have one sheet with each individual charge from different doctors. Column A is the doctor, column B is the charge code, and column C is the claim number. Since a claim can have multiple charge codes, there are many duplicate claim numbers in column C.
What I am trying to do on a separate sheet is create a formula to pull the number of unique claims for each doctor. I came across the following formula on another site:
=SUM(IF(FREQUENCY(IF(LEN('reference sheet'!C:C)>0,MATCH('reference sheet'!C:C,'reference sheet'C:C,0),""), IF(LEN('reference sheet'C:C)>0,MATCH('reference sheet'C:C,'reference sheet'C:C,0),""))>0,1))
This formula successfully returns the number of unique claim numbers, but what I need to do now is essentially insert "if column A is Dr. Smith". I have tried and tried to figure out how and where to insert this variable, but I have not figured it out. I am wondering now whether the formula above will even work for this, or if I need to use a DCOUNT/DCOUNTA/COUNTIF/COUNTIFS or something like that.
Thanks again for any and all help!
Bookmarks