Formula Help

How_Do_I

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

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:191px;"><col style="width:184px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland.[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland;[/TD]
[TD="bgcolor: #ffff00"]Assistance to Finland[/TD]

</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


<strike></strike>
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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