OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Show a number as a ratio, such as 3:1

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
livemusic
General User
General User


Joined: 17 Feb 2008
Posts: 21
Location: Louisiana, USA

PostPosted: Sat Dec 06, 2008 7:45 am    Post subject: Show a number as a ratio, such as 3:1 Reply with quote

Can I have a number display as that number related to 1?

Such as, if the cell formula calculas and displays "3" in the cell, could I have it dsplay as "3:1?" Say, if it displays 17.04, it would show 17.04:1.
Back to top
View user's profile Send private message Visit poster's website
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Sat Dec 06, 2008 8:08 am    Post subject: Reply with quote

You need a helper column. If your data is in column A, then in B1, you'd have =CONCATENATE(A1;":1") and copy that down column B.

David.
Back to top
View user's profile Send private message
livemusic
General User
General User


Joined: 17 Feb 2008
Posts: 21
Location: Louisiana, USA

PostPosted: Sat Dec 06, 2008 8:40 am    Post subject: Reply with quote

David wrote:
You need a helper column. If your data is in column A, then in B1, you'd have =CONCATENATE(A1;":1") and copy that down column B.

David.


Thank you. It is displaying a number with something like 14 decimal places. Can I make it show only 2 decimal places (for the part preceding the ":1" via amending your formula?

EDIT: See next post, I found a solution.


Last edited by livemusic on Sat Dec 06, 2008 8:50 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
livemusic
General User
General User


Joined: 17 Feb 2008
Posts: 21
Location: Louisiana, USA

PostPosted: Sat Dec 06, 2008 8:49 am    Post subject: I got it Reply with quote

=CONCATENATE(FIXED(B46;2);":1")

That seems to work.
Back to top
View user's profile Send private message Visit poster's website
hotpepper
Power User
Power User


Joined: 04 Dec 2008
Posts: 52

PostPosted: Sat Dec 06, 2008 10:55 pm    Post subject: Reply with quote

You could also use a custom number format, something like:

0.00\:1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group