Hi,
I have several large data files consiting of contract/account information containing each person named on the account and their role. For each contract/account I need to test that any person in a "beneficiary" role is the same person named in either one of two other roles on the account. I have created the below formula which correctly tests what I need but the processing time is significant (20 to 40 minutes) when I'm going through a large file (e.g. 50,000 rows). I'm looking for ways to do this more efficiently.
=IF(K2="Beneficiary",SUMPRODUCT(--(Contract_Num=A2),--(Name=S2),--((Role="Annuitant")+(Role="Designated Life"))),"")
Is there any way to structure this, or any other formula, so that the Names and Relation range is limited to only the rows where the Contract_Num=A2 condition is true? Hoping that would limit processing time - Matching across a few rows at a time vs the entire data set as the formula is copied down the rows.
Thanks for any advice.
I have several large data files consiting of contract/account information containing each person named on the account and their role. For each contract/account I need to test that any person in a "beneficiary" role is the same person named in either one of two other roles on the account. I have created the below formula which correctly tests what I need but the processing time is significant (20 to 40 minutes) when I'm going through a large file (e.g. 50,000 rows). I'm looking for ways to do this more efficiently.
=IF(K2="Beneficiary",SUMPRODUCT(--(Contract_Num=A2),--(Name=S2),--((Role="Annuitant")+(Role="Designated Life"))),"")
Contract_num - Column A: Contains the contract/Account number - there are multiple rows per account (anywhere from 4 to 10 rows)
Name - Column S: Name of the person acting in that role. One person can be more than one role.
Role - Column K: Contains the role. Each role/name combo is a separate row.
All the other columns are irrelevant for this task.
Name - Column S: Name of the person acting in that role. One person can be more than one role.
Role - Column K: Contains the role. Each role/name combo is a separate row.
All the other columns are irrelevant for this task.
Is there any way to structure this, or any other formula, so that the Names and Relation range is limited to only the rows where the Contract_Num=A2 condition is true? Hoping that would limit processing time - Matching across a few rows at a time vs the entire data set as the formula is copied down the rows.
Thanks for any advice.