Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I find duplicates in Numbers?

How can I find duplicates in Numbers?

Do I search each field or is there a short cut?

iMac (21.5-inch Mid 2011), OS X Mountain Lion (10.8.4)

Posted on Jul 19, 2013 9:47 AM

Reply
66 replies

Mar 26, 2014 3:45 PM in response to writer_in_virginia

Writer,


to fill the formula down enter the fomula in cell D2 like we just discussed. then hit the enter key or click the green check box to finshing editing the formula.


now select cell D2 (single click), copy


now select column D (by clicking the "D" at the top of the column), then hold the <command> key and click cell D (to unselect the header), paste

Dec 4, 2015 1:57 PM in response to dluvisi

dluvisi wrote:


SG,


Sorry I am having issues running the script. I keep getting a "Select some non-blank cells and try again."



Hi Damon,


There are several scripts in this thread but I think you must mean Copy Distinct. I think what is happening is that you are trying to run the script without first selecting cells with values in a table. Select the cells first, then click the run button. Then click once in a destination cell and type command-v to paste.


A link to download the Service is here. Double-clicking the downloaded .workflow package and giving permission in System Preferences > Security & Privacy will install it in your Numbers > Services menu. To run it there, you first select the cells with values, select Copy Distinct from the Numbers > Services menu, click a destination cell once, and type command-v to paste.


SG

Mar 25, 2016 5:44 PM in response to SGIII

Wow, I thought Numbers didn't have a macro language to go with it? How/where is that code executed? Where can one learn the syntax of the language? I am an old programmer. You know, Fortran at NASA and Ada for air traffic control systems. Then I became a manager and you know how that goes. Thanks in advance.

Mar 25, 2016 6:28 PM in response to Grihfen

Grihfen wrote:



Is there a way to find duplicates from all the sheets in this one Numbers file?


I can't think of a specific use case where one would want to check every cell in every table in every sheet of the front document and flag it if its value is the same as any other cell in that whole document, but anyway this script will do that (it will take a while to run).


SG


tell application "Numbers"

tell front document

set vList to {}

repeat with s in sheets

repeat with t in s's tables

repeat with c in t's cells

if vList contains (c's value as text) then set c's text color to "red"

copy c's value as text to vList's end

end repeat

end repeat

end repeat

end tell

end tell

Sep 22, 2016 8:43 AM in response to SGIII

First let me say, this script is wonderful and has saved me countless hours over the last year or so. Thank you so much for sharing it!


However, Sierra seems to have broken it--at least for me--and I've had no luck debugging, (probably time I learn to AppleScript properly). As best as I can tell, it runs the initial tell just fine, selecting the range I set, and gets that to the clipboard, but the deduplicate never occurs, so I end up with my original list. Any help would be wonderful, and again thank you so much for all you do on this board.

How can I find duplicates in Numbers?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.