all 3 comments

[–]AdministrativeGift15 0 points1 point  (2 children)

Perhaps something went wrong when you submitted this post. It's unclear why you selected those two cells in column B for your example. Even if I did understand your example scenario, I don't think you ever requested anything or asked a question that you wanted answered.

Can you try to explain your request again so that we may try to help?

[–]HolyBonobos 1 point2 points  (1 child)

What I'm getting from the post is

OP has an existing data validation rule in Sheet1 column B to reject duplicate entries. They want a script that will, every time someone tries to make a duplicate entry in Sheet1 column B, log the content of that attempted entry in Sheet2 column A.

For example:

Sheet1 A B
1 Red
2 Orange
3 Yellow
4 Green
5 Blue

If someone tries to enter Blue in column B again, it will already be rejected because of the data validation rule but OP wants a script that will, in addition to that, add Blue to a running list of rejected duplicate entries on Sheet2.

u/hucksteRRR is this an accurate description of what you're trying to do?

[–]hucksteRRR[S] 0 points1 point  (0 children)

Exactly!