How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,831
Office Version
  1. 2010
Platform
  1. Windows
Hello, I'm interested in the last digit of the string... If it's a "." or a ";" I need that removing, if it's not a "." or a ";" then I want one cell to the left... So, what formula would I place in C2 so that all my returns are "Assistance to Finland" please...

Sheet3

BC
2Assistance to FinlandAssistance to Finland
3Assistance to Finland.Assistance to Finland
4Assistance to Finland;Assistance to Finland

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:191px;"><col style="width:184px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


<strike></strike>
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi,

If the "." or ";" is Always at the end of the Text string, use C2 formula.
If there might be Other "." or ";" within the text string that you Don't want removed, but remove the End one, use D5 formula:


Book1
BCD
2Assistance to FinlandAssistance to Finland
3Assistance to Finland.Assistance to Finland
4Assistance to Finland;Assistance to Finland
5Assistance. To; FinlandAssistance. To; Finland
6Assistance; to. Finland;Assistance; to. Finland
Sheet579
Cell Formulas
RangeFormula
C2=SUBSTITUTE(SUBSTITUTE(B2,".",""),";","")
D5=IF(OR(RIGHT(B5)={".",";"}),LEFT(B5,LEN(B5)-1),B5)
 
Last edited:
Upvote 0
Thanks again jtakw… You've contributed so much to what I'm trying to do...!
 
Upvote 0
You're welcome, glad to help, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,517
Messages
6,131,116
Members
449,622
Latest member
lejohnson93

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