A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Removal of "dot" following last digit



 
 
Thread Tools Display Modes
  #1  
Old March 12th, 2004, 03:00 AM
Tom
external usenet poster
 
Posts: n/a
Default Removal of "dot" following last digit

Does anyone know of any function that removes a "dot" following the last
digit (see sample data below).

Data sample BEFORE removal of last "dot":
1.1
1.1.1. has "dot" following the last digit
1.2. has "dot" following the last digit
1.2.1

Data sample AFTER removal of last digit:
1.1
1.1.1 last "dot" has been removed
1.2 last "dot" has been removed
1.2.1


--
Thanks,
Tom



  #2  
Old March 12th, 2004, 03:05 AM
Norman Harker
external usenet poster
 
Posts: n/a
Default Removal of "dot" following last digit

Hi Tom!

Try:

=IF(RIGHT(A1,1)=".",LEFT(A1,LEN(A1)-1),A1)

--
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.


Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
"Tom" wrote in message
...
Does anyone know of any function that removes a "dot" following the last
digit (see sample data below).

Data sample BEFORE removal of last "dot":
1.1
1.1.1. has "dot" following the last digit
1.2. has "dot" following the last digit
1.2.1

Data sample AFTER removal of last digit:
1.1
1.1.1 last "dot" has been removed
1.2 last "dot" has been removed
1.2.1


--
Thanks,
Tom





  #3  
Old March 12th, 2004, 03:15 AM
Tom
external usenet poster
 
Posts: n/a
Default Removal of "dot" following last digit

Norman,

thanks so much... this works really great!!!!

--
Thanks,
Tom


"Norman Harker" wrote in message
...
Hi Tom!

Try:

=IF(RIGHT(A1,1)=".",LEFT(A1,LEN(A1)-1),A1)

--
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.


Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
"Tom" wrote in message
...
Does anyone know of any function that removes a "dot" following the last
digit (see sample data below).

Data sample BEFORE removal of last "dot":
1.1
1.1.1. has "dot" following the last digit
1.2. has "dot" following the last digit
1.2.1

Data sample AFTER removal of last digit:
1.1
1.1.1 last "dot" has been removed
1.2 last "dot" has been removed
1.2.1


--
Thanks,
Tom







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.