+ Reply to Thread
Results 1 to 5 of 5

Take certain parts of string

  1. #1
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Take certain parts of string

    Hello. I know this should be easy for a professional VBA writer.
    Could anyone please help me with this?

    I have a text string:

    2200x180x12

    And I need to take numbers from string (numbers always separated by "x")

    dim1=2200
    dim2=180
    dim3=12

    Maybe someone has a similar vba code for this?

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Take certain parts of string

    if all dimensions in column A - result columns B to D
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Take certain parts of string

    Data are in column A from A1.
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  4. #4
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Re: Take certain parts of string

    Thank you! Worked like a charm!

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Take certain parts of string

    Glad to help. Can you please mark as solved

+ 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] 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
  2. Identify certain parts in a string
    By rumil.kochhar in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2015, 06:56 AM
  3. [SOLVED] Split a string into parts
    By LeahS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2013, 09:33 AM
  4. [SOLVED] Searching a string to see if two parts of the string are equal
    By cheal2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2013, 09:58 AM
  5. [SOLVED] Vlookup using parts of a string
    By [email protected] in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-14-2013, 10:38 PM
  6. Parse string into 3 parts using vba
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 07-07-2011, 08:18 AM
  7. splitting string in 2 parts
    By ashishprem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2006, 09:35 AM

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