Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MarkM
 
Posts: n/a
Default Inserting a decimal from the right of a string

How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Inserting a decimal from the right of a string

Hi Mark

=LEFT(A1,LEN(A1)-4)&"."&RIGHT(A1,4)

Regards

Roger Govier


MarkM wrote:
How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
MarkM
 
Posts: n/a
Default Inserting a decimal from the right of a string

Thanks Roger, Thats what I was looking for.

"Roger Govier" wrote:

Hi Mark

=LEFT(A1,LEN(A1)-4)&"."&RIGHT(A1,4)

Regards

Roger Govier


MarkM wrote:
How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Inserting a decimal from the right of a string

Hi Mark

Please note the formula i gave you will produce text, which is what I
presumed you wanted.
I can see from other responses, they all interpreted your question as still
requiring numerics, in which case each of the other responses received will
do that perfectly and you should go with one of those solutions.

Regards

Roger Govier


MarkM wrote:
Thanks Roger, Thats what I was looking for.

"Roger Govier" wrote:


Hi Mark

=LEFT(A1,LEN(A1)-4)&"."&RIGHT(A1,4)

Regards

Roger Govier


MarkM wrote:

How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance


  #5   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Inserting a decimal from the right of a string

ONe way:

A1: 4577600
A2: =A1/10000

Format A2 with 4 decimal places.


In article ,
"MarkM" wrote:

How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance



  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Inserting a decimal from the right of a string

Hi

Can't you just divide the number by 10,000?

Andy.

"MarkM" wrote in message
...
How can I insert a decimal into a number? I need to insert this before
the
fourth character in the string from the right? I cannot insert this from
the
left of the string because the number of characters in the sting to the
left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance



  #7   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Inserting a decimal from the right of a string

type 10000 in an unused cell , left click on it and choose COPY
then highlight all the cells you wish to change,
then right-click PasteSpecial Divide..........

Vaya con Dios,
Chuck, CABGx3




"MarkM" wrote:

How can I insert a decimal into a number? I need to insert this before the
fourth character in the string from the right? I cannot insert this from the
left of the string because the number of characters in the sting to the left
can vary.

For example:
I need to change 4577600 to 457.7600

Thanks in advance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting number string to number with decimal rortiz Excel Worksheet Functions 2 September 15th 05 08:34 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
How do I enter a decimal in a string of numbers in Excel? Example. Joy Excel Discussion (Misc queries) 1 February 9th 05 11:42 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM


All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"