+ Reply to Thread
Results 1 to 7 of 7

Formula to seperate values

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Formula to seperate values

    Hi i need to split up these numbers from a string of text, i have attached what the result should be but just not sure how to do it via a formula.

    Any help would be great

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula to seperate values

    This formulas will take into account any letter you may have and remove them
    B1:
    =NPV(-0.9,,IFERROR(MID(LEFT(A2,FIND("/",A2)-1),LEN(A2)-ROW(INDIRECT("1:"&LEN(A2)))+1,1)%,""))

    c2
    =NPV(-0.9,,IFERROR(MID(LEFT(TRIM(SUBSTITUTE(A2,F2&"/","")),FIND("/",A2)-1),LEN(B2)-ROW(INDIRECT("1:"&LEN(B2)))+1,1)%,""))
    Confirm both with COntrol+Shift+Enter
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Formula to seperate values

    Thanks the first formula works but the second doesn't return the vlaue i would expect as in my example in col E

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula to seperate values

    Try this:
    =--TRIM(MID(A2,4,FIND("/",A2)-4))
    and
    =--TRIM(MID(A2,FIND("/",A2)+5,100))

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Formula to seperate values

    Or this:

    Amount1

    =1*MID(A2,4,FIND("/",A2)-5)

    Amount2

    =1*REPLACE(A2,1,FIND("/",A2)+4,"")

    Apply format: Number
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Formula to seperate values

    Many thanks

  7. #7
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to seperate values

    kenadams378

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    We are waiting from a long time member like you to do this without no one to ask this as this is a part of our rules in this forum.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Continuous changing cell values - record highest and lowest values in seperate cells
    By attienel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 05:12 PM
  2. Replies: 0
    Last Post: 03-05-2013, 06:31 PM
  3. Seperate Values in single cell seperated by [alt+enter] into seperate cells
    By Coquito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2012, 04:24 PM
  4. [SOLVED] Seperate Comma seperated values in seperate rows in different tab of same worksheet
    By amlan009 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2012, 04:54 AM
  5. Looking up values on seperate worksheet to insert in formula
    By Tim Hardison in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2009, 10:40 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