Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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 |
#2
![]() |
|||
|
|||
![]()
Yes, it is possible to use the MID function to pick the last three characters of a string from right to left. Here's how you can do it:
This formula tells Excel to start at the position of the third character from the end ( Formula:
Formula:
So, for example, if the string in cell A1 is "Hello World", the formula would return "rld".
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try using RIGHT instead of MID
"nsv" wrote in message ... 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
For example in B1 write :-
=RIGHT(A1,3) i hope that helps. GARY "Gary" wrote in message ... Try using RIGHT instead of MID "nsv" wrote in message ... 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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
But if for some reason you insist on using MID:
=MID(A1,LEN(A1)-2,3) -- Kind regards, Niek Otten Microsoft MVP - Excel "Gary" wrote in message ... | For example in B1 write :- | | =RIGHT(A1,3) | | i hope that helps. | | GARY | | "Gary" wrote in message | ... | Try using RIGHT instead of MID | | | "nsv" wrote in message | ... | | 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to nest a left function within a sumif function? | Excel Worksheet Functions | |||
numerical integration | Excel Discussion (Misc queries) | |||
Vlookup and left function | Excel Discussion (Misc queries) | |||
Varying left criteria based on 1st Letter....If Function? | Excel Discussion (Misc queries) | |||
DATA VALIDATION with LEFT function | Excel Discussion (Misc queries) |