+ Reply to Thread
Results 1 to 10 of 10

Extract Multiple Types Text Strings

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Thumbs up Extract Multiple Types Text Strings

    Hi

    Working on a SAP report & need to filter down or find key contents a bit more than the report is giving

    I can almost do this through Excel but having some issues getting the desired text extractions or results


    For most columns, the following is (kind of) working but not to the full extent needed:
    =IF(C22="","",IFERROR(TRIM(MID(SUBSTITUTE(C22," ",REPT(" ",99)),MAX(1,FIND("10",SUBSTITUTE(C22," ",REPT(" ",99)))+50),99)),""))

    Requesting expertise & assistance with the attached file

    Thanks
    Attached Files Attached Files
    Last edited by mycon73; 05-06-2019 at 01:23 AM.
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Extract Multiple Types Text Strings

    Hi Group

    I know my example looks complex & there's definitely some complexity.

    Think once I can get assistance with the 2 primary questions defined within example, I can manage the rest

    Thanks for the assistance

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Multiple Types Text Strings

    Rather than describe what the formula should do, which is partially helpful, it's mich more important to manually add the ACTUAL results you expect to see. Only then can we be sure whatever we provide is correct.

    At the moment we've no idea what you mean by 'kind of working...but not to the full extent.

    When you add the results be sure to include an example for all relevant rows.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Re: Extract Multiple Types Text Strings

    Hi Richard & Others

    Good Point....

    Revised file highlighting / commenting in line 16 of desired results seeking

    New file name: Extract Desired Texts-v2
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Multiple Types Text Strings

    Before going too far with this have you asked whoever supplies the SAP file whether they can output a csv file instead?

    Back in the day when I used SAP a lot we were always outputting csv files as the basis for reporting in Excel.

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Extract Multiple Types Text Strings

    Hi Richard,

    It would be fantastic if SAP could export into Excel or .csv file!!

    It does for some reports but for whatever reasons, SAP Shortage reports don't export well

    The day shown is the raw output into 1 column

    That's why I'm seeking to extract the pertinent info. that's highlighted through the columns

    Thanks

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Multiple Types Text Strings

    Quote Originally Posted by mycon73 View Post
    Hi Richard,

    It would be fantastic if SAP could export into Excel or .csv file!!

    It does for some reports but for whatever reasons, SAP Shortage reports don't export well

    The day shown is the raw output into 1 column

    That's why I'm seeking to extract the pertinent info. that's highlighted through the columns

    Thanks
    As I remember, and I'm going back 15 years or so, there are 'out of the box' standard reports that SAP churns out, typically .prn text type reports as you currently get, but users can define their own ad hoc reports and choose which filelds should be output from SAP Tables.

    In short then, unless SAP has gone backwards over the last decade or so it almost certainly can output .csv files. You may need to find the teccy types who can help you grab them.

  8. #8
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Extract Multiple Types Text Strings

    Richard,

    Think I'm using an older version of SAP that's not Windows based or has less customize-able features like other SAP / ERP systems used

    In the SAP version I'm using, some reports can be exported out nicely to Excel or .csv. For whatever reasons, the Shortage Report which for this company highlights items to be ordered, ordered & when they should be arrive. This particular report is not a straight export & the only I can get into Excel is the format given

    Getting back to the matter at hand....

    For majority of content or text strings, searching a parameter, such as "PO" (Purchase Order) & want the PO # along with other pertinent data needed as defined through columns

    How to get these?

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Multiple Types Text Strings

    Hi,

    Does the attached help

    I've added formulae to row 37 and down a few rows on the Extract 2 sheet.

    I couldn't find a SO# to test column I but no doubt you can adapt one of the other formulae to pick that up when it occurs.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Thumbs up Re: Extract Multiple Types Text Strings

    Hi Richard,

    Almost works!!

    Given the data in column C or all in 1 column, definitely makes a bit difficult to "cleanly" extracted required info.

    Sweeping the functions down or up, there are still some issues within the cells or rows

    However, it took me a long while but did finally managed to take this Shortage Report & export it "cleanly" into Excel, which then I can now manipulate a bit easier!!

    Thank you very much for trying -
    Last edited by mycon73; 05-07-2019 at 11:53 AM.

+ 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. [SOLVED] Extracting Multiple types of Text Characters from Text Strings
    By DannyGIS in forum Excel General
    Replies: 9
    Last Post: 12-14-2016, 09:35 PM
  2. Replies: 9
    Last Post: 03-09-2015, 10:15 PM
  3. [SOLVED] Extract Values between two Text Strings, MULTIPLE condition
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2015, 01:28 AM
  4. extract multiple pieces of text between two strings
    By verbatim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2014, 04:42 PM
  5. [SOLVED] Need to extract text from within multiple strings and arrange it in a single column
    By sampflederer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2013, 01:35 PM
  6. Extract multiple values from long strings of text
    By Patrick791 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2012, 04:17 AM
  7. extract text strings
    By jhelliar in forum Excel General
    Replies: 5
    Last Post: 09-16-2008, 12:19 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