+ Reply to Thread
Results 1 to 4 of 4

Comparing ranges to see if duplicate values occur

  1. #1
    Registered User
    Join Date
    10-20-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2202 (Build 14931.20858 Click-to-Run)
    Posts
    51

    Comparing ranges to see if duplicate values occur

    Hi guys,

    I've attached file. I've two sheets, each with panels from new and old aicraft type. In the new panels there are values such as '151EZ' that is not in the old panels sheet.

    I need a list of all the new panels and was wondering if there is a quicker way of doing this as there are 950 old panels to check.

    Regards,

    FP
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Comparing ranges to see if duplicate values occur

    Try this:

    1. Make a note of the range of the old panels, with the sheet name - in your sample file, this is 'Old Panels'!$A$1:$A$950.
    2. Go to the New Panels sheet and select the entire range of the new panels - in your sample file, this is A1:BE51.
    3. On the Home tab click Conditional Formatting then New Rule then Use a formula to determine which cells to format.
    4. Enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If your actual range starts in another cell, not A1, use that cell ref instead.
    5. Choose the formatting you want (yellow fill, red text, whatever you want).
    6. Click OK.

    Now all the cells which have codes which do not exist on the Old Panels list will be highlighted.

    (A word of warning - sometimes Excel does something weird and changes the cell reference you enter in CF to some really-far-away cell like XDA1048527. If you do the above and all your cells are highlighted, check the CF rule, using Manage Rules, and it's probably this which has happened - change the weird cell ref to A1 again and click Apply.)

    I've attached your sample file with this working - if this is your actual file, then you're in luck and the work's already done .

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    10-20-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2202 (Build 14931.20858 Click-to-Run)
    Posts
    51

    Re: Comparing ranges to see if duplicate values occur

    Your solution has worked perfectly, and thankfully I seem to only need to add 4 panels

    Thank you Aardigspok

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Comparing ranges to see if duplicate values occur

    You're welcome, glad I could help and thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Counting if two ranges occur between two times
    By elleb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2018, 06:19 PM
  2. Macro to add row if duplicate occur in a data table
    By JonesyCC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2017, 10:21 AM
  3. Comparing values within separate ranges in the same worksheet
    By Excellent89 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-21-2015, 07:10 PM
  4. Replies: 3
    Last Post: 11-26-2014, 07:12 AM
  5. Replies: 1
    Last Post: 08-02-2013, 09:58 PM
  6. Replies: 3
    Last Post: 06-25-2011, 06:42 AM
  7. [SOLVED] Comparing two ranges and extracting non duplicate data
    By Knut Dahl in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2005, 09:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1