Remove spaces from 2 cells & join the alphabets

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,214
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
C5=MAngO123-99 Tomato D5=ITALIAN Forest Trees E5=26
In F5 I want first 26 (E5) digits after removing spaces from C5 & D5 & suffixing D5 with C5 & in UPPER CASE.
Answer:
MANGO123-99TOMATOITALIANFO.
How to accomplish?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Even "." (dot) needs to be removed from C5 & D5, if any.
 
Upvote 0
Try

=LEFT(UPPER(SUBSTITUTE(SUBSTITUTE(C5," ",""),".","")&SUBSTITUTE(SUBSTITUTE(D5," ",""),".","")),E5)
 
Upvote 0
I think you could also get away with just doing the substitutes once:

=LEFT(UPPER(SUBSTITUTE(SUBSTITUTE(C5&D5," ",""),".","")),E5)
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,390
Members
449,222
Latest member
taner zz

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