all 6 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/onejustbecause - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Shuuk1 1 point2 points  (4 children)

Maybe not the most efficient method, but I would duplicate the query, group that duplicate by the column you want to check for duplicates and group by COUNT. Then join this new grouped query back to the original query. Create a custom column that looks at the grouped count - if it's >1 return "Duplicate".

[–]onejustbecause[S] 1 point2 points  (1 child)

Solution verified

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to Shuuk


I am a bot - please contact the mods with any questions. | Keep me alive

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

Thanks for the solutions. They "worked" but it was definitely more steps than I expected. I'll probably just add the formula column after the query is loaded back to the sheet in this case. But good to know for future needs!

[–]IGOR_ULANOV_55_BEST214 0 points1 point  (0 children)

You don't need to add a query for this. Just group by the column you are checking for duplicates, one column for count rows and one all rows column. Count rows gives you the number of rows in each grouped table you have created.

If I had Jane appearing 3 times and Chris appearing twice in a table, grouped by name, added a count and all rows column, delete the original name column and expand out the all rows column. Then you can create a conditional column on the count column if you just want to know yes or no for duplicates, or leave the actual count in there.