Combine first 2 letters from first name and first 2 letters from second naem











up vote
2
down vote

favorite












I have a spreadsheet of usernames.



First and Last name are in the same cell, listed in Column A



Is there a formula to take the first 2 letters of the first word and the first 2 letters of second word?



For example John Doe, would become JoDo



I have tried :



=LEFT(A1)&MID(A1,IFERROR(FIND(" ",A1),LEN(A1))+1,IFERROR(FIND(" ",SUBSTITUTE(A1," ","",1)),LEN(A1))-IFERROR(FIND(" ",A1),LEN(A1)))


But this gave me an answer of JoDoe










share|improve this question









New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • @Tetsujin OP has now included their attempt to solve the issue.
    – PeterH
    29 mins ago










  • @PeterH - cool. vote retracted.
    – Tetsujin
    16 mins ago















up vote
2
down vote

favorite












I have a spreadsheet of usernames.



First and Last name are in the same cell, listed in Column A



Is there a formula to take the first 2 letters of the first word and the first 2 letters of second word?



For example John Doe, would become JoDo



I have tried :



=LEFT(A1)&MID(A1,IFERROR(FIND(" ",A1),LEN(A1))+1,IFERROR(FIND(" ",SUBSTITUTE(A1," ","",1)),LEN(A1))-IFERROR(FIND(" ",A1),LEN(A1)))


But this gave me an answer of JoDoe










share|improve this question









New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • @Tetsujin OP has now included their attempt to solve the issue.
    – PeterH
    29 mins ago










  • @PeterH - cool. vote retracted.
    – Tetsujin
    16 mins ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have a spreadsheet of usernames.



First and Last name are in the same cell, listed in Column A



Is there a formula to take the first 2 letters of the first word and the first 2 letters of second word?



For example John Doe, would become JoDo



I have tried :



=LEFT(A1)&MID(A1,IFERROR(FIND(" ",A1),LEN(A1))+1,IFERROR(FIND(" ",SUBSTITUTE(A1," ","",1)),LEN(A1))-IFERROR(FIND(" ",A1),LEN(A1)))


But this gave me an answer of JoDoe










share|improve this question









New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a spreadsheet of usernames.



First and Last name are in the same cell, listed in Column A



Is there a formula to take the first 2 letters of the first word and the first 2 letters of second word?



For example John Doe, would become JoDo



I have tried :



=LEFT(A1)&MID(A1,IFERROR(FIND(" ",A1),LEN(A1))+1,IFERROR(FIND(" ",SUBSTITUTE(A1," ","",1)),LEN(A1))-IFERROR(FIND(" ",A1),LEN(A1)))


But this gave me an answer of JoDoe







microsoft-excel






share|improve this question









New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 31 mins ago









PeterH

3,19632245




3,19632245






New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









prweq

112




112




New contributor




prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






prweq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • @Tetsujin OP has now included their attempt to solve the issue.
    – PeterH
    29 mins ago










  • @PeterH - cool. vote retracted.
    – Tetsujin
    16 mins ago


















  • @Tetsujin OP has now included their attempt to solve the issue.
    – PeterH
    29 mins ago










  • @PeterH - cool. vote retracted.
    – Tetsujin
    16 mins ago
















@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
29 mins ago




@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
29 mins ago












@PeterH - cool. vote retracted.
– Tetsujin
16 mins ago




@PeterH - cool. vote retracted.
– Tetsujin
16 mins ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote













Yes; assuming each person only has a First and Last name, and this is always separated by a space you can use the below:



=LEFT(A1,2)&MID(A1,SEARCH(" ",A1)+1,2)


I could only base this answer on those assumptions as it is all you provided.



Or if you want a space to still be included:



=LEFT(A1,2)&" "&MID(A1,SEARCH(" ",A1)+1,2)





share|improve this answer





















  • Thank you very much for your answer.
    – prweq
    44 mins ago










  • @prweq no probs, accept it as correct if it works for you
    – PeterH
    42 mins ago


















up vote
1
down vote













This is another way...



enter image description here




  • A - Name

  • B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))






share|improve this answer























  • You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
    – PeterH
    35 mins ago










  • Yeah, I did that a few moments after!
    – Stese
    30 mins ago










  • yeah I noticed you edited the answer, Nice Answer !
    – PeterH
    28 mins ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






prweq is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382305%2fcombine-first-2-letters-from-first-name-and-first-2-letters-from-second-naem%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote













Yes; assuming each person only has a First and Last name, and this is always separated by a space you can use the below:



=LEFT(A1,2)&MID(A1,SEARCH(" ",A1)+1,2)


I could only base this answer on those assumptions as it is all you provided.



Or if you want a space to still be included:



=LEFT(A1,2)&" "&MID(A1,SEARCH(" ",A1)+1,2)





share|improve this answer





















  • Thank you very much for your answer.
    – prweq
    44 mins ago










  • @prweq no probs, accept it as correct if it works for you
    – PeterH
    42 mins ago















up vote
2
down vote













Yes; assuming each person only has a First and Last name, and this is always separated by a space you can use the below:



=LEFT(A1,2)&MID(A1,SEARCH(" ",A1)+1,2)


I could only base this answer on those assumptions as it is all you provided.



Or if you want a space to still be included:



=LEFT(A1,2)&" "&MID(A1,SEARCH(" ",A1)+1,2)





share|improve this answer





















  • Thank you very much for your answer.
    – prweq
    44 mins ago










  • @prweq no probs, accept it as correct if it works for you
    – PeterH
    42 mins ago













up vote
2
down vote










up vote
2
down vote









Yes; assuming each person only has a First and Last name, and this is always separated by a space you can use the below:



=LEFT(A1,2)&MID(A1,SEARCH(" ",A1)+1,2)


I could only base this answer on those assumptions as it is all you provided.



Or if you want a space to still be included:



=LEFT(A1,2)&" "&MID(A1,SEARCH(" ",A1)+1,2)





share|improve this answer












Yes; assuming each person only has a First and Last name, and this is always separated by a space you can use the below:



=LEFT(A1,2)&MID(A1,SEARCH(" ",A1)+1,2)


I could only base this answer on those assumptions as it is all you provided.



Or if you want a space to still be included:



=LEFT(A1,2)&" "&MID(A1,SEARCH(" ",A1)+1,2)






share|improve this answer












share|improve this answer



share|improve this answer










answered 50 mins ago









PeterH

3,19632245




3,19632245












  • Thank you very much for your answer.
    – prweq
    44 mins ago










  • @prweq no probs, accept it as correct if it works for you
    – PeterH
    42 mins ago


















  • Thank you very much for your answer.
    – prweq
    44 mins ago










  • @prweq no probs, accept it as correct if it works for you
    – PeterH
    42 mins ago
















Thank you very much for your answer.
– prweq
44 mins ago




Thank you very much for your answer.
– prweq
44 mins ago












@prweq no probs, accept it as correct if it works for you
– PeterH
42 mins ago




@prweq no probs, accept it as correct if it works for you
– PeterH
42 mins ago












up vote
1
down vote













This is another way...



enter image description here




  • A - Name

  • B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))






share|improve this answer























  • You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
    – PeterH
    35 mins ago










  • Yeah, I did that a few moments after!
    – Stese
    30 mins ago










  • yeah I noticed you edited the answer, Nice Answer !
    – PeterH
    28 mins ago















up vote
1
down vote













This is another way...



enter image description here




  • A - Name

  • B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))






share|improve this answer























  • You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
    – PeterH
    35 mins ago










  • Yeah, I did that a few moments after!
    – Stese
    30 mins ago










  • yeah I noticed you edited the answer, Nice Answer !
    – PeterH
    28 mins ago













up vote
1
down vote










up vote
1
down vote









This is another way...



enter image description here




  • A - Name

  • B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))






share|improve this answer














This is another way...



enter image description here




  • A - Name

  • B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))







share|improve this answer














share|improve this answer



share|improve this answer








edited 32 mins ago

























answered 37 mins ago









Stese

732414




732414












  • You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
    – PeterH
    35 mins ago










  • Yeah, I did that a few moments after!
    – Stese
    30 mins ago










  • yeah I noticed you edited the answer, Nice Answer !
    – PeterH
    28 mins ago


















  • You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
    – PeterH
    35 mins ago










  • Yeah, I did that a few moments after!
    – Stese
    30 mins ago










  • yeah I noticed you edited the answer, Nice Answer !
    – PeterH
    28 mins ago
















You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
– PeterH
35 mins ago




You could go even further and remove all those extra columns by merging them =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
– PeterH
35 mins ago












Yeah, I did that a few moments after!
– Stese
30 mins ago




Yeah, I did that a few moments after!
– Stese
30 mins ago












yeah I noticed you edited the answer, Nice Answer !
– PeterH
28 mins ago




yeah I noticed you edited the answer, Nice Answer !
– PeterH
28 mins ago










prweq is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















prweq is a new contributor. Be nice, and check out our Code of Conduct.













prweq is a new contributor. Be nice, and check out our Code of Conduct.












prweq is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382305%2fcombine-first-2-letters-from-first-name-and-first-2-letters-from-second-naem%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo