I have a spreadsheet with entries in column F that could be duplicates later on in F. I'm looking to make something that does something like this pseudocode:
While Ax is not empty
If value in Gx is empty
If cell Ex is identical to other cell Ey
OR
If cell Fx is identical to other cell Fy
THEN
Mark Gy as duplicate
italics row y
Any recommendations on making this work using Google's built in app scripting?
Disclaimer: I'm not familiar with JS but I'm trying.
You don't need JS for this. You can do it with the built-in spreadsheet formulas.
It sounds like you want a similar answer that I gave to this question, with the difference being that you are checking two columns instead of just one.
You want this:
The key thing to notice is the use of the
AND
forumla.This will fill down and look like this in subsequent rows:
And these are the results using your spreadsheet data as an example. This is assuming the formula was inserted into the
Duplicate?
column (C2) and filled down: