+ Reply to Thread
Results 1 to 3 of 3

Excel Advanced Editor "SplitTextByDelimiter minus 3 characters"

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Excel Advanced Editor "SplitTextByDelimiter minus 3 characters"

    Hi Guys,

    I am new to M Language (Excel Advanced Editor).

    I am trying to get commodity data from a website "https://tradingeconomics.com/commodities" and put it into an excel sheet.

    I want to split the "Energy" Column into 2 columns; commodity and the units of the commodity, like the below example:
    Crude Oil ; USD/Bbl
    Brent ; USB/Bbl
    ...


    the solution I would like is "Split Column by Delimiter -3 characters" is this possible? How would I write this in the advanced editor.
    If I did it this way, the column would be split correctly regardless if it is "USD" or "CNY" or "EUR", etc.

    Any ideas?


    My attempt using the Splitter.SplitTextByDelimiter
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Thanks,

    JimmyWilliams

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel Advanced Editor "SplitTextByDelimiter minus 3 characters"

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,804

    Re: Excel Advanced Editor "SplitTextByDelimiter minus 3 characters"

    It looks like you actually need to use a different approach since you aren't splitting at a delimiter. You can find the forward slash and then use that position to extract the data up to 3 chars before and after that.
    Everyone who confuses correlation and causation ends up dead.

+ 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. Auto increment characters in Excel, eg "AAAAA", "AAAAB", "AAAAC", etc
    By ExcelHelp72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2022, 01:52 PM
  2. [SOLVED] Day counts, formulas between colums. "c" minus "f" = equals ???.
    By israelalvarado in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2017, 05:58 PM
  3. Replies: 7
    Last Post: 03-17-2014, 01:51 PM
  4. [SOLVED] Emulate Excel 97 getopenfilename "Advanced" find including "Search subfolders"
    By FORTRANguru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 08:21 PM
  5. [SOLVED] What are "BookMarks" in the excel VBA editor and how are they useful?
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 02:13 PM
  6. VBA editor auto changes "." to "'#" as you type ... not just after pressing <enter>?
    By Stripey_uk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-04-2011, 08:00 AM
  7. Replies: 3
    Last Post: 06-28-2005, 06:05 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