SOLVED

Rearrangement and initials.

%3CLINGO-SUB%20id%3D%22lingo-sub-1283205%22%20slang%3D%22en-US%22%3ERearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283205%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20am%20trying%20to%20modify%20a%20column%20that%20has%20a%20name%20order%20that%20is%20not%20the%20one%20I%20want%20as%20output.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20it%20looks%3C%2FP%3E%3CP%3EConnor%20Smith%2C%20John%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20I%20want%20it%3C%2FP%3E%3CP%3EJohn%20Connor%20Smith%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20want%20the%20name%20at%20the%20begging%20and%20remove%20the%20comma.%20Also%20I%20would%20like%20another%20column%20with%20initials%2C%20in%20this%20case%20it%20would%20be%26nbsp%3B%20JCS%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1283205%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1283322%22%20slang%3D%22en-US%22%3ERe%3A%20Rearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283322%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F438859%22%20target%3D%22_blank%22%3E%40Ocasio27%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20do%20the%20same%20with%20the%20help%20of%20flashfill%20and%20below%20is%20the%20formula%20version%20can%20you%20use%20it%20to%20change%20the%20order%20of%20your%20names.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EConnor%20Smith%2C%20John%20%26gt%3B%26nbsp%3BJohn%20Connor%20Smith%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DRIGHT(A2%2CLEN(A2)-FIND(%22%2C%22%2CA2)-1)%26amp%3B%22%20%22%26amp%3BLEFT(A2%2CFIND(%22%2C%22%2CA2)-1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20get%20the%26nbsp%3B%3CSPAN%3Einitials%20use%20the%20below%20formula%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3BJohn%20Connor%20Smith%20%26gt%3B%20JCS%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DLEFT(B2%2C1)%26amp%3BMID(B2%2CFIND(%22%20%22%2CB2)%2B1%2C1)%26amp%3BMID(B2%2CFIND(%22%20%22%2CB2%2CFIND(%22%20%22%2CB2)%2B1)%2B1%2C1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EResults%E2%80%83%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snag_15facdbb.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182281i1A5C7B3A5BBCB4DA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Snag_15facdbb.png%22%20alt%3D%22Snag_15facdbb.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20the%20sample%20file%20for%20your%20ready%20reference%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22lia-message-body%20lia-component-message-view-widget-body%20lia-component-body-signature-highlight-escalation%20lia-component-message-view-widget-body-signature-highlight-escalation%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3E%3CSPAN%3ERegards%2C%20Faraz%20Shaikh%20%7C%20MCT%2C%20MIE%2C%20MOS%20Master%2C%20Excel%20Expert%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22lia-message-body%20lia-component-message-view-widget-body%20lia-component-body-signature-highlight-escalation%20lia-component-message-view-widget-body-signature-highlight-escalation%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3E%3CEM%3E%3CFONT%20color%3D%22%23808080%22%3EIf%20you%20find%20the%20above%20solution%20resolved%20your%20query%20don't%20forget%20mark%20as%26nbsp%3B%3CSPAN%3EOfficial%20Answer%26nbsp%3Bto%20help%20the%20other%20members%20find%20it%20more%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1283328%22%20slang%3D%22en-US%22%3ERe%3A%20Rearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283328%22%20slang%3D%22en-US%22%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20you%20need%20is%20Flash%20Fill%3CBR%20%2F%3E%3CBR%20%2F%3EAssuming%20you%20have%20%3CBR%20%2F%3EConnor%20Smith%2C%20John%20in%20cell%20A1%3CBR%20%2F%3ELuiz%20Adrian%2C%20Rand%20in%20cell%20A2%3CBR%20%2F%3E%20Ibrahim%20Sule%2C%20Amad%20in%20cell%20A3%20and%20so%20on%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20cell%20B1%2C%20type%20in%20John%20Connor%20Smith%20and%20press%20Enter%3CBR%20%2F%3EIn%20cell%20B2%2C%20press%20CTRL%20%2B%20E%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20will%20have%20Rand%20Luiz%20Adrian%20in%20B2%2C%20Amad%20Ibrahim%20Sule%20in%20B3%20and%20so%20on%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20this%20answers%20your%20question%2C%20kindly%20accept%20as%20the%20Best%20Response.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1283381%22%20slang%3D%22en-US%22%3ERe%3A%20Rearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283381%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F438859%22%20target%3D%22_blank%22%3E%40Ocasio27%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20go%20one%20step%20further%20than%20the%20excellent%20responses%20you've%20already%20gotten--which%20did%20tell%20you%20how%20to%20resolve%20the%20presenting%20problem%20of%20having%20the%20names%20in%20the%20wrong%20sequence.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMay%20i%20suggest%20that%20the%20deeper%20solution%2C%20the%20preventive%20action%2C%20is%20to%20always%20record%20names%20NOT%20all%20in%20one%20cell%2C%20but%20rather%20in%20separate%20colulmns%20FIRST%2C%20LAST%2C%20MIDDLE%20as%20well%20as%20PREFIX%20and%20SUFFIX%20if%20needed.%20I%20realize%20it's%20entirely%20possible%20that%20you%20got%20this%20from%20somebody%20else%2C%20in%20which%20case%2C%20please%20pass%20on%20that%20advice.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%3F%20Because%20when%20names%20are%20stored%20that%20way%20it's%20very%20easy%20to%20put%20them%20together%20for%20various%20purposes%2C%20with%20orders%20like%20%22John%20Q.%20Smith%2C%20Esq.%22%20or%20%22Smith%2C%20John%20Q%22%20for%20name%20tags%20or%20alphabetical%20lists%20respectively.%20And%20it%20is%20easy%20using%20LEFT%20to%20strip%20off%20initials.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESame%20principle%20applies%20to%20addresses%20and%20other%20types%20of%20information%20that%20we%20often%20think%20of%20as%20blocks%20of%20information.....it's%20easy%20to%20assemble%20the%20smaller%20building%20blocks%20into%20a%20desired%20order%3B%20it's%20easier%20to%20sort%26nbsp%3B%20or%20sift%20by%20one%20of%20the%20components...%20and%20it's%20just%20good%20database%20design.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286092%22%20slang%3D%22en-US%22%3ERe%3A%20Rearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286092%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20idea%20thanks%2C%20unfortunately%20I%20receive%20these%20files%20from%20another%20department%20were%20I%20have%20no%20control%20at%20all%20and%20I%20have%20to%20fix%20them%20first%20then%20use%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286414%22%20slang%3D%22en-US%22%3ERe%3A%20Rearrangement%20and%20initials.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286414%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F438859%22%20target%3D%22_blank%22%3E%40Ocasio27%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20control%2C%20I%20can%20understand.%20I've%20been%20there%20at%20times.%20I%20do%20wonder%2C%20though%2C%20whether%20you%20might%20approach%20them%20in%20a%20Columbo%20fashion%20(do%20you%20remember%20that%20TV%20show%2C%20or%20are%20you%20too%20young%3F)--sort%20of%20a%20%22Gee%2C%20I%20just%20learned%20this%2C%20and%20wonder%20if%20you%20have%20had%20problems%20ever...%3B%20somebody%20told%20me%20that%20if.....%20etc%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%2C%20in%20your%20position%2C%20if%20this%20is%20a%20recurring%20delivery%20that%20you%20receive%2C%20certainly%20save%20the%20formulas%20you%20got%20yesterday%2C%20and%20reuse%20them.%20I'd%20recommend%20that%20you%20start%20storing%20the%20names%20as%20I%20was%20suggesting.%20I've%20done%20this%20with%20other%20spreadsheets%20I've%20gotten%20from%20other%20people%20--%20and%20sometimes%20I've%20sent%20them%20back%20%22fixed%22%20so%20they%20can%20see%20a%20better%20way.%20But%20I%20certainly%20understand%20that%20not%20everybody%20is%20receptive%20to%20that%20kind%20of%20feedback.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hello, I am trying to modify a column that has a name order that is not the one I want as output.

 

Here is an example

 

How it looks

Connor Smith, John

 

how I want it

John Connor Smith

 

So I want the name at the begging and remove the comma. Also I would like another column with initials, in this case it would be  JCS

 

Thanks in advance.

5 Replies
Highlighted
Best Response confirmed by Ocasio27 (Frequent Contributor)
Solution

Hi@Ocasio27 

 

You can do the same with the help of flashfill and below is the formula version can you use it to change the order of your names.

 

Connor Smith, John > John Connor Smith

 

=RIGHT(A2,LEN(A2)-FIND(",",A2)-1)&" "&LEFT(A2,FIND(",",A2)-1)

 

 

To get the initials use the below formula 

 John Connor Smith > JCS

 

=LEFT(B2,1)&MID(B2,FIND(" ",B2)+1,1)&MID(B2,FIND(" ",B2,FIND(" ",B2)+1)+1,1)

 

 

Results 

Snag_15facdbb.png

 

Attached is the sample file for your ready reference

 

Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert

If you find the above solution resolved your query don't forget mark as Official Answer to help the other members find it more

Highlighted
Hello,

All you need is Flash Fill

Assuming you have
Connor Smith, John in cell A1
Luiz Adrian, Rand in cell A2
Ibrahim Sule, Amad in cell A3 and so on

In cell B1, type in John Connor Smith and press Enter
In cell B2, press CTRL + E

You will have Rand Luiz Adrian in B2, Amad Ibrahim Sule in B3 and so on

If this answers your question, kindly accept as the Best Response.


Regards
Highlighted

@Ocasio27 

 

To go one step further than the excellent responses you've already gotten--which did tell you how to resolve the presenting problem of having the names in the wrong sequence.

 

May i suggest that the deeper solution, the preventive action, is to always record names NOT all in one cell, but rather in separate colulmns FIRST, LAST, MIDDLE as well as PREFIX and SUFFIX if needed. I realize it's entirely possible that you got this from somebody else, in which case, please pass on that advice.

 

Why? Because when names are stored that way it's very easy to put them together for various purposes, with orders like "John Q. Smith, Esq." or "Smith, John Q" for name tags or alphabetical lists respectively. And it is easy using LEFT to strip off initials.

 

Same principle applies to addresses and other types of information that we often think of as blocks of information.....it's easy to assemble the smaller building blocks into a desired order; it's easier to sort  or sift by one of the components... and it's just good database design.

Highlighted

@mathetes 

Good idea thanks, unfortunately I receive these files from another department were I have no control at all and I have to fix them first then use them.

Highlighted

@Ocasio27 

 

No control, I can understand. I've been there at times. I do wonder, though, whether you might approach them in a Columbo fashion (do you remember that TV show, or are you too young?)--sort of a "Gee, I just learned this, and wonder if you have had problems ever...; somebody told me that if..... etc"

 

Anyway, in your position, if this is a recurring delivery that you receive, certainly save the formulas you got yesterday, and reuse them. I'd recommend that you start storing the names as I was suggesting. I've done this with other spreadsheets I've gotten from other people -- and sometimes I've sent them back "fixed" so they can see a better way. But I certainly understand that not everybody is receptive to that kind of feedback.