+ Reply to Thread
Results 1 to 6 of 6

extract data from left and right

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    ashford, middx
    MS-Off Ver
    2010
    Posts
    12

    extract data from left and right

    hello,

    i wish to extract data from left and right eg 7/2Middlesbrough to 7/2 and Middlesbrough in separate columns , i have enclosed the data in

    a spreadsheet, the numbers vary as does the names

    any help greatly appreciated

    Cheers

    Stu
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: extract data from left and right

    Try this

    in B1
    =MID(A1,MIN(FIND({"A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"R";"S";"T";"U";"V";"W";"X";"Y";"Z"},A1&
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ",1)),1000)

    Source: http://www.pcreview.co.uk/forums/fin...-t1745981.html

    in C1
    =LEFT(A1,FIND(B1,A1)-1)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,615

    Re: extract data from left and right

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: extract data from left and right

    @TMS

    That won't work if the divisor is more than one digit long, e.g. the odds are 13/12

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    ashford, middx
    MS-Off Ver
    2010
    Posts
    12

    Re: extract data from left and right

    cheers mate, stu

    in B1
    =MID(A1,MIN(FIND({"A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"R";"S";"T";"U";"V";"W";"X";"Y";"Z"},A1&
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ",1)),1000)

    Source: http://www.pcreview.co.uk/forums/fin...-t1745981.html

    in C1
    =LEFT(A1,FIND(B1,A1)-1)[/QUOTE]

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: extract data from left and right

    B1=LEFT(A1,LOOKUP(65,CODE(MID(A1,ROW($1:$256),1)),ROW($1:$256)))
    C1=SUBSTITUTE(A1,B1,"")
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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] Extract text to left of nth character
    By cmb80 in forum Excel General
    Replies: 3
    Last Post: 06-16-2014, 11:09 AM
  2. [SOLVED] Extract text left and right of character
    By stuartm4h in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2013, 07:32 AM
  3. [SOLVED] Using LEFT function to extract value
    By src16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2013, 09:37 AM
  4. Extract Data to right and left of numbers
    By chl in forum Excel General
    Replies: 1
    Last Post: 03-18-2010, 02:19 PM
  5. Replies: 2
    Last Post: 08-19-2008, 07:18 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