+ Reply to Thread
Results 1 to 12 of 12

EXTRACT Data, Left Side of Character "/" - various conditions

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    EXTRACT Data, Left Side of Character "/" - various conditions

    Hi,
    I want to Extract Data from Left side of character "/"
    Data looks like :

    12345678/001
    BKJ12345/009
    JG123456/099 - name 2
    77661199/008 - name 1


    01. IF all are Numbers (...all in left side of "/")
    02. IF first two are letters and the rest numbers (...in left side of "/")
    03. IF first 3 are letters and the rest numbers
    04. IF Left side =K2 (data in K2)

    Thank you all
    Last edited by ionelz; 03-08-2021 at 08:05 PM.

  2. #2
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    to get data from left side of string where "/" is the breakpoint, do this
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    With data in column A this in B1 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    1
    12345678/001
    12345678
    2
    BKJ12345/009
    BKJ12345
    3
    JG123456/099 - name 2
    JG123456
    4
    77661199/008 - name 1
    77661199
    Dave

  4. #4
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    I need 4 formulas,
    First to extract ONLY if in left side of "/" are NUMBERS (all of them)
    Second if in left side of "/", first 2 are letters the rest numbers...
    ....

  5. #5
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    sorry flame. i forgot to include find as part of worksheet formula. mine was code

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    If I've interpreted correctly this in B1 and down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    1
    12345678/001
    12345678
    2
    BKJ12345/009
    BK
    3
    JG123456/099 - name 2
    JG
    4
    77661199/008 - name 1
    77661199
    5
    B4KJ12345/009
    FALSE

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    Thank you so much, I believe you got it...
    But I need SEPERATE formulas :

    First Formula, EXTRACT if all in left side of "/" are numbers
    Result should be
    12345678/001
    77661199/008 - name 1


    Second Formula, EXTRACT if first 2 are letters and the rest numbers , in left side of "/"
    Result should be
    JG123456/099 - name 2

    Third Formula, EXTRACT if first 3 are letters and the rest numbers , in left side of "/"
    Result should be
    BKJ12345/009
    Last edited by ionelz; 03-09-2021 at 02:31 PM.

  8. #8
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    Maybe this question make more sense ,IF length of STRING is 8, how to check IF :
    - first 2 are LETTERS and rest of 6 are NUMBERS

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,879

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    It may help us understand if you would provide an .xlsx file that manually shows the results that you would like to automate using formulas/code.
    Instructions for uploading an .xlsx file are given in the banner at the top of the page.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    Quote Originally Posted by JeteMc View Post
    It may help us understand if you would provide an .xlsx file that manually shows the results that you would like to automate using formulas/code.
    Instructions for uploading an .xlsx file are given in the banner at the top of the page.
    Let us know if you have any questions.
    Please see attached
    I believe I did a wrong title to THREAD after i realized that I do not need to look in Left side of character "/"
    I need to EXTRACT data from B to H, J and L
    So conditions for EXTRACT are in first 2 and 3 characters

    First Formula : extract data from B as is, IF first 2 characters are both NUMBERS
    Second Formula : extract data from B as is, IF first 2 characters are both LETTERS followed by a NUMBER
    Third Formula : extract data from B as is, IF first 3 characters are all LETTERS
    Attached Files Attached Files
    Last edited by ionelz; 03-15-2021 at 06:47 PM.

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    Please try at
    H2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-LEFT($F$2:$F$8)),ROWS(H$2:H2))),"")

    J2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-MID($F$2:$F$8,3,1))/ISERR(-MID($F$2:$F$8,2,1)),ROWS(J$2:J2))),"")

    L2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-MID($F$2:$F$8,4,1))/ISERR(-MID($F$2:$F$8,3,1)),ROWS(L$2:L2))),"")
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: EXTRACT Data, Left Side of Character "/" - various conditions

    Quote Originally Posted by Bo_Ry View Post
    Please try at
    H2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-LEFT($F$2:$F$8)),ROWS(H$2:H2))),"")

    J2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-MID($F$2:$F$8,3,1))/ISERR(-MID($F$2:$F$8,2,1)),ROWS(J$2:J2))),"")

    L2
    =IFERROR(INDEX($F$1:$F$8,AGGREGATE(15,6,ROW($F$2:$F$8)/ISNUMBER(-MID($F$2:$F$8,4,1))/ISERR(-MID($F$2:$F$8,3,1)),ROWS(L$2:L2))),"")
    Thank you very much, again !

+ 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. Replies: 14
    Last Post: 03-01-2021, 10:04 AM
  2. Replies: 14
    Last Post: 05-11-2020, 07:47 AM
  3. Replies: 4
    Last Post: 10-13-2018, 10:15 PM
  4. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  5. [SOLVED] Trim left, but only if the first 3 character start with "The"
    By firstsgt1978 in forum Excel General
    Replies: 7
    Last Post: 03-25-2014, 11:47 AM
  6. [SOLVED] How to remove all Zero"0" & space from left side
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2013, 05:37 AM
  7. Extract values on either side of "+"
    By Ada01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2008, 02:09 PM

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