Combine first 2 letters from first name and first 2 letters from second name
up vote
3
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 worksheet-function
New contributor
add a comment |
up vote
3
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 worksheet-function
New contributor
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago
add a comment |
up vote
3
down vote
favorite
up vote
3
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 worksheet-function
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 worksheet-function
microsoft-excel worksheet-function
New contributor
New contributor
edited 44 mins ago
WELZ
1411212
1411212
New contributor
asked 2 hours ago
prweq
162
162
New contributor
New contributor
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago
add a comment |
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
1 hour ago
@Tetsujin OP has now included their attempt to solve the issue.
– PeterH
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
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
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
add a comment |
up vote
2
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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
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
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
add a comment |
up vote
4
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
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
add a comment |
up vote
4
down vote
up vote
4
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 1 hour ago
PeterH
3,21632245
3,21632245
Thank you very much for your answer.
– prweq
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
add a comment |
Thank you very much for your answer.
– prweq
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
Thank you very much for your answer.
– prweq
1 hour ago
Thank you very much for your answer.
– prweq
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
@prweq no probs, accept it as correct if it works for you
– PeterH
1 hour ago
add a comment |
up vote
2
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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour ago
add a comment |
up vote
2
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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour ago
add a comment |
up vote
2
down vote
up vote
2
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 1 hour ago
answered 1 hour ago
Stese
742414
742414
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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour 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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour 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
1 hour 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
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
Yeah, I did that a few moments after!
– Stese
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour ago
yeah I noticed you edited the answer, Nice Answer !
– PeterH
1 hour 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-name%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
1 hour ago
@PeterH - cool. vote retracted.
– Tetsujin
1 hour ago