#1   Report Post  
Horatio J. Bilge
 
Posts: n/a
Default fraction format

I asked about this earlier, but I'll try again, with less rambling...

Is there a way to format fractions so that they do not reduce to the lowest
common denominator?

For example,
0/4 does not become 0/1
2/4 does not become 1/2
4/4 does not become 1/1

Thanks,
~ Horatio


  #2   Report Post  
David Benson
 
Posts: n/a
Default

Horatio,

If you want your fractions to always have a specific denominator, then yes,
there is a way.

Select the cell or range you want to format, then click Format Cells... .
Next, click Custom. Enter format spec such as "# ?/4". The "#" specifies a
variable number of whole-number digits. The "?" specifies a single numerator
digit. The "/" is the division line. The "4" forces the denominator always
to be four.

If you select a denominator with more than one digit (for example,
sixteenths), be sure that the numerator has the same number of "?'s".

David


"Horatio J. Bilge" wrote in message
...
I asked about this earlier, but I'll try again, with less rambling...

Is there a way to format fractions so that they do not reduce to the
lowest
common denominator?

For example,
0/4 does not become 0/1
2/4 does not become 1/2
4/4 does not become 1/1

Thanks,
~ Horatio




  #3   Report Post  
Horatio J. Bilge
 
Posts: n/a
Default

Thanks for the tip. This worked well for some fractions (e.g., 2/4 did not
reduce to 1/2). However, 0/4 and 4/4 reduced to 0 and 1, respectively. I
removed the "#", and it worked well (format "?/4").

Also, the denominator is not always the same. For some columns, the
denominator is 4, for some it is 3, and others it is 2. I can change the
format for each column separately, but is there a way to use the same format
for all of them?

Thanks,
~ Horatio


"David Benson" wrote in message
...
Horatio,

If you want your fractions to always have a specific denominator, then

yes,
there is a way.

Select the cell or range you want to format, then click Format Cells...

..
Next, click Custom. Enter format spec such as "# ?/4". The "#" specifies

a
variable number of whole-number digits. The "?" specifies a single

numerator
digit. The "/" is the division line. The "4" forces the denominator

always
to be four.

If you select a denominator with more than one digit (for example,
sixteenths), be sure that the numerator has the same number of "?'s".

David


"Horatio J. Bilge" wrote in message
...
I asked about this earlier, but I'll try again, with less rambling...

Is there a way to format fractions so that they do not reduce to the
lowest
common denominator?

For example,
0/4 does not become 0/1
2/4 does not become 1/2
4/4 does not become 1/1

Thanks,
~ Horatio






  #4   Report Post  
Jay Somerset
 
Posts: n/a
Default

On Wed, 15 Dec 2004 22:20:11 -0600, "Horatio J. Bilge"
wrote:

Thanks for the tip. This worked well for some fractions (e.g., 2/4 did not
reduce to 1/2). However, 0/4 and 4/4 reduced to 0 and 1, respectively. I
removed the "#", and it worked well (format "?/4").

Also, the denominator is not always the same. For some columns, the
denominator is 4, for some it is 3, and others it is 2. I can change the
format for each column separately, but is there a way to use the same format
for all of them?

Try the format "?/?" for a 1-digit denominator ("??/??" for a 2-digit
denominator, etc.) The "# ?/?" format does the same thing, but allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you got a "1"
earlier.



If you want your fractions to always have a specific denominator, then

yes,
there is a way.

Select the cell or range you want to format, then click Format Cells...

.
Next, click Custom. Enter format spec such as "# ?/4". The "#" specifies

a
variable number of whole-number digits. The "?" specifies a single

numerator
digit. The "/" is the division line. The "4" forces the denominator

always
to be four.

If you select a denominator with more than one digit (for example,
sixteenths), be sure that the numerator has the same number of "?'s".

David


"Horatio J. Bilge" wrote in message
...
I asked about this earlier, but I'll try again, with less rambling...

Is there a way to format fractions so that they do not reduce to the
lowest
common denominator?

For example,
0/4 does not become 0/1
2/4 does not become 1/2
4/4 does not become 1/1

Thanks,
~ Horatio






  #5   Report Post  
Horatio J. Bilge
 
Posts: n/a
Default


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a 2-digit
denominator, etc.) The "# ?/?" format does the same thing, but allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you got a

"1"
earlier.


With the format "?/?" fractions still reduce automatically. For example, 2/2
becomes 1/1, and 2/4 becomes 1/2.
Thanks for the info about "# ?/?". That's handy to know.

~ Horatio




  #6   Report Post  
Jay Somerset
 
Posts: n/a
Default

On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a 2-digit
denominator, etc.) The "# ?/?" format does the same thing, but allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you got a

"1"
earlier.


With the format "?/?" fractions still reduce automatically. For example, 2/2
becomes 1/1, and 2/4 becomes 1/2.


Yes -- if you want to stop reduction, you have to specify the denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.

You're welcome.

~ Horatio


  #7   Report Post  
David McRitchie
 
Posts: n/a
Default

You might take a look at
Fractions rounded to 1/4, 1/8, 1/16, 1/32, 1/64, 1/128
http://www.mvps.org/dmcritchie/excel/fractex1.htm
but regardless of whether you have a number or a string
as the result you need an extra column for the display.

HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Jay Somerset" wrote in message ...
On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a 2-digit
denominator, etc.) The "# ?/?" format does the same thing, but allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you got a

"1"
earlier.


With the format "?/?" fractions still reduce automatically. For example, 2/2
becomes 1/1, and 2/4 becomes 1/2.


Yes -- if you want to stop reduction, you have to specify the denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.

You're welcome.

~ Horatio




  #8   Report Post  
Steven J.
 
Posts: n/a
Default

I am entering sport statistics. A player may make a number of attempts
with any number of them successful (4/4, 10/12, 0/9, etc.). I have one
column that shows the percentage of successful attempts. Players want to
know the actual number of successes over attempts. I created another column
with the formula shown below.

=IF(ISERROR((C17+D17)/SUM(C17:E17)), 0, (C17+D17)/SUM(C17:E17))

This formula adds two columns of successful attempts (perfect & good)
divided by the total of four columns (perfect, good, poor, bad). It also
suppresses the divide by zero error.

Like Horatio, I'm interested in having the actual numbers show in the
fraction without reductions (4/4 not reduced to 1/1 or 1, 10/12 not reduced
to 5/6, etc.). There are no standard denominators, so that line of
formatting will not work for me.

Any suggestions? Please!!!

Steven J.

"Jay Somerset" wrote:

On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a 2-digit
denominator, etc.) The "# ?/?" format does the same thing, but allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you got a

"1"
earlier.


With the format "?/?" fractions still reduce automatically. For example, 2/2
becomes 1/1, and 2/4 becomes 1/2.


Yes -- if you want to stop reduction, you have to specify the denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.

You're welcome.

~ Horatio



  #9   Report Post  
Biff
 
Posts: n/a
Default

Hi!

=C17+D17&"/"&E17

Biff

"Steven J." wrote in message
...
I am entering sport statistics. A player may make a number of attempts
with any number of them successful (4/4, 10/12, 0/9, etc.). I have one
column that shows the percentage of successful attempts. Players want to
know the actual number of successes over attempts. I created another
column
with the formula shown below.

=IF(ISERROR((C17+D17)/SUM(C17:E17)), 0, (C17+D17)/SUM(C17:E17))

This formula adds two columns of successful attempts (perfect & good)
divided by the total of four columns (perfect, good, poor, bad). It also
suppresses the divide by zero error.

Like Horatio, I'm interested in having the actual numbers show in the
fraction without reductions (4/4 not reduced to 1/1 or 1, 10/12 not
reduced
to 5/6, etc.). There are no standard denominators, so that line of
formatting will not work for me.

Any suggestions? Please!!!

Steven J.

"Jay Somerset" wrote:

On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a
2-digit
denominator, etc.) The "# ?/?" format does the same thing, but
allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you
got a
"1"
earlier.


With the format "?/?" fractions still reduce automatically. For
example, 2/2
becomes 1/1, and 2/4 becomes 1/2.


Yes -- if you want to stop reduction, you have to specify the denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.

You're welcome.

~ Horatio





  #10   Report Post  
Steven J.
 
Posts: n/a
Default

Wonderful & simple - works for all the sample situations I've tested so far.
My actual cell contents are shown below.

=IF(C59+D59+E59+F590, C59+D59&"/"&C59+D59+E59+F59," ") To suppress 0/0

Thanks Biff,


"Biff" wrote:

Hi!

=C17+D17&"/"&E17

Biff

"Steven J." wrote in message
...
I am entering sport statistics. A player may make a number of attempts
with any number of them successful (4/4, 10/12, 0/9, etc.). I have one
column that shows the percentage of successful attempts. Players want to
know the actual number of successes over attempts. I created another
column
with the formula shown below.

=IF(ISERROR((C17+D17)/SUM(C17:E17)), 0, (C17+D17)/SUM(C17:E17))

This formula adds two columns of successful attempts (perfect & good)
divided by the total of four columns (perfect, good, poor, bad). It also
suppresses the divide by zero error.

Like Horatio, I'm interested in having the actual numbers show in the
fraction without reductions (4/4 not reduced to 1/1 or 1, 10/12 not
reduced
to 5/6, etc.). There are no standard denominators, so that line of
formatting will not work for me.

Any suggestions? Please!!!

Steven J.

"Jay Somerset" wrote:

On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a
2-digit
denominator, etc.) The "# ?/?" format does the same thing, but
allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you
got a
"1"
earlier.


With the format "?/?" fractions still reduce automatically. For
example, 2/2
becomes 1/1, and 2/4 becomes 1/2.

Yes -- if you want to stop reduction, you have to specify the denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.
You're welcome.

~ Horatio








  #11   Report Post  
Biff
 
Posts: n/a
Default

You're welcome! Thanks for the feedback.

I run a little NFL Football contest and keep track of a persons won/loss
record. Just like what you're doing except I use this format: W - L.

Biff

"Steven J." wrote in message
...
Wonderful & simple - works for all the sample situations I've tested so
far.
My actual cell contents are shown below.

=IF(C59+D59+E59+F590, C59+D59&"/"&C59+D59+E59+F59," ") To suppress 0/0

Thanks Biff,


"Biff" wrote:

Hi!

=C17+D17&"/"&E17

Biff

"Steven J." wrote in message
...
I am entering sport statistics. A player may make a number of
attempts
with any number of them successful (4/4, 10/12, 0/9, etc.). I have one
column that shows the percentage of successful attempts. Players want
to
know the actual number of successes over attempts. I created another
column
with the formula shown below.

=IF(ISERROR((C17+D17)/SUM(C17:E17)), 0, (C17+D17)/SUM(C17:E17))

This formula adds two columns of successful attempts (perfect & good)
divided by the total of four columns (perfect, good, poor, bad). It
also
suppresses the divide by zero error.

Like Horatio, I'm interested in having the actual numbers show in the
fraction without reductions (4/4 not reduced to 1/1 or 1, 10/12 not
reduced
to 5/6, etc.). There are no standard denominators, so that line of
formatting will not work for me.

Any suggestions? Please!!!

Steven J.

"Jay Somerset" wrote:

On Sat, 18 Dec 2004 07:55:25 -0600, "Horatio J. Bilge"
wrote:


"Jay Somerset" wrote in message
...
Try the format "?/?" for a 1-digit denominator ("??/??" for a
2-digit
denominator, etc.) The "# ?/?" format does the same thing, but
allows for
numbers greater than or equal to 1 (e.g. 2-1/4). That was why you
got a
"1"
earlier.


With the format "?/?" fractions still reduce automatically. For
example, 2/2
becomes 1/1, and 2/4 becomes 1/2.

Yes -- if you want to stop reduction, you have to specify the
denominator
explicitly.

Thanks for the info about "# ?/?". That's handy to know.
You're welcome.

~ Horatio








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
Format numbers in chart datatable MB Charts and Charting in Excel 3 May 29th 05 03:37 PM
pivot chart format Valeria Charts and Charting in Excel 1 January 14th 05 01:19 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
cut and paste format problem Francis Hayes (The Excel Addict) Excel Discussion (Misc queries) 1 December 7th 04 02:23 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM


All times are GMT +1. The time now is 03:27 AM.

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

About Us

"It's about Microsoft Excel"