I have a dataset with the following data:
account_number,master_code,score
100000023,UL189PU,1
100000025,UK120PU,1
100000026,AAL004PU,1
100000026,UL221PU,1
100000026,YHL003PU,1
100000034,UL246PP,1
100000043,1198112CS,1
100000060,182112JS,1
100000060,996211CS,1
100000060,AAL012PU,1
100000074,UI136PU,1
100000074,UK131PU,1
100000074,UL178SU,2
I've started a master loop where I loop through the accounts.
I now need to do a sub loop and compare this account to the rest of the accounts in the dataset and to check whether the item_codes match or not.
i.e.
If account_number_master_loop = account_number_sub_loop Then
If item_code_master_loop = item_code_sub_loop Then
'Not sure what type of variable this should be
variable = account_number_sub_loop,item_code_sub_loop,score
Else
variable = account_number_sub_loop,item_code_sub_loop,0
End If
End If
What would be the best way to achieve this?
Thanks.