+ Reply to Thread
Results 1 to 4 of 4

Need to merge columns but data in different format (MB0000100 vs 0000100) - can I do it?

  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    Auckland
    MS-Off Ver
    Office Professional 2016
    Posts
    8

    Need to merge columns but data in different format (MB0000100 vs 0000100) - can I do it?

    Hello

    This is my first post so please forgive me if this is a stupid question.

    I am trying to merge two sheets with data for geographic regions.

    My problem is the regions are coded slightly differently in the two sheets.

    In one sheet, the name for each region is listed as:
    MB 0000100
    MB 0000200
    MB 0000201 etc

    In the other sheet, just the number is entered without the MB:
    0000100
    0000200
    0000201

    I am not sure that the sequence is exactly the same in both sheets, so cannot just replace the data in one column with the format from the other sheet.

    Is there a simple way to recode/remove the leading MB from the first sheet, so I can analyse these sheets together?

    Thank you in advance for your help

  2. #2
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Need to merge columns but data in different format (MB0000100 vs 0000100) - can I do i

    Hi,

    If the Text part is Always 2 characters, use B1 formula.
    If the Text part is variable in length, use C1 formula.

    Either formula copied down:

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    1
    MB 0000100 0000100 0000100
    2
    MB 0000200 0000200 0000200
    3
    MB 0000201 0000201 0000201
    4
    MBAB 0000202 B 0000202 0000202
    Sheet: Sheet110

    Excel 2016 (Windows) 64 bit
    B
    C
    1
    =MID(A1,4,99) =MID(A1,FIND(" ",A1)+1,99)
    Sheet: Sheet110

  3. #3
    Registered User
    Join Date
    10-18-2018
    Location
    Auckland
    MS-Off Ver
    Office Professional 2016
    Posts
    8

    Re: Need to merge columns but data in different format (MB0000100 vs 0000100) - can I do i

    This is perfect! Thank you so much for your help, you have just saved me days of work.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Need to merge columns but data in different format (MB0000100 vs 0000100) - can I do i

    Rule 03: Cross-posting Without Telling Us

    crosspost: https://www.mrexcel.com/forum/excel-...-can-i-do.html

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Index search, Merge rows or columns in table format
    By loled in forum Excel General
    Replies: 0
    Last Post: 06-16-2015, 12:02 AM
  2. extracting data like mail merge into a specific format...
    By TexasAl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2014, 12:08 PM
  3. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM
  4. [SOLVED] Merge data from two columns in to one.
    By manharji in forum Excel General
    Replies: 1
    Last Post: 04-07-2012, 02:49 PM
  5. Mail Merge Query - Format of Merge Fields in Word
    By carlosbourn in forum Excel General
    Replies: 2
    Last Post: 11-10-2007, 07:11 AM
  6. How to Merge Two Columns of Data into One?
    By crwiseman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2006, 10:43 AM
  7. Replies: 1
    Last Post: 08-30-2005, 09:05 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