+ Reply to Thread
Results 1 to 10 of 10

Extract words and numbers saprate

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Extract words and numbers saprate

    hello
    i have data in cell F1 Like "OLPTBC+J+JT150.50"
    i want to extract as below
    G1 = OL (always first two words only)
    H1 = PT (always third and forth words only)
    I1 = BC+J+JT (rest of all words)
    J1 = 150.50 (Only All numbers)

    thanx a lot

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Extract words and numbers saprate

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

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

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

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



    Essentially all that Min formula is doing is finding the position of first number
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Extract words and numbers saprate

    if your data remains in same way for all the cells then in
    g1 copy paste below then hold control and shift and then hit enter
    =IF(COLUMNS($G$1:G1)<3,MID($F$1,((COLUMN(A1)-1)*2)+1,2),MID($F$1,5,MATCH(TRUE,ISNUMBER(MID($F$1,ROW(INDIRECT("1:"&LEN($F$1))),1)+0),0)-1-4))
    drag till column I

    In J1 copy paste below then hold control and shift then hit enter
    =RIGHT(F1,LEN(F1)-SUM(LEN(G1:I1)))+0
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Extract words and numbers saprate

    Use below formulas (another method for extracting I1 and J1 strings) :

    In G1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In H1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In I1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In J1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Saarang84; 05-13-2014 at 03:47 AM.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Extract words and numbers saprate

    Quote Originally Posted by hemesh View Post
    if your data remains in same way for all the cells then in
    g1 copy paste below then hold control and shift and then hit enter
    =IF(COLUMNS($G$1:G1)<3,MID($F$1,((COLUMN(A1)-1)*2)+1,2),MID($F$1,5,MATCH(TRUE,ISNUMBER(MID($F$1,ROW(INDIRECT("1:"&LEN($F$1))),1)+0),0)-1-4))
    drag till column I

    In J1 copy paste below then hold control and shift then hit enter
    =RIGHT(F1,LEN(F1)-SUM(LEN(G1:I1)))+0
    Hi Hemesh,

    Your formulas doesn't seem to work... Can you please check it?

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Extract words and numbers saprate

    Have you confirmed it as array.

  7. #7
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Extract words and numbers saprate

    Quote Originally Posted by hemesh View Post
    Have you confirmed it as array.
    Yes, I tried as per your instructions, it doesn't work.

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Extract words and numbers saprate

    Find attached.
    Attached Files Attached Files

  9. #9
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Extract words and numbers saprate

    HELLO humdingaling
    Amazing works perfect
    thanx a lot
    will add u reputation

  10. #10
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Extract words and numbers saprate

    Hello hemesh

    thanx u too

    ur method is working also

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Extract words and numbers saprate

    You are welcome Thanks for the feedback Haroon.

+ 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. what is the farmula to saprate nums and char in a cell
    By mahesh kumar gupta in forum Excel General
    Replies: 5
    Last Post: 05-04-2014, 03:27 PM
  2. Replies: 7
    Last Post: 02-25-2014, 02:00 AM
  3. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  4. VBA Extract Numbers And Insert Words
    By jamieray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 06:53 AM
  5. Extract all but last two words
    By rwl518p in forum Excel General
    Replies: 2
    Last Post: 12-12-2011, 10:06 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