Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MWH MWH is offline
external usenet poster
 
Posts: 10
Default Whole Fraction

Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Whole Fraction

Mark,

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1 & "/" & U1_Scorecard!C3)
Also, if you treat it as a fraction, 2/4 will appear as 1/2, which is not
what you (quite) mean.

NickHK

"MWH" wrote in message
...
Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford





  #3   Report Post  
Posted to microsoft.public.excel.programming
MWH MWH is offline
external usenet poster
 
Posts: 10
Default Whole Fraction

I would like it to show 1/1 or 2/4or 4/4 ....whatever the fraction truly is


"MWH" wrote in message
...
Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford




  #4   Report Post  
Posted to microsoft.public.excel.programming
MWH MWH is offline
external usenet poster
 
Posts: 10
Default Whole Fraction

Nick,
Your formula works great....except if the fraction has a 0 in the
numerator it is displayed (example) /4 instead of 0/4




"NickHK" wrote in message
...
Mark,

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1 & "/" & U1_Scorecard!C3)
Also, if you treat it as a fraction, 2/4 will appear as 1/2, which is not
what you (quite) mean.

NickHK

"MWH" wrote in message
...
Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford







  #5   Report Post  
Posted to microsoft.public.excel.programming
MWH MWH is offline
external usenet poster
 
Posts: 10
Default Whole Fraction

Sorry Nick,
The formula works fine, its my data that's exported
from Access. The reason its showing with no numerator is because there isn't
one....duh! I'll change my export to show zero's.

Thanks!

"MWH" wrote in message
...
Nick,
Your formula works great....except if the fraction has a 0 in
the numerator it is displayed (example) /4 instead of 0/4




"NickHK" wrote in message
...
Mark,

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1 & "/" & U1_Scorecard!C3)
Also, if you treat it as a fraction, 2/4 will appear as 1/2, which is not
what you (quite) mean.

NickHK

"MWH" wrote in message
...
Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Whole Fraction

Mark,
If it has a 0, it displays correctly 0/4.
You mean if there is no value set ? i.e. blank.

In this case, it would be best to initialise all the table values to zero,
as this is the correct starting value for all.
A blank would mean "unknown" and showing 0/4 for an unknown would not
necessarily be correct.

NickHK

"MWH" wrote in message
...
Nick,
Your formula works great....except if the fraction has a 0 in

the
numerator it is displayed (example) /4 instead of 0/4




"NickHK" wrote in message
...
Mark,

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1 & "/" & U1_Scorecard!C3)
Also, if you treat it as a fraction, 2/4 will appear as 1/2, which is

not
what you (quite) mean.

NickHK

"MWH" wrote in message
...
Is it possible to display a whole number as a fraction?
(I have the cells formatted for fraction)

Here is a sample of a formula on my worksheet:

=IF(U1_Scorecard!C3=0,"", U1_Scorecard!E3*-1/U1_Scorecard!C3)

Cell C3 = 1
Cell E3 = 1

I would like to display 1/1, instead my result is 1
--
Mark W. Hanford









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
Show fraction as fraction even if answer is 1 Vin Sukhadia Charts and Charting in Excel 1 December 2nd 09 07:51 PM
how to add 3/4 as a fraction Sean Excel Discussion (Misc queries) 1 November 9th 09 03:05 PM
fraction of itself Darljm Excel Discussion (Misc queries) 2 June 17th 08 01:07 AM
Text fraction to fraction format brownti via OfficeKB.com Excel Worksheet Functions 1 February 1st 08 02:38 PM
How do I change fraction to fraction characters? cmcqueary2806 Excel Worksheet Functions 1 November 2nd 06 09:58 PM


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