+ Reply to Thread
Results 1 to 6 of 6

Ratio formula in it's original form (NOT in simplest/lowest form)

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Ratio formula in it's original form (NOT in simplest/lowest form)

    Hello,

    I have a formula to calculate the ratio between 2 cells. here it is:
    =AF3/GCD(AF3:AI3) & ":" & AI3/GCD(AF3:AI3)

    the problem is that it gives the ratio in its simplest form. e.g. cell AF3=15 and cell AI3=30,
    the answer would be 1:2.
    I want it to be 15:30

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Ratio formula in it's original form (NOT in simplest/lowest form)

    In your example, what's in AF3 and AI3?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Ratio formula in it's original form (NOT in simplest/lowest form)

    If you want to keep the original values and not change them just concatenate the cells thus

    =AF13&":"&AI3
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Ratio formula in it's original form (NOT in simplest/lowest form)

    perfect.
    cheers special-K

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Ratio formula in it's original form (NOT in simplest/lowest form)

    LOL, that's what I was getting to but thought there must be something I'm not seeing here.

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Ratio formula in it's original form (NOT in simplest/lowest form)

    Quote Originally Posted by ChemistB View Post
    LOL, that's what I was getting to but thought there must be something I'm not seeing here.
    lol. dont worry, I'm very confident you know how to do it.
    thanks for looking into it ChemistB

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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