Forum Discussion
zayn_mir
Jan 27, 2023Copper Contributor
Excel Formula
Hi I need help, I need the emails of different people with the same domain to be assigned to 1 Agent. If there are more than 5 people ( I want the next 5 ) to be assigned to a different Agent.
OliverScheurich
Jan 27, 2023Gold Contributor
=IF(MOD(SUMPRODUCT(N(RIGHT($C$2:C2,3)="uvw")),5)=0,"Agent ""IENT(SUMPRODUCT(N(RIGHT($C$2:C2,3)="uvw")),5),"Agent ""IENT(SUMPRODUCT(N(RIGHT($C$2:C2,3)="uvw")),5)+1)
You can try this formula if there is only one domain ("uvw" in the example) in your data.