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
microsoft-excel
New contributor
add a comment |
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
microsoft-excel
New contributor
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
29 mins ago
@PeterH - cool. vote retracted.
– Tetsujin
16 mins ago
add a comment |
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
microsoft-excel
New contributor
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
microsoft-excel
New contributor
New contributor
edited 31 mins ago
PeterH
3,19632245
3,19632245
New contributor
asked 1 hour ago
prweq
112
112
New contributor
New contributor
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
29 mins ago
@PeterH - cool. vote retracted.
– Tetsujin
16 mins ago
add a comment |
@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
add a comment |
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)
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
add a comment |
up vote
1
down vote
This is another way...
- A - Name
- B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
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
add a comment |
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)
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
add a comment |
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)
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
add a comment |
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)
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)
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
add a comment |
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
add a comment |
up vote
1
down vote
This is another way...
- A - Name
- B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
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
add a comment |
up vote
1
down vote
This is another way...
- A - Name
- B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
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
add a comment |
up vote
1
down vote
up vote
1
down vote
This is another way...
- A - Name
- B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
This is another way...
- A - Name
- B - =CONCATENATE(LEFT(A1,2),LEFT(RIGHT(A1,(LEN(A1)-FIND(" ",A1))),2))
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
29 mins ago
@PeterH - cool. vote retracted.
– Tetsujin
16 mins ago