+ Reply to Thread
Results 1 to 6 of 6

Resolving MID function problem from table of content

  1. #1
    Registered User
    Join Date
    09-13-2014
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    3

    Resolving MID function problem from table of content

    Hi All,

    Of this extracted data below that has all been entered into one cell, I need to extract the names, i.e. "Joe Banardi".

    I have tried to use a mixture of MID functions, with a mixture of SEARCH and FIND functions, without luck.

    Logistics Department Joe Banardi 69722254
    Research and Development Department Lilian Sanchez 87206998
    Income tax Department Megan Hewitt 57065580
    Sales and admin Department Sara Sinacori 97185555
    Complaints Department Jasmine Richards 82705678
    Commercial development Department Oscar Mendez 82505620


    Thanks in advance for any help.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Resolving MID function problem from table of content

    Hi, welcome to the forum

    Is the format always the same...bunch of text and spaces, then the name, followed by numbers?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Resolving MID function problem from table of content

    Assuming your answer will be yes to the above, try this beast...
    =MID(A1,FIND("xx",SUBSTITUTE(A1," ","xx",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-2),1)+1,FIND("xx",SUBSTITUTE(A1," ","xx",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-FIND("xx",SUBSTITUTE(A1," ","xx",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-2))-1)

    Im sure some1 will give you a more eligant suggestion

  4. #4
    Registered User
    Join Date
    09-13-2014
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Resolving MID function problem from table of content

    Hi Ford,

    Thank you.

    Yep, the format is always the same.

  5. #5
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Resolving MID function problem from table of content

    Try this:

    =TRIM(LEFT(SUBSTITUTE(REPLACE(A1,1,FIND("Department",A1)+10,)," ",REPT(" ",99),2),99))

    or, if all numbers at the end are always 8 digits long, then try this:

    =SUBSTITUTE(REPLACE(A1,1,FIND("Department",A1)+10,),RIGHT(A1,9),)
    Last edited by clabulis; 09-13-2014 at 11:37 PM.

  6. #6
    Registered User
    Join Date
    09-13-2014
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Resolving MID function problem from table of content

    The numbers are all 8 digits long and so I followed you recommendation.

    It worked perfectly.


    Thank you

+ 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. [SOLVED] Problem resolving a MOD formula
    By ukphoenix in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-13-2013, 07:46 PM
  2. Need help resolving worksheet naming problem
    By Julez80s in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2013, 03:51 PM
  3. Problem resolving formula with IF function
    By bazhsw in forum Excel General
    Replies: 2
    Last Post: 10-14-2011, 10:27 AM
  4. LEFT function not resolving correctly
    By inky in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-03-2007, 06:10 AM
  5. Resolving percent and date formats as such in concatenate function and emails
    By skiloa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2005, 11:05 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