+ Reply to Thread
Results 1 to 4 of 4

MID function from right to left

  1. #1
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    MID function from right to left

    The MID function works from left to right so picking the first three characters of a string is easy enough, but I need to pick the LAST three characters of a series of strings with variable length.

    Is it possible to do this?

    NSV

  2. #2
    Gary
    Guest

    Re: MID function from right to left

    Try using RIGHT instead of MID


    "nsv" <[email protected]> wrote in message
    news:[email protected]...
    >
    > The MID function works from left to right so picking the first three
    > characters of a string is easy enough, but I need to pick the LAST
    > three characters of a series of strings with variable length.
    >
    > Is it possible to do this?
    >
    > NSV
    >
    >
    > --
    > nsv
    > ------------------------------------------------------------------------
    > nsv's Profile:
    > http://www.excelforum.com/member.php...o&userid=26500
    > View this thread: http://www.excelforum.com/showthread...hreadid=566959
    >




  3. #3
    Gary
    Guest

    Re: MID function from right to left

    For example in B1 write :-

    =RIGHT(A1,3)

    i hope that helps.

    GARY

    "Gary" <[email protected]> wrote in message
    news:[email protected]...
    > Try using RIGHT instead of MID
    >
    >
    > "nsv" <[email protected]> wrote in message
    > news:[email protected]...
    >>
    >> The MID function works from left to right so picking the first three
    >> characters of a string is easy enough, but I need to pick the LAST
    >> three characters of a series of strings with variable length.
    >>
    >> Is it possible to do this?
    >>
    >> NSV
    >>
    >>
    >> --
    >> nsv
    >> ------------------------------------------------------------------------
    >> nsv's Profile:
    >> http://www.excelforum.com/member.php...o&userid=26500
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=566959
    >>

    >
    >




  4. #4
    Niek Otten
    Guest

    Re: MID function from right to left

    But if for some reason you insist on using MID:
    =MID(A1,LEN(A1)-2,3)

    --
    Kind regards,

    Niek Otten
    Microsoft MVP - Excel

    "Gary" <[email protected]> wrote in message news:[email protected]...
    | For example in B1 write :-
    |
    | =RIGHT(A1,3)
    |
    | i hope that helps.
    |
    | GARY
    |
    | "Gary" <[email protected]> wrote in message
    | news:[email protected]...
    | > Try using RIGHT instead of MID
    | >
    | >
    | > "nsv" <[email protected]> wrote in message
    | > news:[email protected]...
    | >>
    | >> The MID function works from left to right so picking the first three
    | >> characters of a string is easy enough, but I need to pick the LAST
    | >> three characters of a series of strings with variable length.
    | >>
    | >> Is it possible to do this?
    | >>
    | >> NSV
    | >>
    | >>
    | >> --
    | >> nsv
    | >> ------------------------------------------------------------------------
    | >> nsv's Profile:
    | >> http://www.excelforum.com/member.php...o&userid=26500
    | >> View this thread:
    | >> http://www.excelforum.com/showthread...hreadid=566959
    | >>
    | >
    | >
    |
    |



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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