Forumla question

Trilback

New Member
Joined
Mar 14, 2014
Messages
22
I want to be able to make my job easier at work. I need to be able to do the following. ex. Valeriano, Bruno D

For the above last name, first name space Middle I I need to be able to copy from a web site and it show in another cell the customer the first 6 char of there last name, first letter of there fist name + middle I. How would I do that? For the above ex the answer would be ValeriBD
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try

Book8
ABC
1Valeriano, Bruno DValeriBD
2
3
Sheet1
Cell Formulas
RangeFormula
B1B1=LEFT(A1,6)&MID(TRIM(A1),SEARCH(" ",TRIM(A1))+1,1)&RIGHT(A1)
 
Upvote 0
is it not what you want?

Book10
ABC
1Valeriano, Bruno DValeriBD
2Kinderman, William FKinderWF
3
4
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=LEFT(A1,6)&MID(TRIM(A1),SEARCH(" ",TRIM(A1))+1,1)&RIGHT(A1)


If not then please give some more examples
 
Upvote 0
An alternate if your version of Excel supports the 'Let' statement.
Excel Formula:
=LET(X,SUBSTITUTE(SUBSTITUTE(TRIM(A1)," ",""),CHAR(160),""),LEFT(X,6)&MID(X,FIND(",",X)+1,1)&RIGHT(X,1))
 
Upvote 0
TextBefore.xlsm
AB
4Valeriano, Bruno DValeriBD
5
1c
Cell Formulas
RangeFormula
B4B4=LEFT(A4,6)&MID(A4,FIND(" ",A4)+1,1)&TEXTAFTER(A4," ",2)
 
Upvote 0
An alternate if your version of Excel supports the 'Let' statement.
Excel Formula:
=LET(X,SUBSTITUTE(SUBSTITUTE(TRIM(A1)," ",""),CHAR(160),""),LEFT(X,6)&MID(X,FIND(",",X)+1,1)&RIGHT(X,1))
I have 2016 of office at work atm for this machine.
 
Upvote 0
I have 2016 of office at work

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top