ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Show just middle info of a cell (https://www.excelbanter.com/excel-worksheet-functions/188188-show-just-middle-info-cell.html)

zeilski

Show just middle info of a cell
 
I have learned how to show just the left info (ex. - Jane instead of Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there is
three or more words, how do I show just the middle info?

ex. - I'd like to change Jane Sue Smith to show just Sue

Don Guillett

Show just middle info of a cell
 
Look in the help index for
LEFT
RIGHT
MID


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
I have learned how to show just the left info (ex. - Jane instead of Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there is
three or more words, how do I show just the middle info?

ex. - I'd like to change Jane Sue Smith to show just Sue



zeilski

Show just middle info of a cell
 
That helps a little. But what if the starting character and the number of
characters differs?

Sally Joe Johnson
Suzanne Peggy Jefferson

"Don Guillett" wrote:

Look in the help index for
LEFT
RIGHT
MID


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
I have learned how to show just the left info (ex. - Jane instead of Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there is
three or more words, how do I show just the middle info?

ex. - I'd like to change Jane Sue Smith to show just Sue




Don Guillett

Show just middle info of a cell
 
Then use FIND or SEARCH to find the starting point for you MID

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
That helps a little. But what if the starting character and the number of
characters differs?

Sally Joe Johnson
Suzanne Peggy Jefferson

"Don Guillett" wrote:

Look in the help index for
LEFT
RIGHT
MID


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
I have learned how to show just the left info (ex. - Jane instead of
Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there
is
three or more words, how do I show just the middle info?

ex. - I'd like to change Jane Sue Smith to show just Sue





David Biddulph[_2_]

Show just middle info of a cell
 
=MID(A1,FIND(" ",A1)+1,FIND(" ",MID(A1,FIND(" ",A1)+1,999))-1)
--
David Biddulph

"zeilski" wrote in message
...
That helps a little. But what if the starting character and the number of
characters differs?

Sally Joe Johnson
Suzanne Peggy Jefferson

"Don Guillett" wrote:

Look in the help index for
LEFT
RIGHT
MID


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
I have learned how to show just the left info (ex. - Jane instead of
Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there
is
three or more words, how do I show just the middle info?

ex. - I'd like to change Jane Sue Smith to show just Sue






Reitanos

Show just middle info of a cell
 
As was said already, MID, RIGHT, LEFT, and FIND are great for taking
pieces out of strings, but don't forget to error check (ISERROR is
handy). People with no middle name cause errors - and pray that Cher
does not show up in your list ;)

On May 20, 11:46 am, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
=MID(A1,FIND(" ",A1)+1,FIND(" ",MID(A1,FIND(" ",A1)+1,999))-1)
--
David Biddulph

"zeilski" wrote in message

...

That helps a little. But what if the starting character and the number of
characters differs?


Sally Joe Johnson
Suzanne Peggy Jefferson


"Don Guillett" wrote:


Look in the help index for
LEFT
RIGHT
MID


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"zeilski" wrote in message
...
I have learned how to show just the left info (ex. - Jane instead of
Jane
Smith) and right info (ex. - Smith instead of Jane Smith), but if there
is
three or more words, how do I show just the middle info?


ex. - I'd like to change Jane Sue Smith to show just Sue




All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com