+ Reply to Thread
Results 1 to 9 of 9

Identifying cells that match each other.

  1. #1
    Registered User
    Join Date
    11-05-2007
    Posts
    82

    Identifying cells that match each other.

    Hi all,

    I have 4 columns within a spreadsheet - and each of these columns contain a text value.

    I am trying to identify in, Column A, within each row if any of the cells contain the same value, and if so I will Omit them from the further calculation.

    The columns I am using are apart from each other, and not available, to my knowledge, as a range.

    Some cells may be blank - so need this to be taken into consideration.

    Any idea's are welcome.

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    you mean something like?

    =IF(OR(B1=A1,D1=A1,K1=A1),"duplicate","none") copied down

    where B1, D1 and K1 are compared to A1
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-05-2007
    Posts
    82
    Something like that - however, I want to compare all of them to each other.

    So: A1 = D1 or D1 = K1 or K1 = J1 ... etc.

    Would there be a way to do this?


    I basically need to identify if any of the 4 columns - are equal to each other. If they are - I will then exclude this from any other calculation.
    Last edited by Neil07979; 09-02-2008 at 08:07 AM. Reason: Addition

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Probably easiest just to add all the possibilities within the OR() function...

    e.g. =IF(OR(A5=C5,A5=E5,A5=H5,C5=E5,C5=H5,E5=H5),"duplicates","none")

  5. #5
    Registered User
    Join Date
    11-05-2007
    Posts
    82
    Hmm - always an option - although I was hoping not to do this - as the number of Columns may increase, which means the possibilities could be very large.

    Also I wanted to build it into another formula, so wanted to keep the size down.

    wouldn't there be an array formual that I could use to keep this as neat as possible?

    This appears also to take a blank cell as active, and states that I have a duplicate if there are 2 blank cells?
    Last edited by Neil07979; 09-02-2008 at 08:26 AM. Reason: Addition

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you post a sample of what you've got and what result you wish to get?

  7. #7
    Registered User
    Join Date
    11-05-2007
    Posts
    82
    I have attached a sample file for you to have a look at.

    Rule 4 is what I am trying to do - I have inserted "Duplicate" where I believe they should be. The "source" could grow to as many as 20 in the future so want to try and have something that is simple to add to.

    Ideally - I would want to build rule 4 in to rules 2 and 3, where if the rule is True, but the data sources in question are duplicated - then have false - but happy to just have a seperate rule for now that looks at all of the sources and states if duplicate.


    Thanks for looking at this.
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this formula in E3:

    Please Login or Register  to view this content.
    which must be confirmed with CTRL+SHIFT+ENTER not just ENTER.

    Then copied down.

    I am assuming that columns between Source and Diff are either blank or numeric...and that only the Source columns have actual text in them.

  9. #9
    Registered User
    Join Date
    11-05-2007
    Posts
    82
    Thanks - this seems to work - so far so good.

    Dont know how you do it, but as always - an answer to every question.

    Thanks again.

+ 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. Identifying Duplicates then deleting them and cells either side
    By raehippychick in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-10-2008, 10:51 AM
  2. sorting merged cells
    By Bope in forum Excel General
    Replies: 0
    Last Post: 04-07-2008, 11:56 AM
  3. Index & Match - Individual Cells
    By Harlequin in forum Excel General
    Replies: 4
    Last Post: 08-16-2007, 11:24 AM
  4. Need to list all matching cells (no blanks!)
    By fern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2007, 08:08 AM
  5. 'Filter/Clean' Cells; 2 questions
    By EHS in forum Excel General
    Replies: 12
    Last Post: 11-15-2006, 07:32 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