+ Reply to Thread
Results 1 to 12 of 12

Help! Corrupted data needs solving!

  1. #1
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Help! Corrupted data needs solving!

    Is there a way to match up the characters in column C to column B, even though the characters are not in the right order in column B?

    A wildcard or a find and replace perhaps?

    Please see example attached.

    Thanks in advance!

    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Help! Corrupted data needs solving!

    Please post a small sample file.

  3. #3
    Registered User
    Join Date
    01-08-2016
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    9

    Re: Help! Corrupted data needs solving!

    All you need to do is put in a formula that removes everything before the space in your column B and then use that to find your name in column C with a VLOOKUP.

    E.g.
    =RIGHT(B2,LEN(B2)-FIND(" ",B2))

  4. #4
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Re: Help! Corrupted data needs solving!

    Find the Formula 1.xlsx

    Please see attached.


  5. #5
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Re: Help! Corrupted data needs solving!

    Thanks both, attached above is a bit more explanation.

    jwmanners - tried =RIGHT(B2,LEN(B2)-FIND(" ",B2)) but don't think I explained fully, so not quite what we need.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Help! Corrupted data needs solving!

    It is not clear, anyway try this
    In D2 , then Dragged down
    =SUBSTITUTE(C2," ","")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Re: Help! Corrupted data needs solving!

    Perfect!

    Sorry I wasn't clearer.

    Thank you kvsrinivasamurthy!

  8. #8
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Re: Help! Corrupted data needs solving!

    Capture2.JPG

    On reflection, sorry this is again not what we are after. I have explained further in the attached screenshot.

    I hope this is more clear.

  9. #9
    Registered User
    Join Date
    01-08-2016
    Location
    York
    MS-Off Ver
    2013
    Posts
    10

    Re: Help! Corrupted data needs solving!

    This is a sample of our actual data. We have replicated your formatting. This includes some contacts that may not be in column B and therefore wont match up on rows when sorted so we are still returning the wrong values.

    Thanks for taking the time to help us

    Capture3.JPGFormula.xlsx

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Help! Corrupted data needs solving!

    Pl upload file. Screen shot will not help. Explain your problem with example.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Help! Corrupted data needs solving!

    In your previous "Find The formula.xlsx" file the entries in B do not align with the results in C.

    61147 MonkiaZysk Anthony Zybutz

    I would have expected the following

    61147 MonkiaZysk Monkia Zysk

    The following reproduces your column C as per your first file:

    =IFERROR(IF(MATCH("*"&LEFT($C2,FIND(" ",$C2)-1)&"*",$B$2:$B$8,0),$C2),IFERROR(IF(MATCH("*"&MID($C2,FIND("*",SUBSTITUTE($C2," ","*",1),1)+1,FIND(" ",SUBSTITUTE($C2," ","*",1),1)-FIND("*",SUBSTITUTE($C2," ","*",1),1)-1)&"*",$B$2:$B$8,0),$C2),IF(MATCH("*"&MID($C2,FIND(" ",$C2)+1,255)&"*",$B$2:$B$8,0),$C2)))

    It searches B for Matches against the "component" names in C

    However I would have thought it was required to "deconstruct" B i.e change "MonkiaZysk" to "Monkia Zysk" then search C for matches against B (?).

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Help! Corrupted data needs solving!

    See the attached.

    Columns F to I finds the position of the capital letters in data in B. Columns J to L are the names in B separated out.
    in I2

    =SMALL(FIND(0,SUBSTITUTE($B2,CHAR(ROW(INDIRECT("65:90"))),0)&0),F$1)

    Enter with Ctrl+Shift+Enter

    Repeat for G, H and I then copy down

    In J2

    =MID($B2,F2,G2-1)

    Copy across and down

    in E2

    =IFERROR(INDEX($C$2:$C$8,MATCH("*"&J2&"*",$C$2:$C$8,0)),IFERROR(INDEX($C$2:$C$8,MATCH("*"&K2&"*",$C$2:$C$8,0)),INDEX($C$2:$C$8,MATCH("*"&L2&"*",$C$2:$C$8,0))))

    Searches for match on each name until found.
    Attached Files Attached Files

+ 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. [SOLVED] Data corrupted in multipage spreadsheet
    By coolecho in forum Excel General
    Replies: 3
    Last Post: 02-01-2014, 01:10 AM
  2. Extracting data from corrupted file
    By Merlinti in forum Excel General
    Replies: 2
    Last Post: 11-27-2013, 02:54 PM
  3. Data corrupted during pasting
    By PhilippeR in forum Excel General
    Replies: 1
    Last Post: 01-05-2011, 12:38 PM
  4. Data corrupted in mail merge
    By rlgersh in forum Word Formatting & General
    Replies: 0
    Last Post: 05-14-2009, 03:03 PM
  5. Replies: 1
    Last Post: 11-27-2008, 02:12 AM
  6. Replies: 6
    Last Post: 12-09-2007, 11:09 AM
  7. Linked Cells Corrupted by Data Sorting
    By catmandu57 in forum Excel General
    Replies: 1
    Last Post: 12-07-2007, 03:19 PM
  8. [SOLVED] excel 2000 - corrupted data
    By john pilcher in forum Excel General
    Replies: 1
    Last Post: 03-14-2005, 02:53 PM

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