How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,817
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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
7,245
Office Version
  1. 2016
Platform
  1. Windows
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:

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,817
Office Version
  1. 2010
Platform
  1. Windows
Thanks again jtakw… You've contributed so much to what I'm trying to do...!
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
7,245
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, glad to help, and thanks for the feedback.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,080
Messages
5,835,246
Members
430,350
Latest member
Shuvam Senapati

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
Top