+ Reply to Thread
Results 1 to 6 of 6

Formula to calculate 3 variables and return a 3 digit fraction/ratio

  1. #1
    Registered User
    Join Date
    05-30-2011
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formula to calculate 3 variables and return a 3 digit fraction/ratio

    Hi, I need help converting 3 variables (seperate cells) into 1 cell as a 3 digit fraction/ratio i/e.

    Cell A1 = 5000
    Cell B1 = 3000
    Cell C1 = 1000

    I want a formula to return something like this 5:3:1.

    Any help you can provide is much appreciated

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Formula to calculate 3 variables and return a 3 digit fraction/ratio

    Hello

    =A1/GCD(A1,B1)&":"&B1/GCD(A1,B1)&":"&C1/GCD(B1,C1)

    GCD
    If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in

    Last edited by vlady; 02-21-2012 at 03:02 AM. Reason: 2003 ?
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-30-2011
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula to calculate 3 variables and return a 3 digit fraction/ratio

    Thanks for that - fantastic!!

    Another component to make this formula work is for me to convert Cell C1 which represents 1000 hours, into "1000" as a number.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Formula to calculate 3 variables and return a 3 digit fraction/ratio

    The solution depends on what you mean by "represents 1000 hours". Are you saying you have a text string stating "1000 hours" in C1? Or do you have a decimal number such as 41.6667 in cell C1, formatted as [h]:mm to show 1000:00? If the latter is the case, simply multiply C1 by 24 and format as Number.

  5. #5
    Registered User
    Join Date
    04-28-2016
    Location
    Auckland
    MS-Off Ver
    7
    Posts
    1

    Re: Formula to calculate 3 variables and return a 3 digit fraction/ratio

    Hi , i need the ratio for these 3 numbers
    –6,000 52,000 122,600

  6. #6
    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
    52,929

    Re: Formula to calculate 3 variables and return a 3 digit fraction/ratio

    lalohuss welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    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

+ 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