{"id":8339,"date":"2021-11-28T10:10:30","date_gmt":"2021-11-28T10:10:30","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=8339"},"modified":"2021-11-28T10:11:06","modified_gmt":"2021-11-28T10:11:06","slug":"rounding-up-in-excel-before-running-gcd","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/office\/rounding-up-in-excel-before-running-gcd\/10985.html","title":{"rendered":"Rounding Up In Excel Before Running Gcd"},"content":{"rendered":"<p>I have a spreadsheet that depends on two cells and produces a ratio but it only produces an exact ratio but I need it to be a rough ratio. Example:<br \/>\nCell Q31=500<br \/>\ncell S31=1482<br \/>\nThe result = 1482:500 in cell Y31 as a ratio<br \/>\nBut I need it to say 3:1 ratio (because it&#8217;s close to 3 to 1). I tried to use round, mround and roundup so it will round up the numbers prior to producing the ratio with the gcd but I just can&#8217;t seem to get it right.<\/p>\n<p>This is what I used<br \/>\n=S31\/GCD(Q31,S31)&amp;&#8221;:&#8221;&amp;Q31;\/GCD(Q31,S31)<\/p>\n<p>then I tried to fix the ratio by trying to force the roundup prior to the raio<\/p>\n<p>=(RoundUp(s31,0),Roundup(q31,0):S31\/GCD(Q31,S31)&amp;&#8221;:&#8221;&amp;Q31;\/GCD(Q31,S31)<\/p>\n<p>I just don&#8217;t understand the complex functions.<\/p>\n<p>Thanks<br \/>\nTricia<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":9},"question-category":[53],"question_tags":[],"class_list":["post-8339","question","type-question","status-publish","hentry","question-category-office"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/8339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=8339"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=8339"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=8339"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=8339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}