+ Reply to Thread
Results 1 to 3 of 3

The inverse of the Mid Function

  1. #1
    Registered User
    Join Date
    03-31-2009
    Location
    Auburn Alabama
    MS-Off Ver
    Microsoft Office Excel 2007 (Windows)
    Posts
    99

    The inverse of the Mid Function

    Hello.
    My question is about the Mid function.
    I know the below code removes a specified portion of a string from a longer string.

    Please Login or Register  to view this content.
    The above assigns the variable sContentsRemoved with the value of the removed contents: "the string"

    However, I want to do the opposite of the above.
    I want to assign a variable with the contents remaining in the string, not the contents taken out of the string.
    So, in the example above, I'd want to assign a variable sContentsRemaining with the value "This is "

    In my actual program, I don't know the contents that will remain in the string, which is why I can't just pull them out specifically.
    I only know the contents in the string I don't want. Thus, I hope to use my knowledge of the contents I do not want, in order to separate them from the contents that I DO want.

    Any help would be greatly appreciated! Thanks so much!!
    Last edited by CrazyFileMaker; 04-13-2010 at 04:53 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: The inverse of the Mid Function

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-31-2009
    Location
    Auburn Alabama
    MS-Off Ver
    Microsoft Office Excel 2007 (Windows)
    Posts
    99

    Re: The inverse of the Mid Function

    Thanks, shg - just what I needed to know!

    Cheers!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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