Results 1 to 4 of 4

Split a string

Threaded View

birdmannn Split a string 12-05-2019, 01:01 PM
jindon Re: Split a string 12-05-2019, 11:24 PM
birdmannn Re: Split a string 12-06-2019, 05:17 AM
Rick Rothstein Re: Split a string 12-06-2019, 12:15 AM
  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    London
    MS-Off Ver
    2016
    Posts
    24

    Split a string

    Hey guys!

    I have a string in A2 (1-2(3) 3-4 5-6(4) 7-8 9-10(3) 11-12) that needs to be split in its components. Once done, I would like to populate the range E1:P1 with the results. Please see the excel sheet attached.

    In B1 and B2 there are two attributes, one of which is Product 1 and the second one is Product 2. Sometimes Products 1 and 2 are swapped. In addition, each pair of numbers sometimes has another number in brackets next to it. If that’s the case as in e.g. 9-10(3), then the lesser of two numbers (9 and 10) gets the 3 and the greater of two gets automatically an 8 assigned to it. 3 and 8 shall be captured in the corresponding columns, however one row below.

    If product 1 and product 2 are swapped in B1 and B2, then each number pair inside the initial string shall be mirrored as showed in the attached file.

    I hope it makes sense and there is someone out there who can help me. Your help is highly appreciated.

    Thanks in advance!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Split String
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2016, 06:34 PM
  2. [SOLVED] Split string and apply function on string parts
    By fandreacci in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2015, 12:34 PM
  3. [SOLVED] Split String at every "/" then put split string results into a multiline textbox.
    By Andrew Andromeda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2015, 01:49 AM
  4. How to split a string based on a sub string
    By dippa in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-24-2014, 08:04 PM
  5. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  6. [SOLVED] Split String Value
    By Ninja2k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2013, 12:47 PM
  7. Can excels Split() function split a string up at multiple spots?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2011, 02:36 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