+ Reply to Thread
Results 1 to 15 of 15

Extracting required strings from alpha numeric value in a row in excel

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Extracting required strings from alpha numeric value in a row in excel

    Greetings,
    Being new and unable to get the exact function/macro from searching the forums posting this question I have and appreciate if get answer in a day (please..)

    requirement is

    the rows(hundreds of rows) has data like:- 2X20AA, 30AA, 1X40AA,6AA ( in say A1 )

    [the actual data is ( 2*20AA, 30AA, 1|*40AA,6AA) written in the above format]

    result should be
    In B2:- 40 ( which is 2X20)
    In C2:- 30
    In D2:- 40 (which is 1X40)
    In E2:-6

    The total characters are not fixed in all rows but the data is written in the same format and seperated by 'comma'.
    Thank you.
    Last edited by piggyfox; 05-29-2013 at 06:38 AM. Reason: Corrected the question

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Extracting required strings from alpha numeric value in a row in excel

    Can you upload an example workbook with some of the data in? Do the rows only have data in column A?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Extracting required strings from alpha numeric value in a row in excel

    Need more examples...

    UDF

    B1
    =splitby($A1,COLUMN(A1))
    and copy right / down

    To a standard module
    Please Login or Register  to view this content.
    Last edited by jindon; 05-29-2013 at 06:30 AM.

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    @Yudlugar

    giving here the some of the data i have in the sheet, and there is data in other rows. but if I can have the macro or function can that be used to get the data in any rows wanted ??
    2x10NF, 2x70NF,6Nf, 3NF, 2NF
    2x15NF, 2x50NF, 2x20NF
    2x75NF, 2x5NF, 2x2NF, 2x10Nf, 6Nf
    2x75NF, 2x5NF, 2x2NF, 2x10NF, 6NF
    2x30NF, 4x10NF, 4x2Nf, 6NF

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Extracting required strings from alpha numeric value in a row in excel

    You can upload an attachment by clicking "go advanced" in the reply and then selecting attachments. It would be very helpful to see how the data is layed out in a spreadsheet.

  6. #6
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    thank you... corrected my question in .... didnt get the result i wanted with the function..

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Extracting required strings from alpha numeric value in a row in excel

    Quote Originally Posted by piggyfox View Post
    thank you... corrected my question in .... didnt get the result i wanted with the function..
    My post has been updated, due to your misleading examples in the first post...

  8. #8
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    Attaching the sheet with partial data.
    there are two columns (C & G) with similar data and I need to do same function for both.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Extracting required strings from alpha numeric value in a row in excel

    What is your desired result then?

  10. #10
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    @jindon

    Attached the sheet again with giving the result iam expecting for 3 rows of data. Please refer to the columns I onwards
    thank you.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Extracting required strings from alpha numeric value in a row in excel

    I did this before you posted the result so it sticks the results in column A but I think it gives you the required answers.
    Please Login or Register  to view this content.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Extracting required strings from alpha numeric value in a row in excel

    I2:
    =IFERROR(SplitBy($B2,COLUMN(A1)),"")
    then copy right/down

    Q2:
    =IFERROR(SplitBy($G2,COLUMN(A1)),"")
    then copy right/down

    Should do.

    Typo
    Attached Files Attached Files
    Last edited by jindon; 05-29-2013 at 07:46 AM. Reason: Typo....

  13. #13
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    Thank You Yudlugar & jindon
    am trying for now the solution given by jindon and its giving the result am looking..
    will also try the solution given by yudlugar later and will inform the result.
    once again THANK YOU for responding with lightening speed with the solution.

  14. #14
    Registered User
    Join Date
    11-16-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Extracting required strings from alpha numeric value in a row in excel

    @jindon another help required ...can the function be made to convert "x" irrespective of the case of "x" ?

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Extracting required strings from alpha numeric value in a row in excel

    Add one line
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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