+ Reply to Thread
Results 1 to 5 of 5

Text Manipulation, extracting and changing

  1. #1
    Registered User
    Join Date
    03-12-2008
    Location
    Melbourne
    MS-Off Ver
    MS Excel 2016, 2021 & WPS(2023)
    Posts
    46

    Text Manipulation, extracting and changing

    Hi All,

    I need some help with an Excel problem that I have. I need to extract some data from one column, modify it and put it into another.

    Scenario:
    Sheet 1 (Raw Data), Cell U2 contains the string "MMA>Throwdown>T-Shirts>Male"
    and in Sheet 2 (Result), Cell C4 I need it to end up as "MMA/Throwdown"

    What I'm trying to achieve:
    Take the data from one cell, extract the data before the first and second ">" symbol and change the first ">" symbol to a "/" and have the result be in another cell.

    The Problem:
    I know that there are ways to identify specific strings of text but I have no idea what they are or how to use them.

    Help is greatly appreciated.

    About attachment:
    File: CSVI by HobStar.xlsx
    Attached Files Attached Files
    Last edited by TheHobbit81; 10-06-2010 at 01:28 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Text Manipulation, extracting and changing

    Hi there,

    Try this formula in cell C4 of the Result tab and then copied down as required:

    =LEFT('Raw Data'!A2,SEARCH(">",'Raw Data'!A2)-1)&"/"&TRIM(MID(SUBSTITUTE('Raw Data'!A2,">",REPT(" ",100)),100,100))

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    03-12-2008
    Location
    Melbourne
    MS-Off Ver
    MS Excel 2016, 2021 & WPS(2023)
    Posts
    46

    Re: Text Manipulation, extracting and changing

    Thanks Robert,

    It comes up with a "#VALUE!" error. Any thoughts?

    Warm Regards,
    Paul

  4. #4
    Registered User
    Join Date
    03-12-2008
    Location
    Melbourne
    MS-Off Ver
    MS Excel 2016, 2021 & WPS(2023)
    Posts
    46

    Re: Text Manipulation, extracting and changing

    Quote Originally Posted by TheHobbit81 View Post
    Thanks Robert,

    It comes up with a "#VALUE!" error. Any thoughts?

    Warm Regards,
    Paul
    Never mind, I just needed to change "A2" to "U2" and it works!!!

    Thanks heaps Robert, you just made my day. =D

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Text Manipulation, extracting and changing

    you just made my day
    Glad to hear it

    Please don't forget to mark the thread as solved.
    Last edited by Trebor76; 10-06-2010 at 12:49 AM.

+ 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