+ Reply to Thread
Results 1 to 5 of 5

how to get sub strings using delimiter

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question how to get sub strings using delimiter

    hi,

    i want to copy the part of the string in a particular cell to another sheet.

    e.g. the string is cell A1 is as below:

    EVENT_ID NUMBER(10) NULL

    In the above string I want to copy the sub-string EVENT_ID and paste it to another worksheet.

    Can anyone help me out in getting the first substring i.e EVENT_ID in the above given space delimited string or is there any function available which directly given me the first sub-string of the given string.


    Thanks in advance !!!

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: how to get sub strings using delimiter

    for the text in A1:

    =LEFT(A1,FIND(" ",A1)-1)
    Regards,
    Vandan

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: how to get sub strings using delimiter

    Thanks for the reply Vandan, but I am getting error on this.
    It says FIND function not defined.

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: how to get sub strings using delimiter

    Hi

    Try this:

    =TRIM(LEFT(A1,FIND(" ",A1)))
    Click *, if my suggestion helps you. Have a good day!!

  5. #5
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: how to get sub strings using delimiter

    I am surprised because the find function is available in excel 2003 - you indicate in your profile that you have excel 2003.

    try replacing search with the find function as follows:

    =LEFT(A1,SEARCH(" ",A1)-1)

    if it still doesn't work, let me know and we can request others to look at it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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