+ Reply to Thread
Results 1 to 6 of 6

Change how name is displayed in a cell

  1. #1
    Registered User
    Join Date
    07-13-2016
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    5

    Change how name is displayed in a cell

    I have a cell with values like: Smith, John A.

    How can I change them to read: JOHN SMITH

    Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Change how name is displayed in a cell

    I think that you should give us more examples of your data. Can you have

    Smith John A.
    Smith III, John A.
    Smith, J.
    etc....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Change how name is displayed in a cell

    part way there..
    =UPPER(RIGHT(A1,LEN(A1) -FIND(",",A1))&" " &LEFT(A1,FIND(",",A1)-1))

    will have to think about the initial
    Frob first, tweak later

  4. #4
    Registered User
    Join Date
    07-13-2016
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    5
    Let's change the question. I now have values in a first name column and a last name column. How can I combine the two columns?

    Quote Originally Posted by Glenn Kennedy View Post
    I think that you should give us more examples of your data. Can you have

    Smith John A.
    Smith III, John A.
    Smith, J.
    etc....

  5. #5
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Change how name is displayed in a cell

    =upper(A1 & " " & B1)

    got the initial, lol

    =REPLACE(UPPER(RIGHT(A1,LEN(A1) -FIND(",",A1))&" " &LEFT(A1,FIND(",",A1)-1)),FIND(".",UPPER(RIGHT(A1,LEN(A1) -FIND(",",A1))&" " &LEFT(A1,FIND(",",A1)-1)))-1,3,"")

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Change how name is displayed in a cell

    BtW, this will do your example:

    =UPPER(TRIM(LEFT(SUBSTITUTE(MID(A1,FIND(" ",A1)+1,255)," ",REPT(" ",500)),500))&" "&SUBSTITUTE(A1,MID(A1,FIND(" ",A1)-1,255),""))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Change how Date and Time is being displayed
    By floresp in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-19-2015, 06:40 PM
  2. [SOLVED] Pull data from one tab to another (but change how it's displayed)
    By bkarhu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2014, 11:36 AM
  3. [SOLVED] How to change which chart is displayed based on a cell value
    By Mubzie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2014, 11:58 AM
  4. [SOLVED] Set number value displayed in cell when certain text value is displayed in another
    By chrisswann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2013, 09:07 AM
  5. Change way date is displayed in cell....
    By howardrg in forum Excel General
    Replies: 10
    Last Post: 02-02-2012, 01:55 PM
  6. [SOLVED] Can I change the way truth values are displayed?
    By xirx in forum Excel General
    Replies: 4
    Last Post: 08-07-2006, 08:55 AM
  7. [SOLVED] How to change no. of decimal places displayed depending on cell va
    By fulmodad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2006, 10:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1