+ Reply to Thread
Results 1 to 13 of 13

Formatting ratio formula results

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Formatting ratio formula results

    I work in excel 2010 and I have a formula for a ratio and would like to format the ratio so that the result is 17.8:1 in all cells. Some cells are giving me 4.53333333333333:1. Is there a way to format the result to just show one decimal place?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formatting ratio formula results

    Probably.

    What's your formula?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Formatting ratio formula results

    Maybe something like this?

    =TEXT(A1/B1,".#")&":1"

    or this:

    =ROUND(A1/B1,1)&":1"

    or go to the cell properties and format as custom (by typing .# into the bar on the custom tab)

    Where A1 and B1 are the two numbers being divided to achieve the ratio.
    Last edited by clabulis; 09-08-2014 at 05:01 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formatting ratio formula results

    Or maybe play around with this?

    =SUBSTITUTE(TEXT(A1/B1,"?/?"),"/",":")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: Formatting ratio formula results

    =(i2/h2)&":"&(h2/h2)

  6. #6
    Registered User
    Join Date
    06-04-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    72

    Re: Formatting ratio formula results

    Try =FIXED((i2/h2),1)&":"&(h2/h2)

  7. #7
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: Formatting ratio formula results

    I used =ROUND((I2/H2),1)&":"&(H2/H2) that has corrected the formatting now I just need to get rid of the #DIV/0! and add conditional formatting and I will be done. Thanks for your input.

  8. #8
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Formatting ratio formula results

    This should get rid of the #DIV/0! issue:

    =IFERROR(ROUND((I2/H2),1)&":"&(H2/H2),"")

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting ratio formula results

    duplicate ...
    Last edited by shg; 09-08-2014 at 08:40 PM.
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting ratio formula results

    Or

    =IF(N(H2), ROUND(I2/H2, 1) & ":1", "")

  11. #11
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Smile Re: Formatting ratio formula results

    Thank you all for your help, it looks great. I put a 0 between the "" so to not leave the field blank. This is my first post on this forum but I am sure it will not be my last. I am searching for how to mark this solved and to give a star to a reply that helped as the moderator suggested but I haven't found them yet so please be patient with this newbie!!

  12. #12
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: Formatting ratio formula results

    Was I successful marking the post solved? Do I start a new one if I want to add to the formula or edit this formula?

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting ratio formula results

    You can continue here if it's on the same topic.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] 2010 Conditional Formatting: Cell Color Change, Based on Ratio (1:1)
    By James_D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2013, 09:02 PM
  2. [SOLVED] Conditionally Formatting Formula Results
    By GaidenFocus in forum Excel General
    Replies: 6
    Last Post: 06-15-2012, 12:21 PM
  3. Conditional Formatting based on a ratio
    By kmlloyd in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 03:16 PM
  4. [SOLVED] Divide x/y should give Ratio x:y,How to express ratio in excel
    By arvind3738 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  5. ratio formatting
    By uteowl in forum Excel General
    Replies: 1
    Last Post: 05-04-2005, 09:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1