LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
SteveG
 
Posts: n/a
Default Another casing question


Again, probably an easier way but this worked.


=IF(ISERROR(PROPER(LEFT(A3,FIND("
",A3)))),PROPER(LEFT(A3,LEN(A3))),PROPER(LEFT(A3,F IND("
",A3)))&VLOOKUP(RIGHT(A3,LEN(A3)-FIND(" ",A3,1)),$J$1:$K$11,2,FALSE))

One issue with this is if there is a space at the end of the last name
but no suffix, it will return the #N/A error. Use the TRIM function to
avoid this.

=IF(ISERROR(PROPER(LEFT(TRIM(A3),FIND("
",TRIM(A3))))),PROPER(LEFT(A3,LEN(A3))),PROPER(LEF T(A3,FIND("
",A3)))&VLOOKUP(RIGHT(A3,LEN(A3)-FIND(" ",A3,1)),$J$1:$K$11,2,FALSE))

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=498763

 
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
Follow-Up (Clarification) to MIN question Odawg Excel Discussion (Misc queries) 4 October 20th 05 04:04 AM
Benefits many people - Question ebgehringer Excel Discussion (Misc queries) 0 October 7th 05 09:22 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


All times are GMT +1. The time now is 01:33 PM.

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

About Us

"It's about Microsoft Excel"