I am totally confused what to do in this scenario. Any help would be great.
I have three column and in first column I have Name with duplicate entry and for that I have another column as Role and its respective value (PRIMARY / SECONDARY). Now I am trying to get status Value Yes or No on the basis of Column A and B. If for Name in column A has Role as PRIMARY then Status should be Yes otherwise No. Means if in Column A Name has no Primary Value for any of the record then the Status should be NO. Below is the example for reference.
Name Role Status
C7E748588B6D PRIMARY Yes
C7E748588B6D SECONDARY Yes
C7E748588B6D SECONDARY Yes
C7E748588B6D SECONDARY Yes
C7E748588B6D SECONDARY Yes
5E0463D34209 SECONDARY No
5E0463D34209 SECONDARY No
5E0463D34209 SECONDARY No
5E0463D34209 SECONDARY No
46C14AEC2EB5 PRIMARY Yes
46C14AEC2EB5 SECONDARY Yes
46C14AEC2EB5 SECONDARY Yes
46C14AEC2EB5 SECONDARY Yes
46C14AEC2EB5 SECONDARY Yes
A6C883388E3D PRIMARY Yes
A6C883388E3D SECONDARY Yes
A6C883388E3D SECONDARY Yes
Thanks.