+ Reply to Thread
Results 1 to 6 of 6

Extracting Inconsistent Data

  1. #1
    Registered User
    Join Date
    10-09-2017
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    4

    Extracting Inconsistent Data

    Attachment 541811

    Hello,

    I'd like to extract the BNR # from column A and show it as I mocked up in B. I have a sheet with 1000s of records without a consistent format. Any help would be appreciated.

    Thanks!
    Megan
    Attached Images Attached Images

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Extracting Inconsistent Data

    Hi Megan, welcome to the forum!

    I would use a helper column here (2 columns with formulas).

    B1 =TRIM(RIGHT(SUBSTITUTE(A1,"BNR",REPT(" ",LEN(A1))),LEN(A1)))
    C1 =IFERROR(LEFT(B1,FIND("/",B1)-1),B1)

    Drag down as far as needed.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Extracting Inconsistent Data

    ARRAY formula in B2, then drag down

    =IFERROR(LARGE(IF(ISNUMBER(LEFT(RIGHT(A1,LEN(A1)-FIND("/BNR ",A1)-5),ROW(INDIRECT("1:"&LEN(A1)-FIND("/BNR ",A1)-5)))+0),LEFT(RIGHT(A1,LEN(A1)-FIND("/BNR ",A1)-5),ROW(INDIRECT("1:"&LEN(A1)-FIND("/BNR ",A1)-5)))+0,""),1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    10-09-2017
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    4

    Re: Extracting Inconsistent Data

    Thank you this worked!

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Extracting Inconsistent Data

    Thank you for coming back to let us know. Which solution worked for you?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    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: Extracting Inconsistent Data

    Here is another one
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 This text is just a test/text /just a test /BNR 321654 321654
    2 This text is just a test/text /BNR 987654323.25/Additional requirements 987654323.3
    3 This text is just a test/text /BNR 156.35/CSST Testing 156.35
    4 This text is just a test/text / additional text/BNR 89456123.2455/Status/Open 89456123.25
    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

+ 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. Extracting inconsistent data
    By tessda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2014, 02:11 AM
  2. [SOLVED] Extracting specific data from large inconsistent strings
    By Karnik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-01-2013, 01:52 AM
  3. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  4. Extracting numbers from inconsistent text strings
    By netguru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2012, 03:20 AM
  5. Replies: 1
    Last Post: 08-11-2012, 05:43 PM
  6. How to assign a value w/inconsistent data
    By hermanexcel in forum Excel General
    Replies: 11
    Last Post: 02-06-2011, 01:59 PM
  7. Inconsistent data rows
    By junada0 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2010, 04:15 PM

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