Split string lowercase/uppercase challange

L

Legacy 143009

Guest
Hi guys!

Well, although I am not very new to excel there are some master tricks that still I don't know. Because of that please tell me step by step like you are explaining to an idiot!

I have a "D" column starts from 5th row and goes up to 165th row. Every cell in this column contains both hotel name and e-mail address. ex. "D5= PARIS HILTON info@parishilton.com"

So it is exactly as it's written, hotel names are in all caps and email addresses are all lows. I think this condition will make something easier but still I couldn't figure out how to...

What I am asking, is there anyway to split the e-mail addresses to "E" column?

On the web I tried many array formulas like "=TRIM......" but it always returned with some errors which means I am doing something wrong.

Long story short, what is the exact formula splits e-mail addresses from D5=>D165 to E5=>165?
How and why?....

Thanks a lot!
 
& and * won't make any difference and it only needs to be confirmed with Enter as it's not an array formula.

This exact formula works fine for me:

=TRIM(RIGHT(SUBSTITUTE(D5," ",REPT(" ",LEN(D5))),LEN(D5)))

Dom
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Ok, didn't work but thank you anyway for spending your time for me.
& and * won't make any difference and it only needs to be confirmed with Enter as it's not an array formula.

This exact formula works fine for me:

=TRIM(RIGHT(SUBSTITUTE(D5," ",REPT(" ",LEN(D5))),LEN(D5)))

Dom
 
Upvote 0
Hi,

try change "," with ";" in formula =TRIM(RIGHT(SUBSTITUTE(D5," ",REPT(" ",LEN(D5))),LEN(D5)))
maybe your regional settings...
 
Upvote 0
Solution
try change "," with ";" in formula =TRIM(RIGHT(SUBSTITUTE(D5," ",REPT(" ",LEN(D5))),LEN(D5)))
maybe your regional settings...
If Ingolf's suggestion doesn't solve your problem, then perhaps you have a blank space at the end of the text in the cell? If that is the case, then this formula should work...

=TRIM(RIGHT(SUBSTITUTE(TRIM(D5)," ",REPT(" ",LEN(D5))),LEN(D5)))
 
Upvote 0
Oh God! This guy made my day :) Thaks a lot!!!

Whew! Glad that got resolve.

Wouldn't NOW be the perfect time to add your LOCATION to your profile? :biggrin:
If we'd seen Sweden (or any of the other countries that use a semicolon instead of a comma) we might have spotted the issue more quickely.
While you're at it...Add the version of Excel you're using to your signature, too.
 
Upvote 0

Forum statistics

Threads
1,216,169
Messages
6,129,272
Members
449,497
Latest member
The Wamp

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