Results 1 to 2 of 2

Compare similar text strings, line up two records and bring back a cell value

Threaded View

  1. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,736

    Re: Compare similar text strings, line up two records and bring back a cell value

    See if the following is headed in the right direction, we can then attempt to make some refinements if possible.
    Columns D and E respectively truncate the data at the first ";" and "," using: =IFERROR(LEFT(C2,SEARCH(";",C2)-1),"") and =IFERROR(LEFT(C2,SEARCH(",",C2)-1),"")
    Column F displays the resulting (shorter) string using:
    Formula: copy to clipboard
    =IF(AND(E2="",D2<>""),D2,IF(AND(E2<>"",D2=""),E2,IF(AND(E2<>"",D2<>"",LEN(E2)>LEN(D2)),D2,IF(AND(E2<>"",D2<>"",LEN(E2)<=LEN(D2)),E2,""))))

    Column G displays strings that don't have either of the punctuations using: =IF(AND(D2="",E2=""),C2,"")
    Column H displays the final list of strings using: =F2&G2
    Column I displays the match (if any) using: =MATCH(H2,'ref data a sheet 1'!A$2:A$1000,0)+1
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vlookup - bring back blank cell when it brings back 0 and N/A
    By julee.stein in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2018, 11:12 AM
  2. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  3. Replies: 4
    Last Post: 09-04-2012, 03:23 PM
  4. Compare A to B and bring back NON-error
    By amyj22x3 in forum Excel General
    Replies: 3
    Last Post: 08-09-2011, 08:48 PM
  5. Replies: 3
    Last Post: 05-28-2011, 01:43 PM
  6. Replies: 1
    Last Post: 10-18-2010, 06:32 PM
  7. [SOLVED] Find a non-blank cell and bring back text a in same row
    By Rod in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-24-2005, 06:06 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