+ Reply to Thread
Results 1 to 4 of 4

Function to take text from x:th char to next n char

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    22

    Function to take text from x:th char to next n char

    Following text is in cell:
    e:\Copies O - V\Files\Company\ex-supplier\exhausts\Audi\A3 8L 96-5, 03\041-HR_Simons_Exhaust_Audi_A3_8L_rostfritt_stainless.jpg

    I want function which takes text out from x:th char to next x:th char. Ie: =takeout(7;"\";8)
    Function finds 7th "\" and takes text between seventh "\" and 8ht "\". Result would be: A3 8L 96-5, 03.
    =takeout(6;"\";8) -> Audi\A3 8L 96-5, 03
    I have tried to find solution all morning but I don't get it. I'm quite bad with DIY functions.
    Last edited by Temporary-Failure; 10-07-2013 at 02:19 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function to take text from x:th char to next n char

    something like this?
    Attached Files Attached Files
    Last edited by martindwilson; 10-06-2013 at 06:45 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Function to take text from x:th char to next n char

    Use in cell like

    =TakeOut(A1,"\",7,8)
    where
    A1 holds the data
    "\" = delimiter
    7 = first position
    8 = last position

    To a standard module
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-22-2010
    Location
    Finland
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Function to take text from x:th char to next n char

    Thanks Jindon. Perfect.

+ 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] Char (10) function not working
    By saigalp in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-01-2020, 07:16 AM
  2. Changing a single Char in a string to another ASCII char
    By goofy78270 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2007, 09:45 AM
  3. [SOLVED] Tab char in text data
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 05-31-2006, 01:40 PM
  4. Replies: 6
    Last Post: 03-10-2006, 01:15 PM
  5. [SOLVED] How can I use CHAR() function in VB?
    By Basil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2005, 01: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