Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BMoneeTheMoneeMan
 
Posts: n/a
Default how do i automatically format a cell to only recognize the first w

I have a column that has a list of first names. I want to format the cells so
that it will take out the middle initial if there is any. How can I do an
auto-format to have it take out the middle initial?
Thank
Brian

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't think you'll find any formatting that'll help you.

But if your names are entered like:

Monee T. Man
(with a single character followed by a period)

Then you could use a formula like:
=IF(ISERROR(FIND(".",A1,1)),A1,TRIM(REPLACE(A1,FIN D(".",A1,1)-1,2,"")))

Put this in a nearby cell and copy down the length of your list.

If this doesn't help, you should share what your data looks like (not a
workbook--just some typical entries).

BMoneeTheMoneeMan wrote:

I have a column that has a list of first names. I want to format the cells so
that it will take out the middle initial if there is any. How can I do an
auto-format to have it take out the middle initial?
Thank
Brian


--

Dave Peterson
  #3   Report Post  
BMoneeTheMoneeMan
 
Posts: n/a
Default

Thanks for your help.
I did a sort by that column and told it to split anything that had a space
between them.
So if it saw "Ronald L" it split Ronald from L and put the L in a different
column. That cleaned up my first names so that I could import them into my
DB with no prob.
Thanks again
BMonee


"Dave Peterson" wrote:

I don't think you'll find any formatting that'll help you.

But if your names are entered like:

Monee T. Man
(with a single character followed by a period)

Then you could use a formula like:
=IF(ISERROR(FIND(".",A1,1)),A1,TRIM(REPLACE(A1,FIN D(".",A1,1)-1,2,"")))

Put this in a nearby cell and copy down the length of your list.

If this doesn't help, you should share what your data looks like (not a
workbook--just some typical entries).

BMoneeTheMoneeMan wrote:

I have a column that has a list of first names. I want to format the cells so
that it will take out the middle initial if there is any. How can I do an
auto-format to have it take out the middle initial?
Thank
Brian


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I format a value when using it within a cell reference tha. packmule Excel Worksheet Functions 4 February 3rd 05 09:32 PM
date format within a cell containing a formula Brushie76 Excel Discussion (Misc queries) 1 January 22nd 05 03:50 AM
Protected cells -automatically format to a different color Fred Evans Excel Discussion (Misc queries) 9 December 3rd 04 12:59 PM
How to change (delivery) days and automatically the receive date in an other cell? Elboo Excel Worksheet Functions 5 November 22nd 04 02:44 PM
Format Cell Colour scottymelloty Excel Worksheet Functions 2 November 17th 04 08:19 PM


All times are GMT +1. The time now is 04:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"