+ Reply to Thread
Results 1 to 13 of 13

Data separation by using formula FIND, MID

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Data separation by using formula FIND, MID

    Dear all , here is my issue need to solve

    My input data at CELL A1

    A1 = 97 iscon greens bopal, ahmedabad, 380058, India

    I need output like below cell wise :

    B1 = 97 iscon greens bopal, ahmedabad, 380058

    C1 = India


    another new issue:

    Here is my input data at CELL A2
    A2 = Sunday, February 9, 2014 at 08:49:01 · #510497609

    I need output like below cell wise :

    B2 = Sunday, February 9, 2014 at 08:49:01
    C2 = 510497609

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Data separation by using formula FIND, MID

    Hi,

    One or two examples is often woefully insufficient to support this type of query.

    Please give as much information about where the extraction in each string is to take place. For example, in your (one) example, the desired extraction (India) is the last word in the string - will this always be the case? Will it always be a single word, or possibly more, e.g. Sri Lanka? In either case, will it always be preceded by a comma?

    Regards
    Click * below if this answer helped

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

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Data separation by using formula FIND, MID

    Hi XOR LX , thanks for reply
    The text in the cell A1 is actually address , here your query , yes country is not unique . please treat the address variation , India,Sri Lanka, Bangladesh etc , & like wise address will be change , I mean all are changeable but they are following a pattern which is same .
    it always be preceded by a comma?
    yes it is preceded by a comma.
    Last edited by nur2544; 02-12-2014 at 11:38 AM.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Data separation by using formula FIND, MID

    Thanks. And the answer to my other question: is the desired extraction always the last word (or words) in the string?

    Regards

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Data separation by using formula FIND, MID

    here is another example
    A1 = 28 green road, dhaka, 2569, Sri Lanka

    I need output like below cell wise :

    B1 = 28 green road, dhaka, 2569

    C1 = Sri Lanka

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Data separation by using formula FIND, MID

    I'm afraid you still haven't answered my last question.

    Regards

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

    Re: Data separation by using formula FIND, MID

    In C1

    =TRIM(RIGHT(SUBSTITUTE(A1,",",REPT(" ",255)),255))

    in B1

    =LEFT(A1,LEN(A1)-2-LEN(C1))

    A
    B
    C
    1
    97 iscon greens bopal, ahmedabad, 380058, India 97 iscon greens bopal, ahmedabad, 380058 India
    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

  8. #8
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Data separation by using formula FIND, MID

    Hi XOR LX
    If my task is complex then please don’t spend your valuable time . I will do it manually as I do regularly. You can help me partially with other parts which you having no confusion, due lack of English competence , I might be missing something , thanks for understanding .

  9. #9
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Data separation by using formula FIND, MID

    Hi AlKey
    You did outstanding job for me , I am very much happy to get the answer . I will be more happy if I get my 2nd part issues answer also form you that is like below

    another new issue:

    Here is my input data at CELL A2
    A2 = Sunday, February 9, 2014 at 08:49:01 · #510497609

    I need output like below cell wise :

    B2 = Sunday, February 9, 2014 at 08:49:01
    C2 = 510497609

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

    Re: Data separation by using formula FIND, MID

    Sorry I din't read that part

    here it is:

    In C1

    =TRIM(RIGHT(SUBSTITUTE(A1,"#",REPT(" ",255)),255))

    In B1

    =LEFT(A1,LEN(A1)-4-LEN(C1))

    A
    B
    C
    1
    Sunday, February 9, 2014 at 08:49:01 · #510497609 Sunday, February 9, 2014 at 08:49:01 510497609

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Data separation by using formula FIND, MID

    Quote Originally Posted by nur2544 View Post
    I will be more happy if I get my 2nd part issues answer also form you that is like below
    Maybe you try to replace "," inside SUBSTITUTE to "#"
    Quang PT

  12. #12
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Data separation by using formula FIND, MID

    Hi AlKey,
    Excellent solution , you saved my many time. I really appreciate your small code that make my job easier . thanks for your time

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

    Re: Data separation by using formula FIND, MID

    You're welcome and thank you for your 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. [SOLVED] Text separation by formula
    By nur2544 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-22-2013, 10:53 AM
  2. [SOLVED] TEXT separation by formula
    By nur2544 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-10-2013, 11:43 AM
  3. Formula to enable separation of data by business hours on weekdays?
    By Tonkstar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-08-2013, 09:59 PM
  4. data separation
    By oxdude in forum Excel General
    Replies: 2
    Last Post: 03-01-2009, 04:52 PM
  5. [SOLVED] Excel - Find and Replace from rows to separation by commas
    By msdker in forum Excel General
    Replies: 4
    Last Post: 04-17-2006, 10:25 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