Closed Thread
Results 1 to 12 of 12

Check for duplicates horizontally in Excel

  1. #1
    Registered User
    Join Date
    02-08-2018
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Check for duplicates horizontally in Excel

    Hi all,

    I would like to check for duplicates values horizontally

    Example: I need to check on 1st June to see if there are more than 1 employee going down to an event on that particular day.
    I want to filter out that only 1 person is allowed at 1 event on 1st June.

    Is there any formula to use or any way that i can check/trace this?

    I try conditional formatting but it also checks for the rest of the month like 2nd June onwards. So i doubt that would work for my scenario.

    Thanks in advance.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Check for duplicates horizontally in Excel

    Hi julian.wee. Welcome to the forum.

    Context will help us understand better. Try uploading a small Excel workbook sample.

    If you are not familiar with how to do this:

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Registered User
    Join Date
    02-08-2018
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: Check for duplicates horizontally in Excel

    Hi, Thank you!

    I have uploaded it.
    For example, On 1st June, how do i flag out Person B and Person A as they are both going to MHC on the same day.
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Check for duplicates horizontally in Excel

    I am not sure I know what you mean by "flag out". This formula in columns M:R returns the names of Persons where more than one are going to the same event on the same day.

    Enter in M4. Fill down and across column R.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-08-2018
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: Check for duplicates horizontally in Excel

    Hi,
    Thanks alot!
    Tho the formula seems a little complicated but it worked like a charm!
    but could you explain the aggregate(15,6) part? what does the 15,6 represent?
    Would like to understand a little more so in future i could apply it to other use!


    Edit:
    OR
    Is there a way to make it show the date that has 2 person going to the same event instead of listing out every person?
    which make it only return the value into 1 column instead of 6
    Will that make the formula simpler?
    Last edited by julian.wee; 05-25-2018 at 04:36 AM.

  6. #6
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Check for duplicates horizontally in Excel

    Hi julian.

    My solution would be using a countif formula in Conditional formatting that colors the cells with the same content on the same line.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-08-2018
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: Check for duplicates horizontally in Excel

    Hey,

    Thanks for your reply! Appreciate it
    I tried doing on my own but it highlighted the whole selection instead of horizontally.

    EDIT:
    Oh. Figured it out already!

    Thanks alot guys! appreciate the prompt and useful help!
    Cheers
    Last edited by julian.wee; 05-25-2018 at 05:48 AM.

  8. #8
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Check for duplicates horizontally in Excel

    yeah, that happend to me too at the first look closely at the $ used or not around the ranges. there is the key in showing results of all lines of just one line
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    make sure only the Column-letters of range have the $-sign the numbers should not have it in front and also the criteria cell needs to be without $

  9. #9
    Registered User
    Join Date
    02-08-2018
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: Check for duplicates horizontally in Excel

    yep i notice it after exploring for abit.

    Thanks to both of you! Both of the methods works for me well!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Check for duplicates horizontally in Excel

    You're welcome. Thanks for the feedback.

    could you explain the aggregate(15,6) part? what does the 15,6 represent?
    AGGREGATE has been called the "Swiss Army Knife" of functions. It can perform many functions ... 19 in fact. 15 is the SMALL function. 6 is an option to ignore errors. AGGREGATE array formulas usually do not have to be array entered ... ie with Ctrl + Shift + Enter. A simple Enter works.

  11. #11
    Registered User
    Join Date
    07-22-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Check for duplicates horizontally in Excel

    If anyone can help me this problem. I have a sheet with 2000 lines.
    Each line represent medications and next to the name of medication is the type of medication represented by number (there are 13 columns of type of medications).
    in Each line the numbers (which represent type of medication) repeats itself I would like to get the number which repeats itself next to the specific line.
    Attached Files Attached Files

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Check for duplicates horizontally in Excel

    Administrative Note:

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Removing Duplicates horizontally ?
    By Ron Purpura in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2021, 11:01 AM
  2. [SOLVED] First Vlookup and then check horizontally for last non blank cell
    By SSrr22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-14-2018, 02:17 AM
  3. Check and Remove duplicates Horizontally (Within ROW)
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2015, 04:38 AM
  4. return multiple values horizontally while removing duplicates
    By kingi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 03:55 PM
  5. Excel Check for duplicates from one file to another
    By sulavsingh6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2009, 06:57 AM
  6. excel columns - check for duplicates
    By northo in forum Excel General
    Replies: 4
    Last Post: 12-01-2008, 08:41 AM
  7. Check for duplicates in excel file
    By Dee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2005, 03:05 PM

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