Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Liz Liz is offline
external usenet poster
 
Posts: 133
Default converting fractions less than 1

I am converting a column of fractions to decimal. When I do this either by
format - cells - number - decimal, or by using a FIXED formula (i.e:
=FIXED(I25,4,TRUE)) it will convert properly IF the original fraction is
greater or equal to one. I have 1/2 in a cell, it will not convert to a
decimal. How the cell is formatted (either text or number) does not make a
difference with the conversion. Here is what happens: If the cell that has
1/2 as the value is formatted as text or as a number, and I then convert it
to a fraction, it gives me a 5 digit number: 37988. 3/4 is translated to
38050, 5/16 is translated into 38115, etc. If I then go and double click in
the cell that reads 1/2, the 5 digit number then turns into a decimal.
Double clicking in the cell that reads 37988 does nothing. There has to be a
simpler way. I just want to convert all fractions to decimals. In summary
my questions a 1) where are these 5 digit numbers coming from? 2) why are
numbers less than 1 not converting to a regular decimal format? 3) what
formula functions or procedure would I use to streamline this problem without
having to do so much manual manipulation?

Thanks for any advice.
Liz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default converting fractions less than 1


if you do not have the cells formatted to be numbers, entering 3/4 wil
be interpreted as March 4, so first format the range as a number, an
if you then enter 3/4 it will be 0.7

--
duan
-----------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...fo&userid=1162
View this thread: http://www.excelforum.com/showthread.php?threadid=26595

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default converting fractions less than 1

the five digit number is how Excel stores Dates. It is interpreting 1/2 as
a date

37988 is 2 January 2004, so it uses the current year, interprets the 1 as
January and 2 as the day.

--
Regards,
Tom Ogilvy


"Liz" wrote in message
...
I am converting a column of fractions to decimal. When I do this either

by
format - cells - number - decimal, or by using a FIXED formula (i.e:
=FIXED(I25,4,TRUE)) it will convert properly IF the original fraction is
greater or equal to one. I have 1/2 in a cell, it will not convert to a
decimal. How the cell is formatted (either text or number) does not make

a
difference with the conversion. Here is what happens: If the cell that has
1/2 as the value is formatted as text or as a number, and I then convert

it
to a fraction, it gives me a 5 digit number: 37988. 3/4 is translated to
38050, 5/16 is translated into 38115, etc. If I then go and double click

in
the cell that reads 1/2, the 5 digit number then turns into a decimal.
Double clicking in the cell that reads 37988 does nothing. There has to

be a
simpler way. I just want to convert all fractions to decimals. In

summary
my questions a 1) where are these 5 digit numbers coming from? 2) why

are
numbers less than 1 not converting to a regular decimal format? 3) what
formula functions or procedure would I use to streamline this problem

without
having to do so much manual manipulation?

Thanks for any advice.
Liz



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default converting fractions less than 1

There's no need to "convert" a fraction to a decimal. It's already stored as a
decimal if Excel has recognized it as a number. Just format it differently,
i.e. as number with 2 decimal places rather than with a fraction format.

As for your "problem" numbers, the cell doesn't contain the number 0.75.

Excel has already translated 3/4 to a date, March 4, 2004. Ditto with 5/6,
1/2, etc.

I would remove the formatting for these cells so you can see what the actual
content is. For the numbers that are being interpreted as dates, for recent
dates, you should see values in the 37,000-38,000 range.

Assuming your real fractions all have values <= 366, you could put this
formula in another column and copy down.

=IF(YEAR(A1)<1901,A1,MONTH(A1)/DAY(A1))

Now Edit/Copy the column of formulas, then Edit/Paste Special and select the
Values option to convert the formulas to their values, and apply whatever
format you want. Then you can delete the column containing the original
values.


On Sun, 3 Oct 2004 17:01:03 -0700, Liz wrote:

I am converting a column of fractions to decimal. When I do this either by
format - cells - number - decimal, or by using a FIXED formula (i.e:
=FIXED(I25,4,TRUE)) it will convert properly IF the original fraction is
greater or equal to one. I have 1/2 in a cell, it will not convert to a
decimal. How the cell is formatted (either text or number) does not make a
difference with the conversion. Here is what happens: If the cell that has
1/2 as the value is formatted as text or as a number, and I then convert it
to a fraction, it gives me a 5 digit number: 37988. 3/4 is translated to
38050, 5/16 is translated into 38115, etc. If I then go and double click in
the cell that reads 1/2, the 5 digit number then turns into a decimal.
Double clicking in the cell that reads 37988 does nothing. There has to be a
simpler way. I just want to convert all fractions to decimals. In summary
my questions a 1) where are these 5 digit numbers coming from? 2) why are
numbers less than 1 not converting to a regular decimal format? 3) what
formula functions or procedure would I use to streamline this problem without
having to do so much manual manipulation?

Thanks for any advice.
Liz


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default converting fractions less than 1

Just to add. If you want to enter a fraction less than 1 (ie 1/2), you need
to have a leading zero, followed by a space.
ie 0 1/2.

This will enter it correctly as 0.5.
HTH
--
Dana DeLouis
Win XP & Office 2003


"Liz" wrote in message
...
I am converting a column of fractions to decimal. When I do this either
by
format - cells - number - decimal, or by using a FIXED formula (i.e:
=FIXED(I25,4,TRUE)) it will convert properly IF the original fraction is
greater or equal to one. I have 1/2 in a cell, it will not convert to a
decimal. How the cell is formatted (either text or number) does not make
a
difference with the conversion. Here is what happens: If the cell that has
1/2 as the value is formatted as text or as a number, and I then convert
it
to a fraction, it gives me a 5 digit number: 37988. 3/4 is translated to
38050, 5/16 is translated into 38115, etc. If I then go and double click
in
the cell that reads 1/2, the 5 digit number then turns into a decimal.
Double clicking in the cell that reads 37988 does nothing. There has to
be a
simpler way. I just want to convert all fractions to decimals. In
summary
my questions a 1) where are these 5 digit numbers coming from? 2) why
are
numbers less than 1 not converting to a regular decimal format? 3) what
formula functions or procedure would I use to streamline this problem
without
having to do so much manual manipulation?

Thanks for any advice.
Liz



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 fractions to decimals sgrubb Excel Discussion (Misc queries) 1 September 16th 08 06:37 PM
converting decimals to fractions jason2444 Excel Discussion (Misc queries) 1 January 20th 06 11:07 PM
converting decimals to fractions jason2444 Excel Discussion (Misc queries) 5 January 20th 06 03:38 AM
converting decimals to fractions jason2444 Excel Discussion (Misc queries) 1 January 20th 06 01:58 AM
converting fractions to decimal PDI-AV Excel Discussion (Misc queries) 5 June 25th 05 03:43 AM


All times are GMT +1. The time now is 10:17 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"