+ Reply to Thread
Results 1 to 4 of 4

Trying to parse specific data out of one cell and show it in another

  1. #1
    Registered User
    Join Date
    06-12-2020
    Location
    Chicago
    MS-Off Ver
    .xl for mac 16.37
    Posts
    2

    Trying to parse specific data out of one cell and show it in another

    I've got an .xl with a column full of media file names (e.g. "0020_519483_4_Elizabeth_K_846114_1.mp4").

    I need a formula that will pull specific parts of the media file name and show it in another column, in a specific format ("A20 q4").

    Here's how the data I want relates to the media file. I want the formula to convert "0020_519483_4_Elizabeth_K_846114_1.mp4"
    into "A20 q4"

    So, it's starting by adding an "A", followed by the 3rd and 4th digits of the filename ("0020_"). Then a space, then a "q" followed by the number between the 2nd and third "_" (in this case "4").

    I'm currently using the formula below:
    ="A"&IF(MID(AH1398,3,1)="0",MID(AH1398,4,1),MID(AH1398,3,2)) & " " & "q" & MID(AH1398, FIND(CHAR(1),SUBSTITUTE(AH1398,"_",CHAR(1),2))+1, FIND(CHAR(1),SUBSTITUTE(AH1398,"_",CHAR(1),3)) - FIND(CHAR(1),SUBSTITUTE(AH1398,"_",CHAR(1),2))-1)

    But it's not working right, and i can't figure out how to make it work.

    Any help would be very much appreciated.
    Attached Files Attached Files
    Last edited by RossMcLean; 06-15-2020 at 12:33 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Trying to parse specific data out of one cell and show it in another

    Hi & welcome to the board.
    How about
    ="A"&LEFT(B2,4)*1 & " q"&TRIM(MID(SUBSTITUTE(B2,"_",REPT(" ",100)),200,100))

  3. #3
    Registered User
    Join Date
    06-12-2020
    Location
    Chicago
    MS-Off Ver
    .xl for mac 16.37
    Posts
    2

    Re: Trying to parse specific data out of one cell and show it in another

    Thank you Fluff13, that formula works perfectly!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Trying to parse specific data out of one cell and show it in another

    You're welcome & thanks for the feedback.

+ 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. VBA code that will parse specific data from Outlook Email folder
    By SaxMan_714 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2019, 07:12 PM
  2. [SOLVED] Enter data into a userform text box to show in a specific cell in a specific worksheet
    By Stevecraig211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 10:02 AM
  3. Need to parse cell and count instances of specific text
    By robbyvegas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-20-2015, 11:39 PM
  4. Need to parse data between two specific Characters
    By AndyBaldwin in forum Excel General
    Replies: 3
    Last Post: 07-08-2013, 07:19 AM
  5. [SOLVED] How to Parse/extract specific info in a cell ?
    By HikerLT in forum Excel General
    Replies: 7
    Last Post: 06-11-2013, 02:39 PM
  6. How To Parse Specific text from String Data
    By zaidan in forum Excel General
    Replies: 2
    Last Post: 04-08-2011, 04:34 AM
  7. Need to parse data between two specific CHARS
    By tshrader in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-20-2010, 10:31 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