Change Address Text from multiple lines to a single line ?

Maverick27

Active Member
Joined
Sep 23, 2010
Messages
329
Office Version
  1. 2013
Platform
  1. Windows
Attn Excel Gurus

Anyone care to share a Macro or Excel Function to change Address text layout from multiple lines to a single line ?

1. Remove top blank space(s) shown by red box
2. Insert comma & single space after each line of text


Original format:

text-before.jpg


After Modification:

text-after.jpg


The Address is displayed on Column U of the Sheet. Row # : 194

Thanks in Advance.
 
Thanks. If this isn't what you want, then please also provide the expected result (manually entered) with XL2BB as well.

Maverick27.xlsm
AB
1Email: admin@ankole.co.ke Email: x Email: x Facebook: www.facebook.com/ankolegrill Instagram: www.instagram.com/ankolegrill Linkedin www.linkedin.com/company/ankole-grill Twitter: www.twitter.com/ankolegrill Web: www.ankole.co.keEmail:admin@ankole.co.ke ; Email:x ; Email:x ; Facebook:www.facebook.com/ankolegrill ; Instagram:www.instagram.com/ankolegrill ; Linkedinwww.linkedin.com/company/ankole-grill ; Twitter:www.twitter.com/ankolegrill ; Web:www.ankole.co.ke
Sheet2
Cell Formulas
RangeFormula
B1B1=SUBSTITUTE(SUBSTITUTE(A1,CHAR(10)&CHAR(10)," ; "),CHAR(10),"")
 
Upvote 0
Solution

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Thanks. If this isn't what you want, then please also provide the expected result (manually entered) with XL2BB as well.

Maverick27.xlsm
AB
1Email: admin@ankole.co.ke Email: x Email: x Facebook: www.facebook.com/ankolegrill Instagram: www.instagram.com/ankolegrill Linkedin www.linkedin.com/company/ankole-grill Twitter: www.twitter.com/ankolegrill Web: www.ankole.co.keEmail:admin@ankole.co.ke ; Email:x ; Email:x ; Facebook:www.facebook.com/ankolegrill ; Instagram:www.instagram.com/ankolegrill ; Linkedinwww.linkedin.com/company/ankole-grill ; Twitter:www.twitter.com/ankolegrill ; Web:www.ankole.co.ke
Sheet2
Cell Formulas
RangeFormula
B1B1=SUBSTITUTE(SUBSTITUTE(A1,CHAR(10)&CHAR(10)," ; "),CHAR(10),"")
fixed.jpg


Thanks- looks Good !! (y)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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