Remove last 19 characters from a field

viper20

New Member
Joined
Sep 6, 2011
Messages
7
Hey Everyone,

I am a total excel noob how can i remove the last 19 characters from a field for example:

<table width="652" border="0" cellpadding="0" cellspacing="0"><col width="652"><tr height="20"> <td style="height:15.0pt;width:489pt" width="652" height="20">http://www.google.com,random14,hello532,

how would i remove everything after the "m" in the .com?

i have a bunch of fields i need to do this for they are all different sizes but the last 19 characters in all them need to be removed how could i accomplish this?

Thanks
</td> </tr></table>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
ok i did exactly that, and that just returns the value i want to get rid of (the last 19 characters) i want the formula to return everything except the last 19 characters so in the example i provided i want it to return only
http://www.google.com

Thanks
 
Upvote 0
Maybe

=LEFT(A1,SEARCH(".com",A1)+3)

Biz
 
Upvote 0
Assuming there are always at least 19 characters in A1 try using

=LEFT(A1,LEN(A1)-19)

Hey Barry,

this works great thanks!

Now another dumb question how do i apply this formula to all the 580 fields i need to apply this for?

Thanks so much for all your help everyone
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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