Capitalising the results of a formula

Sutek

New Member
Joined
Jan 27, 2015
Messages
4
Hello and I apologise in advance if this is a stupid newbie question (but thats what i am).
I have an Excel sheet i'm working on, for tracking customers. I currently enter their first and last names in separate cells and have a formula that extracts the first few letters of each, to make up the customer code.
the formula is =LEFT(E2,3)&LEFT(D2,2)
this returns the first three letters of the surname and the first two of the first name and combines them to read one customer code
e.g.
Michael Townsend would return as TowMi
My issue is, I want these to be all capitals e.g. TOWMI and don't know how to do it in the one cell
I have been using the formula =UPPER(B2) in a separate cell and using this as the Customer ID but this seems cumbersome and inefficient.
Is there any way to combine the two formulas in the one cell, or is there a better method to return the result i want?
Thanking you in advance
Cal
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Sutec,

Welcome to MrExcel.

Try..... =UPPER(LEFT(E2,3)&LEFT(D2,2))
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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