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
Try using RIGHT instead of MID
"nsv" <nsv.2but6q_1154423407.0734@excelforum-nospam.com> wrote in message
news:nsv.2but6q_1154423407.0734@excelforum-nospam.com...
>
> 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
>
For example in B1 write :-
=RIGHT(A1,3)
i hope that helps.
GARY
"Gary" <gaurav_ss@hotmail.com> wrote in message
news:unaEDvUtGHA.4140@TK2MSFTNGP03.phx.gbl...
> Try using RIGHT instead of MID
>
>
> "nsv" <nsv.2but6q_1154423407.0734@excelforum-nospam.com> wrote in message
> news:nsv.2but6q_1154423407.0734@excelforum-nospam.com...
>>
>> 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
>>
>
>
But if for some reason you insist on using MID:
=MID(A1,LEN(A1)-2,3)
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
"Gary" <gaurav_ss@hotmail.com> wrote in message news:eNEPjzUtGHA.644@TK2MSFTNGP03.phx.gbl...
| For example in B1 write :-
|
| =RIGHT(A1,3)
|
| i hope that helps.
|
| GARY
|
| "Gary" <gaurav_ss@hotmail.com> wrote in message
| news:unaEDvUtGHA.4140@TK2MSFTNGP03.phx.gbl...
| > Try using RIGHT instead of MID
| >
| >
| > "nsv" <nsv.2but6q_1154423407.0734@excelforum-nospam.com> wrote in message
| > news:nsv.2but6q_1154423407.0734@excelforum-nospam.com...
| >>
| >> 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
| >>
| >
| >
|
|
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks