Compare two columns and match ALL recurring values, not just the first instance

Hi everybody...
I was looking for a way to compare values in two columns, identifying every duplicate value instance on a third column.
Searching around the forums, I found a solution, albeit a partial one; I am using this formula: =IFERROR("Duplicate in row "&MATCH($A,$B,0),"") along column C, to compare values between columns A and B. When applied, the formula will render the first instance where there is a duplicate; unfortunately MATCH will only register the first instance of the duplicated values.
For example:
The first value on column A is 'Apple'. On column B there are three instances for the value 'Apple', the formula identifies the first of these values, but not the remaining two.
I am not an advanced Numbers or Excel user, and the answer to this problem eludes me. I am attempting to compare columns that have no less than 1000 rows each, so you can imagine how, finding a solution to my problem would be really great.
Thanks in advance,
Pablo

Unfortunately I can't see your screenshot, but supposing you have a table like this:
Col1
Col2
1
3
Dupe
2
4
Dupe
3
5
Dupe
4
6
5
7
Then here is one way to flag the duplicates.
The formula in C2, copied down, is:
=IF(COUNTIF($A,$B2)≥1,"Dupe","")
Then filter on column C for 'Dupe', and copy the values in column B to wherever you need them.
SG

Similar Messages

  • I want to compare two columns and replace any equal values with the value in a specific cell

    I want to compare the numbers in two columns and replace all matching numbers in the second columns with the corresponding value from a cell in the same row as the matching number. 

    Me too.
    Barry

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • I would like to compare two field and then is it's true then the output will be the 2nd one

    Hello All,
    I am doing a mappong where i need to compare two field and then if there are equal the 2nd one should be the output and 2nd value will be using multiple segment.
    It's for shipment.
    Regards
    Rituparna

    Not sure if i understand correctly. But you are trying to compare one field with multiple occurrences of another field.
    You can make use of the node function "Use One as Many" and repeat the first value as many times as the second value.
    Please refer to below wiki.
    Explain node functions - Process Integration - SCN Wiki

  • How to see ALL purchases? (Not just the most recent 2000)

    So I got a new MacBook and I want to sync my iPod 5 to it. The problem with this is that it erases all of your iPod's information. I'm okay with this, I just want to be able to put all my songs back onto it. So I go to the iTunes store, click purchases, and it shows me the most recent 2000 purchases. Some of the music I want is farther back from 2000. How can I see ALL of my purchases, not just the most recent 2000, so that I can download them into my new music library?
    Another solution would be to locate this music in the iTunes store. When I find one of the albums that I have already purchased, I click on where it says "purchased" and it gives me these options: gift this item, tell a friend, share on facebook, share on twitter, and copy link. None of which gives me the option to download it again. What should I do?
    Any help is much appreciated!
    I have a MacBook Pro, iPod 5, and iTunes 12.0.1.26

    All of your content should be in iTunes on the computer or on a backup of your computer.
    Apple has never stated that iTunes in the Cloud and the ability to redownload content is a replacement for backing up your media.
    If you are unable to download it again and there is no backup, then it is gone.

  • Itunes no longer has my music in my music library. How do I transfer ALL my music (not just the purchased from Itunes) from my Ipod Touch back to my Itunes library on my computer.

    ITunes no longer has any of my music in my music library. How do I transfer all of my music ( not just the purchased music from ITunes) from my IPod Touch to Itunes library on my computer for syncing to other devices.

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Compare two columns and formate based on condition

    I know this dead horse has been beaten and I've read my fair share of threads and manuals to no avail..  I have two list that consist of movie titles, holiday movies to be exact.  I'm creating a holiday movie schedule which consist of three(3) columns...A,B and C.  Column A is the Date, Sat, November 17 2012 thru Monday, Dec 24, 2012.  Column C consist of a movie list divided into 2 sections with three subsections each.  Section 1 is animated movies and Section 2 is live action, each subsection, 1.1, 1.2, 1.3, 2.1, 2.2 and 2.3 are lists based on popularity with the kids...low, medium and high respectively.  And finally column B is the movie list relative the column A...the schedule.
    As I write a movie title in column B, I'd like the cell fill to be light red and the corresponding title in column C change to strike through font type.  This way I know I've added the movie title to the schedule...this comes in handy when I ask the kids to help so we have no duplicates in the schedule.  I'm assuming this would take a combination of; Conditional Formatting, cell formulas and perhaps an additional blank column for trigger results.
    I'm including the table, which include an experimental column I was working on.  As an FYI, this has been completed in Excel already, just hoping to get it done in Numbers.
    Thanks for any help anyone can give.
    Date
    Movie Name
    Class
    Sat, Nov 17, 2012
    Animated Christmas Movies
    TRUE
    Lowest Priority Animation
    TRUE
    Frosty Returns
    TRUE
    Sun, Nov 18, 2012
    The Nightmare Before Christmas
    Rudolph and Frosty's Christmas in July
    TRUE
    Rudolph the Red-Nosed Reindeer & the Island of Misfit Toys
    TRUE
    Rudolph's Shiny New Year
    TRUE
    Mon, Nov 19, 2012
    Nothing Like the Holidays
    TRUE
    Medium Priority Animation
    TRUE
    Jack Frost Animation
    TRUE
    Tue, Nov 20, 2012
    Home for the Holidays
    It's Christmas Time Again, Charlie Brown
    TRUE
    Christmas in South Park
    TRUE
    Cartoon Network Christmas Rocks
    TRUE
    Wed, Nov 21, 2012
    Planes, Trains and Automobiles
    Cartoon Network Christmas Yuletide Follies
    TRUE
    Cartoon Network Christmas Vol3
    TRUE
    Twas the Night Before Christmas
    TRUE
    Thu, Nov 22, 2012
    Planes, Trains and Automobiles
    The Little Drummer Boy
    TRUE
    TRUE
    Highest Priority Animation
    TRUE
    Fri, Nov 23, 2012
    Trapped in Paradise
    The Simpson's Christmas
    TRUE
    A Very Special Family Guy Freakin' Christmas
    TRUE
    Family Guy: Road To The North Pole
    TRUE
    Sat, Nov 24, 2012
    American Dad! The Most Adequate Christmas Ever
    TRUE
    A Charlie Brown Christmas
    TRUE
    The Nightmare Before Christmas
    FALSE
    Sun, Nov 25, 2012
    Die Hard
    Frosty the Snowman
    Die Hard 2
    Hooves of Fire
    How the Grinch Stole Christmas
    Mon, Nov 26, 2012
    Gremlins
    Santa Claus is Comin' to Town
    The Year Without a Santa Claus
    Rudolph, the Red-Nosed Reindeer
    Tue, Nov 27, 2012
    The Ice Harvest
    Live Action Christmas Movies
    Lowest Priority
    Wed, Nov 28, 2012
    Reindeer Games
    National Lampoon's Christmas Vacation 2: Cousin Eddie's Island Adventure
    Chasing Christmas
    The Nativity Story
    Thu, Nov 29, 2012
    Bad Santa
    Unaccompanied Minors
    Jingle All the Way
    Jack Frost Live
    Fri, Nov 30, 2012
    The Shop Around the Corner
    The Santa Clause 3: The Escape Clause
    The Santa Clause 2: The Mrs. Clause
    Sat, Dec 1, 2012
    The Bishop's Wife
    Medium Priority
    0
    Bad Santa
    Bad Santa
    Mixed Nuts
    Mixed Nuts
    Sun, Dec 2, 2012
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    Reindeer Games
    Reindeer Games
    The Ice Harvest
    The Ice Harvest
    The Shop Around the Corner
    The Shop Around the Corner
    Mon, Dec 3, 2012
    Miracle on 34th Street B&W
    The Bishop's Wife
    The Bishop's Wife
    Christmas in Connecticut
    Christmas in Connecticut
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    Tue, Dec 4, 2012
    Mixed Nuts
    Nothing Like the Holidays
    Nothing Like the Holidays
    Home for the Holidays
    Home for the Holidays
    The Family Man
    The Family Man
    Wed, Dec 5, 2012
    Scrooged
    Miracle on 34th Street 1994
    Miracle on 34th Street 1994
    Miracle on 34th Street B&W
    Miracle on 34th Street B&W
    Just Friends
    Just Friends
    Thu, Dec 6, 2012
    Just Friends
    Trapped in Paradise
    Trapped in Paradise
    0
    Highest Priority
    0
    Fri, Dec 7, 2012
    Miracle on 34th Street 1994
    Die Hard
    Die Hard
    Die Hard 2
    Die Hard 2
    Gremlins
    Gremlins
    Sat, Dec 8, 2012

    Hi Stephen,
    Both of these are solvable, and the Date solution cold be similar to that used for the 'stock list' in column C. The Movie Title solution is a different case, though.
    The stock list is edited only occasionally, so requiring the user to unhide column C, add a title, then rehide the column is workable.
    The same is true of the date list, so this too would work with the dates entered into a column that will be hidden, then copied into a visible column with a formula that introduced a detectable difference into the copied version, dependent on the weekday of each date. That difference would be used to trigger the conditional formatting of the cell containing the calculated date as text value. See the example below.
    But the (scheduled) Movie Title column doesn't fit nicely into that mode of operation, as it is edited quite often. As editing, usng the model described, requires making the data column visible, editing the entry (or entries) in that column, then rehiding the column, the hassle factor soon becomes insufferable, if nothing else.
    The first solution I considered (see earlier reply) is workable only if the the formatted table starts and remains the same size in all details (ie. individual row height) as the main table.Any change in row height in the main table not reflected in the auxiliary table immediately destroys the impression of formatting applying to the correct cells. With cells set to wrap text and varying lengths of movie titles, wrapped lines changing the height of individual rows is pretty much unavoidable.
    Best practice here would seem to be to use a separate column to flag the titles already in the "Class" list with a "√" (or flag those not in the list with an "X"), and use conditional formatting to change the background colour of the flagging cell.
    Here's a sample, using "W" to flag the weekend dates in the new column B, and "√" to flag the titles that are on the list already in the new column D.
    I've added two titles to the weekend date, November 18. One is non-existent (as far as I know), so it doesn't appear in the list and doesn't get flagged; the other is chosen from a visible part of the list to show the highlighting of the title in that list. Column "C" (now column "F" due to the insertion of two new columns) is hidden. G, labelled .Class, is the calculated column (D) from the previous message.
    Regards,
    Barry

  • Firefox crashed and when opened, it opened with just the first 25 tabs only. Also, I sessionrestore.js does not exist. Just sessionstore bak files.

    Hello, when it crashed, I did not get the normal window to select tabs to restore. It just opened the first 25 or so tabs. I looked in other forums about the sessionrestore.js file and searched for it but it doesn't seem to exist. I did this:
    copy and paste this: %APPDATA%\Mozilla\Firefox\Profiles\ into your adress bar in windows explorer. It will bring you to your Firefox profile folder. Enter it, and search for a file called "sessionrestore.js", then right-click it and go to properties. The last tab in the 'properties' window is called "previous versions", click on it, and restore your file to a previous date saved on a System Restore storepoint. That's it! When you open Firefox again all your previous tabs will be there.
    MY system restore point is a couple of weeks ago and a lot of tabs were created since then.
    Thanks!

    Hi,
    Thank you for your message as well. That option in about:config, if it is set to false the oops page will not show up, if you would like this to set it to true for future recoveries if you would like.
    This previous question has a few options to restore the 150 tabs, however I am not sure if it will work if the sessionrestore.js file is not there:
    [https://support.mozilla.org/en-US/questions/975598]
    The option show tabs from last time may have a limit, but I am not sure, let me check if there is a default.
    This was pretty handy as well when I was looking: [http://mzl.la/MCnd4M] That kb shows that it may just be as easy as renaming the .bak file to .js, however please save a copy of the file before renaming it so that it does not become corrupt. Because it crashed it cannot be sure that it is not corrupt.
    The .bak file will only be from the last time firefox was open. Each time firefox is opened the file will be overwritten, so just to warn you the 150 tabs may not be there if you have closed it since it reopened after the crash.
    Hope this helps!

  • How do I view all my movies, not just the ones I have downloaded

    I have a few movies I downloaded off the Itunes store but I cant seem to find them on my itunes movie  list. All that is listed are the movies I have downloaded to the hard drive and not  the ones I have in the cloud. THe movies show up on my other devices. 

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • How to compare two columns and provide a report

    hi guys any idea on this one i have a table in apex
    which looks like this                                                Create table Assessments ( USER_ID varchar(40) , Assessed number ) ;
                                                                                         CREATE OR REPLACE TRIGGER "TABLE_IMP_T1"
                                                                                          BEFORE
                                                                                          insert on "TABLE_IMP"
                                                                                         for each row
                                                                                         begin
                                                                                         :NEW.USER_ID := nvl(v('APP_USER'),USER);
                                                                                         :NEW.ASSESSED := ('1');
                                                                                         end;
    The data in this table looks like after some inserts                          USER_ID                    ASSESSED
                                                                                                                          user1@mail                      1
                                                                                                                          user2@mail                       1
                                                                                                                          user3@mail                       2
                                                                                                                          user4@mail                       7
    Then i have another table that has fixed values in it which is called    Assessments_complete  the data in this table looks like                 USER_ID             Assessments_2do 
                                                                                                                                                                                                                                                       user1@mail                       1
                                                                                                                                                                                                                                                        user2@mail                      1
                                                                                                                                                                                                                                                        user3@mail                      3
                                                                                                                                                                                                                                                        user4@mail                     10
    What id like to do is create a report in apex that compares the to tables  and would have columns in the report to shows the USER_ID ,  ASSESSED  ,  Completed   so it would look something like 
    USER_ID                      ASSESSSED                    COMPLETE
    USER1@MAIL               1                                         yes
    USER2@MAIL               1                                         yes
    USER3@MAIL               2                                         no
    USER4@MAIL               7                                         no
    So why it shows no for user3@mail and user4@mail is because there Assessments 2do is not he same as Assessed 
    Any ideas guys

    SCW,
    I'm sure there is a clever way to cascade functions to avoid adding an auxiliary column in your practice table, but to me it wouldn't be worth the aggravation. I would add a column that concatenates Columns A & B, AWG & mils. This column can be anywhere and would be Hidden. Let's say your new column is Column N.
    In Column N, fill the body rows with:
    =A&"-"&B
    As good Numbers programming form would indicate, let's name the Practice Table Practices and only put the practices in that table. In another table where you do the lookup, let's call it Program, we will have the calculation/lookup.
    Based on your example, I'd guess that AWG may be in Column D and mils in Column E of your Program table, and the Soak lookup in Column F. If I'm wrong, adjust the column id.
    In Column F, write:
    =OFFSET(Practices::I$1,MATCH(D&"-"&E, Practices::N,0)−1, 0)
    The hyphen in the concatenated representation of the combination of AWG and mils is just tp make it more readable.
    As I'm sure you know, you could use other approaches, but since I had you put your aux column at the end of your Practices table, OFFSET with MATCH is a clean approach. INDEX could be used too.
    Here's an illustration:
    Regards,
    Jerry

  • I accidently linked two IPhones and lost all contacts.  I removed the one IPhone from the account but everytime one person corrects contacts, it effects both IPhones.  How do I stop this from happening?

    see question above

    Welcome to the Apple Community.
    You can only restore them from a backup. This has occurred because you are sharing an iCloud account. ideally you should each have your own iCloud account, that way you can each manage your own mail, contacts, calendars, documents etc and avoid unintentional deletions and unwanted editing. If there is information you wish to share between you, this can be done with a secondary account.
    Having separate iCloud accounts, doesn't mean you have to have separate iTunes accounts, so whilst you keep your personal data separate, you can continue to share music, apps, books, TV shows, movies etc.

  • I've just bought an new laptop and downloaded itunes. I plugged in my iphone and upgraded to the newest itunes/ synched etc. Now I have no music or apps on my phone. The contacts photos and texts all seem fine. Just the itues stuff that's missing.

    I have just bought a new computer and downloaded itunes. I plugged in my iphone and upgraded to the newest itunes/ synched etc. Now have no music or apps on the phone. Contacts, texts, photos all fine. Just all itunes content that is missiing. It isn't showing in my itunes account on my computer or on my phone. Any idea how to get it back? (No point synching with itunes on my computer as it isn't there either!)

    I suggest copying your entire iTunes library to your new computer, also you might want to copy the photos you want to save. Then sync your device to the new iTunes and copy over your music, documents and photos that you want.
    If you are no longer going to use the old computer you should open up iTunes on the old computer and use the menu to deauthorize it. Be sure to use the same iTunes menu on your new computer to Authorize the new one.

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • Compare two tables and log the difference

    Hi,
    I want to compare two tables and log the difference in new table with the fields as (old value,new value, column name). The column name should be the changes value column

    Can you show an example?
    SELECT Foo.*, Bar.*
       FROM Foo
            FULL OUTER JOIN
            Bar
            ON Foo.c1 = Bar.c1
               AND Foo.c2 = Bar.c2
               AND Foo.cn = Bar.cn
     WHERE Foo.key IS NULL 
        OR Bar.key IS NULL; 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for