+ Reply to Thread
Results 1 to 4 of 4

Formula to find if string exists in different cell within same column

  1. #1
    Registered User
    Join Date
    08-03-2023
    Location
    Denver, CO
    MS-Off Ver
    Version 2208 Build 15601.20680
    Posts
    2

    Formula to find if string exists in different cell within same column

    Hi,
    I have a spreadsheet with a column of IDs that I need to find if strings of text exist in a different cell within the same column. Individual cells may contain a single ID or may contain multiple IDs. For example:

    ABC-41796 |ABC-41958
    ABC-41796

    I cannot use Conditional Formatting > Highlight Duplicate Cell Values because only a portion of the cell may be duplicated. I've tried several different formulas such as XLOOKUP, IF(ISNUMBER), IF(COUNTIF), SEARCH with no success. Any help would be greatly appreciated.

    I also am unable to upload attachments for whatever reason.

    Below is the full example:

    ID Exists
    ABC-41953 |ABC-42383 N
    ABC-41303 |ABC-42081 N
    ABC-41796 |ABC-41958 Y
    ABC-41566 |ABC-41850 Y
    ABC-39701 N
    ABC-41796 Y
    WXYZ-6609 N
    ABC-41566 Y

    Thank you.
    Last edited by km_ski; 08-03-2023 at 10:20 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Formula to find if string exists in different cell within same column

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Formula to find if string exists in different cell within same column

    For your values starting in cell A2, use conditional formatting with the Formula option, with the formula

    =MAX(COUNTIF(A:A,"*"&TEXTSPLIT(TRIM(TEXTSPLIT(LEFT(A2,LEN(A2)-2),"|"))," ")&"*"))>1

    and choose your fill.

    OR - fill a column with that formula to match your data, then filter to show TRUE values only. Note that there may only be one of the multi-entries in a cell that is duplicated.....
    Bernie Deitrick
    Excel MVP 2000-2010

  4. #4
    Registered User
    Join Date
    08-03-2023
    Location
    Denver, CO
    MS-Off Ver
    Version 2208 Build 15601.20680
    Posts
    2

    Re: Formula to find if string exists in different cell within same column

    Perfect! Thank you so much

+ 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. find words in a column and if it exists insert it in the next cell.
    By stefano78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2020, 04:17 PM
  2. [SOLVED] simplest formula to find if a # exists in a column
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2017, 08:21 PM
  3. [SOLVED] Find last column in sheet where a string exists in any row
    By Kramxel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-24-2015, 10:48 AM
  4. Replies: 6
    Last Post: 06-05-2015, 09:28 AM
  5. [SOLVED] Formula or Macro, match string,from 1 cell to a column,String use dash
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2013, 06:03 PM
  6. Replies: 4
    Last Post: 12-29-2009, 08:18 PM
  7. how to find Certain String in a column, select/Copy the cell till another String
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2009, 10:59 AM

Tags for this Thread

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