+ Reply to Thread
Results 1 to 4 of 4

Formula to move part of a value to a new cell

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Formula to move part of a value to a new cell

    Hi All..

    Trying to move the value of Cell A1 containing "2780A21151-99-P6" tp cell B1 to excluding the first two values "27" and all values after the first "-". So cell A1 is "2780A21151-99-P6" and it should look like this in cell B2 "80A21151-"

    Can anyone tell me the formula for this?

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Formula to move part of a value to a new cell

    Try this

    =LEFT(RIGHT(A1,LEN(A1)-2),FIND("-",RIGHT(A1,LEN(A1)-2)))
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: Formula to move part of a value to a new cell

    Rather than using a formula, you can copy paste the value over, and use text to columns with fixed width, and divide after the first 2 numbers.

    Depending on how massive your data is, this method can save a lot of space (it is also "easier" once you understand how to do it).

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to move part of a value to a new cell

    Here's another one...

    =MID(A1,3,FIND("-",A1)-2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Formula to move part of a value to a new cell - part 2
    By forestavekids in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2016, 12:34 PM
  2. Formula to move part of a value to a new cell
    By forestavekids in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-12-2016, 10:42 AM
  3. move part of cell data
    By vermicelli in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-30-2007, 04:48 PM
  4. Move a part of a cell to another cell
    By sura in forum Excel General
    Replies: 3
    Last Post: 04-09-2007, 08:32 PM
  5. move part of a cell content
    By slowhand in forum Excel General
    Replies: 2
    Last Post: 04-14-2006, 11:20 AM
  6. Move Part of Cell String
    By tom in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-13-2005, 02:05 PM
  7. move part of cell to new column
    By S.E. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2005, 12: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