+ Reply to Thread
Results 1 to 6 of 6

Combining One cell to Middle of text of another (example)

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    NY
    MS-Off Ver
    Excel 2011
    Posts
    3

    Combining One cell to Middle of text of another (example)

    Hello

    I would like to combine 2 cells, but I would like it to be in middle of text in the other cell

    EXAMPLE:

    Cell A1 = 123
    Cell B1 = ABCDE

    I would like Cell C1 to read ABC123DE

    Thank You
    Joe

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Combining One cell to Middle of text of another (example)

    =mid(b1,1,3)&a1&right(b1,2)
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    NY
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Combining One cell to Middle of text of another (example)

    thanks for the quick reply. Now i'm curious, what if the range changes through the document

    ie.
    B1 = ABCDE
    B2 = ABCDEFG

    The truth is, it seems consistent that all rows in column A will always be going 2 characters from the right.

    ie.
    AB123CD
    ABCDE123FG

    is there a way to do this formula with just using the "Right" function?

  4. #4
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Combining One cell to Middle of text of another (example)

    You could use =LEFT(B2,3)&A2&MID(B2,4,5)

    The right function would not do it as it counts back from the right. Having MID 4,5 selects the fourth character and up to 5 characters to it's right without getting an error if it is only three characters as per your first example.

    Personally I'd go with =MID(B3,1,3)&A3&MID(B3,4,5)

  5. #5
    Registered User
    Join Date
    06-13-2012
    Location
    NY
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Combining One cell to Middle of text of another (example)

    Thanks again

    Much appreciated

  6. #6
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Combining One cell to Middle of text of another (example)

    My pleasure. Please don't forget to mark the thread as solved etc.

    Cheers

    Russell

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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