GCD function

G

GCD

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

I am not sure how to describe the problem without some background information. So, here goes. I am using excel to create a lesson on linear functions.
I have on one side a table of cells with the x values and next to those cells the y values, which are then also shown on a scatter chart. I have two other cells that are connected to sliders, one for the slope and one for the y-intercept of a line. The y values are calculated by the product each of the corresponding x cells and the slope cell that changes with the slider plus the y-intercept cell that changes with another slider.

In some other cells, I show an equation of this linear function, so I want the numbers to change with everything else. For one of the numbers I take the absolute values of difference of two of the y value cells.

Here's the problem. if I in a separate cell take the GCD or LCM of the value in the cell of the difference of the y-values, it will tell me the correct value in the cell, but then sometimes but not always give a number that is one less than the number as the GCD or the LCM function works the same way.

If this has made any sense, what can I do to fix this? Thanks!
 
J

JE McGimpsey

Here's the problem. if I in a separate cell take the GCD or LCM of the value
in the cell of the difference of the y-values, it will tell me the correct
value in the cell, but then sometimes but not always give a number that is
one less than the number as the GCD or the LCM function works the same way.

If this has made any sense, what can I do to fix this? Thanks!

I'm not sure I understand entirely, but it sounds like you're seeing
rounding errors. XL's calculations are based on the stored value in a
cell, even if the displayed value is rounded (e.g., a value displayed as
4.0 may in fact be 3.9999994).

One way to ensure the values are integers is to use ROUND(), e.g.,
instead of

=GCD(A1,A2)

use

=GCD(ROUND(A1,0), ROUND(A2,0))
 
J

jonn2

comment1, <http://finance.premiumnets.com/home-loan/get-a-home-loan-with-bad-credit.html> Get A Home Loan With Bad Credit, =-))), <http://finance.premiumnets.com/home-loan/bad-credit-fha-home-loan.html> Bad Credit Fha Home Loan, jahcdx, <http://finance.premiumnets.com/home-loan/bad-credit-equity-home-loan-no.html> Bad Credit Equity Home Loan No, %PP, <http://finance.premiumnets.com/home-loan/bad-credit-home-loan-new.html> Bad Credit Home Loan New, :pP, <http://finance.premiumnets.com/home-loan/toseeka-search-for-products-bad-credit-home-loan.html> Toseeka Search For Products Bad Credit Home Loan, %-D, <http://finance.premiumnets.com/home-loan/bad-credit-get-home-loan.html> Bad Credit Get Home Loan, %DD, <http://finance.premiumnets.com/home-loan/bad-credit-home-improvement-loan-xxasdf.html> Bad Credit Home Improvement Loan Xxasdf, 4538, <http://finance.premiumnets.com/home-loan/gaurenteed-interest-only-bad-credit-home-purchase-loan.html> Gaurenteed Interest Only Bad Credit Home Purchase Loan, =DD, <http://finance.premiumnets.com/home-loan/get-a-home-loan-in-cleveland-ohio-with-bad-credit.html> Get A Home Loan In Cleveland Ohio With Bad Credit, =]]], <http://finance.premiumnets.com/home-loan/bad-credit-home-loan-purchase.html> Bad Credit Home Loan Purchase, 6002, <http://finance.premiumnets.com/personal-loan/index.html> Bad Credit Personal Loans, smb, <http://finance.premiumnets.com/personal-loan/bad-credit-personal-loan.html> Bad Credit Personal Loan, 3398, <http://finance.premiumnets.com/personal-loan/personal-loan-bad-credit.html> Personal Loan Bad Credit, 687, <http://finance.premiumnets.com/personal-loan/bad-credit-loan-personal.html> Bad Credit Loan Personal, 031981, <http://finance.premiumnets.com/personal-loan/personal-loan-with-bad-credit.html> Personal Loan With Bad Credit, %PPP, <http://finance.premiumnets.com/personal-loan/personal-loan-for-bad-credit.html> Personal Loan For Bad Credit, fqvs, <http://finance.premiumnets.com/personal-loan/personal-loan-for-people-with-bad-credit.html> Personal Loan For People With Bad Credit, mdjsp, <http://finance.premiumnets.com/personal-loan/bad-credit-unsecured-personal-loan.html> Bad Credit Unsecured Personal Loan, 89727, <http://finance.premiumnets.com/personal-loan/need-a-personal-loan-quick-but-i-have-bad-credit.html> Need A Personal Loan Quick But I Have Bad Credit, 355, <http://finance.premiumnets.com/personal-loan/bad-credit-personal-loan-lenders.html> Bad Credit Personal Loan Lenders, =PPP, <http://finance.premiumnets.com/personal-loan/fast-bad-credit-personal-loan.html> Fast Bad Credit Personal Loan, 8PP, <http://finance.premiumnets.com/personal-loan/secured-personal-loan-bad-credit.html> Secured Personal Loan Bad Credit, :-OO, <http://finance.premiumnets.com/personal-loan/unsecured-personal-loan-bad-credit.html> Unsecured Personal Loan Bad Credit, =-D, <http://finance.premiumnets.com/personal-loan/small-personal-loan-bad-credit.html> Small Personal Loan Bad Credit, dke, <http://finance.premiumnets.com/personal-loan/bad-credit-loan-loan-personal-unsecured.html> Bad Credit Loan Loan Personal Unsecured, hoxzrv, <http://finance.premiumnets.com/personal-loan/how-to-get-a-personal-loan-with-bad-credit.html> How To Get A Personal Loan With Bad Credit, qirw, <http://finance.premiumnets.com/personal-loan/personal-unsecured-loan-with-bad-credit.html> Personal Unsecured Loan With Bad Credit, lmjm, <http://finance.premiumnets.com/personal-loan/bad-credit-personal-loan-wired.html> Bad Credit Personal Loan Wired, 7221, <http://finance.premiumnets.com/personal-loan/bad-credit-loan-people-personal.html> Bad Credit Loan People Personal, cuf, <http://finance.premiumnets.com/personal-loan/where-can-i-get-a-personal-loan-with-bad-credit.html> Where Can I Get A Personal Loan With Bad Credit, 81346, <http://finance.premiumnets.com/personal-loan/personal-loan-companies-bad-credit.html> Personal Loan Companies Bad Credit, 8-[[[, <http://finance.premiumnets.com/personal-loan/unsecured-personal-loan-with-bad-credit.html> Unsecured Personal Loan With Bad Credit, :-]], <http://finance.premiumnets.com/personal-loan/personal-bad-credit-loan.html> Personal Bad Credit Loan, 92469, <http://finance.premiumnets.com/personal-loan/personal-loan-but-i-have-bad-credit-history.html> Personal Loan But I Have Bad Credit History, ajlo, <http://finance.premiumnets.com/personal-loan/fast-approval-bad-credit-personal-loan.html> Fast Approval Bad Credit Personal Loan, dtamgg, <http://finance.premiumnets.com/personal-loan/bad-credit-need-personal-loan.html> Bad Credit Need Personal Loan, :-OOO, <http://finance.premiumnets.com/personal-loan/need-a-personal-loan-but-i-have-bad-credit.html> Need A Personal Loan But I Have Bad Credit, :))), <http://finance.premiumnets.com/personal-loan/guaranteed-bad-credit-personal-loan-lenders.html> Guaranteed Bad Credit Personal Loan Lenders, vuwuns, <http://finance.premiumnets.com/personal-loan/unsecured-bad-credit-personal-loan.html> Unsecured Bad Credit Personal Loan, 696, <http://finance.premiumnets.com/personal-loan/bad-credit-personal-loan-in-st-joseph-mo-only.html> Bad Credit Personal Loan In St Joseph Mo Only, 8-(((, <http://finance.premiumnets.com/personal-loan/guaranteed-personal-loan-bad-credit.html> Guaranteed Personal Loan Bad Credit, =-OO, <http://finance.premiumnets.com/personal-loan/personal-loan-bad-credit-fast.html> Personal Loan Bad Credit Fast, voob, <http://finance.premiumnets.com/personal-loan/free-bad-credit-personal-loan-lenders.html> Free Bad Credit Personal Loan Lenders, :D, <http://finance.premiumnets.com/personal-loan/bad-credit-unsecured-personal-loan-fast.html> Bad Credit Unsecured Personal Loan Fast, 8-PPP, <http://finance.premiumnets.com/personal-loan/get-a-personal-loan-with-bad-credit.html> Get A Personal Loan With Bad Credit, 5537, <http://finance.premiumnets.com/personal-loan/where-to-get-a-bad-credit-personal-loan.html> Where To Get A Bad Credit Personal Loan, hwievc, <http://finance.premiumnets.com/personal-loan/personal-loan-but-have-bad-credit.html> Personal Loan But Have Bad Credit, 8P, <http://finance.premiumnets.com/personal-loan/very-bad-credit-personal-loan.html> Very Bad Credit Personal Loan, =))), <http://finance.premiumnets.com/pers...ch-for-products-bad-credit-loan-personal.html> Toseeka Search For Products Bad Credit Loan Personal, mknahq, <http://finance.premiumnets.com/personal-loan/help-with-a-bad-credit-personal-loan.html> Help With A Bad Credit Personal Loan, >:[[[,
 
J

jonn1

comment1, <http://ivomi.com/mobile-ringtones/ringtones-for-boost-mobile.html> Ringtones For Boost Mobile, bjv, <http://ivomi.com/mobile-ringtones/mobile-ringtone.html> Mobile Ringtone, rli, <http://ivomi.com/mobile-ringtones/mobile-phone-ringtone.html> Mobile Phone Ringtone, vxglhr, <http://ivomi.com/mobile-ringtones/free-mobile-phone-ringtone.html> Free Mobile Phone Ringtone, qqevkp, <http://ivomi.com/mobile-ringtones/free-t-mobile-ringtone.html> Free T Mobile Ringtone, 15026, <http://ivomi.com/mobile-ringtones/free-mobile-ringtone.html> Free Mobile Ringtone, rsqyxe, <http://ivomi.com/mobile-ringtones/free-virgin-mobile-ringtone.html> Free Virgin Mobile Ringtone, 3347, <http://ivomi.com/mobile-ringtones/virgin-mobile-ringtone.html> Virgin Mobile Ringtone, 131046, <http://ivomi.com/mobile-ringtones/tmobile-ringtones.html> Tmobile Ringtones, bwhwse, <http://ivomi.com/mobile-ringtones/free-tmobile-ringtones.html> Free Tmobile Ringtones, 8[[, <http://ivomi.com/mobile-ringtones/free-ringtones-for-tmobile.html> Free Ringtones For Tmobile, 895750, <http://ivomi.com/mobile-ringtones/ringtones-for-tmobile.html> Ringtones For Tmobile, 67403, <http://ivomi.com/mobile-ringtones/tmobile-free-ringtones.html> Tmobile Free Ringtones, =(((, <http://ivomi.com/mobile-ringtones/ringtones-tmobile.html> Ringtones Tmobile, jidbih, <http://ivomi.com/mobile-ringtones/mobile-ringtone-converter.html> Mobile Ringtone Converter, 297376, <http://ivomi.com/mobile-ringtones/free-t-mobile-real-music-ringtone.html> Free T Mobile Real Music Ringtone, 7879, <http://ivomi.com/mobile-ringtones/free-boost-mobile-ringtone.html> Free Boost Mobile Ringtone, 891708, <http://ivomi.com/mobile-ringtones/download-free-ringtone-t-mobile.html> Download Free Ringtone T Mobile, hosaaj, <http://ivomi.com/mobile-ringtones/boost-mobile-ringtone.html> Boost Mobile Ringtone, 378, <http://ivomi.com/mobile-ringtones/boost-mobile-free-ringtones.html> Boost Mobile Free Ringtones, adbf, <http://ivomi.com/mobile-ringtones/ringtones-t-mobile.html> Ringtones T Mobile, 8-PPP, <http://ivomi.com/mobile-ringtones/free-ringtones-t-mobile.html> Free Ringtones T Mobile, 8-OO, <http://ivomi.com/mobile-ringtones/download-free-real-t-mobile-ringtones.html> Download Free Real T Mobile Ringtones, cfi, <http://ivomi.com/mobile-ringtones/free-ringtones-for-t-mobile-phones.html> Free Ringtones For T Mobile Phones, 024, <http://ivomi.com/mobile-ringtones/free-ringtones-for-virgin-mobile-cell-phones.html> Free Ringtones For Virgin Mobile Cell Phones, %OOO, <http://ivomi.com/mobile-ringtones/ringtones-for-virgin-mobile-phones.html> Ringtones For Virgin Mobile Phones, =-(, <http://ivomi.com/mobile-ringtones/inspiral-carpets-mobile-ringtones.html> Inspiral Carpets Mobile Ringtones, tduqwo, <http://ivomi.com/mobile-ringtones/ringtones-for-t-mobile-phones.html> Ringtones For T Mobile Phones, 937, <http://ivomi.com/mobile-ringtones/virgin-mobile-usa-ringtones.html> Virgin Mobile Usa Ringtones, ljbtv, <http://ivomi.com/mobile-ringtones/free-ringtones-for-boost-mobile-phones.html> Free Ringtones For Boost Mobile Phones, rtkuc, <http://ivomi.com/mobile-ringtones/free-ringtones-for-a-virgin-mobile-phone.html> Free Ringtones For A Virgin Mobile Phone, eupofq, <http://ivomi.com/mobile-ringtones/free-ringtones-for-mobile.html> Free Ringtones For Mobile, %-))), <http://ivomi.com/mobile-ringtones/download-free-boost-mobile-ringtones.html> Download Free Boost Mobile Ringtones, :), <http://ivomi.com/mobile-ringtones/free-vigin-mobile-ringtones.html> Free Vigin Mobile Ringtones, uazhb, <http://ivomi.com/mobile-ringtones/bet-mobile-ringtones.html> Bet Mobile Ringtones, 0561, <http://ivomi.com/mobile-ringtones/free-mobile-ringtones-download.html> Free Mobile Ringtones Download, :OOO, <http://ivomi.com/mobile-ringtones/free-ringtones-for-mobile-phones.html> Free Ringtones For Mobile Phones, mhoz, <http://ivomi.com/mobile-ringtones/free-boost-mobile-music-ringtones.html> Free Boost Mobile Music Ringtones, 96775, <http://ivomi.com/mobile-ringtones/download-free-ringtones-virgin-mobile.html> Download Free Ringtones Virgin Mobile, :)), <http://ivomi.com/mobile-ringtones/ringtones-virgin-mobile.html> Ringtones Virgin Mobile, 4464, <http://ivomi.com/ringtone-converter/index.html> Ringtone Converter, >:-(, <http://ivomi.com/ringtone-converter/free-ringtone-converter.html> Free Ringtone Converter, 3569, <http://ivomi.com/ringtone-converter/mobile-ringtone-converter.html> Mobile Ringtone Converter, >:-OO, <http://ivomi.com/ringtone-converter/mp3-to-ringtone-converter-free.html> Mp3 To Ringtone Converter Free, 8-(, <http://ivomi.com/ringtone-converter/mp3-to-ringtone-converter.html> Mp3 To Ringtone Converter, 56875, <http://ivomi.com/ringtone-converter/nextel-ringtone-converter.html> Nextel Ringtone Converter, 694159, <http://ivomi.com/ringtone-converter/joy-ringtone-converter.html> Joy Ringtone Converter, :p, <http://ivomi.com/ringtone-converter/coding-workshop-ringtone-converter.html> Coding Workshop Ringtone Converter, 635, <http://ivomi.com/ringtone-converter/mp3-ringtone-converter.html> Mp3 Ringtone Converter, 8O, <http://ivomi.com/ringtone-converter/free-mp3-to-ringtone-converter.html> Free Mp3 To Ringtone Converter, >:))),
 
J

jonn3

comment3, <http://apove.com/leather-handbag/index.html> Handbag Leather, zshi, <http://apove.com/leather-handbag/handbag-italian-leather.html> Handbag Italian Leather, 731, <http://apove.com/leather-handbag/handbag-leather-prada.html> Handbag Leather Prada, 9436, <http://apove.com/leather-handbag/designer-handbag-leather.html> Designer Handbag Leather, 8(, <http://apove.com/leather-handbag/handbag-leather-making.html> Handbag Leather Making, fpbfwk, <http://apove.com/leather-handbag/coach-handbag-leather.html> Coach Handbag Leather, =-PPP, <http://apove.com/leather-handbag/black-handbag-leather.html> Black Handbag Leather, 8-PPP, <http://apove.com/leather-handbag/handbag-leather-wholesale.html> Handbag Leather Wholesale, elnzds, <http://apove.com/leather-handbag/gucci-handbag-leather.html> Gucci Handbag Leather, jdgrw, <http://apove.com/leather-handbag/handbag-leather-patent.html> Handbag Leather Patent, rkyxe, <http://apove.com/leather-handbag/coach-handbag-leather-replica.html> Coach Handbag Leather Replica, ifxjtc, <http://apove.com/leather-handbag/handbag-leather-red.html> Handbag Leather Red, uwat, <http://apove.com/leather-handbag/handbag-leather-organizer.html> Handbag Leather Organizer, 0326, <http://apove.com/leather-handbag/handbag-hobo-leather.html> Handbag Hobo Leather, 8-[[[, <http://apove.com/leather-handbag/brown-handbag-leather.html> Brown Handbag Leather, 8665, <http://apove.com/leather-handbag/brighton-handbag-leather.html> Brighton Handbag Leather, 36235, <http://apove.com/leather-handbag/handbag-leather-womens.html> Handbag Leather Womens, 14097, <http://apove.com/leather-handbag/handbag-leather-mountain-stone.html> Handbag Leather Mountain Stone, 3186, <http://apove.com/leather-handbag/handbag-large-leather.html> Handbag Large Leather, 5262, <http://apove.com/leather-handbag/claiborne-handbag-leather-liz.html> Claiborne Handbag Leather Liz, 423, <http://apove.com/leather-handbag/discount-handbag-leather.html> Discount Handbag Leather, oih, <http://apove.com/leather-handbag/backpack-handbag-leather.html> Backpack Handbag Leather, >:DD, <http://apove.com/leather-handbag/handbag-lady-leather.html> Handbag Lady Leather, 8922, <http://apove.com/leather-handbag/handbag-leather-tooled.html> Handbag Leather Tooled, 43599, <http://apove.com/leather-handbag/handbag-leather-white.html> Handbag Leather White, 8-[, <http://apove.com/leather-handbag/handbag-handmade-leather.html> Handbag Handmade Leather, gmnyci, <http://apove.com/leather-handbag/black-handbag-leather-patent.html> Black Handbag Leather Patent, :-]], <http://apove.com/leather-handbag/handbag-leather-pink.html> Handbag Leather Pink, :-D, <http://apove.com/leather-handbag/handbag-leather-rock.html> Handbag Leather Rock, 480, <http://apove.com/leather-handbag/handbag-leather-satchel.html> Handbag Leather Satchel, %]], <http://apove.com/leather-handbag/handbag-leather-soft.html> Handbag Leather Soft, 48897, <http://apove.com/leather-handbag/handbag-leather-woman.html> Handbag Leather Woman, iojpd, <http://apove.com/leather-handbag/fine-handbag-leather.html> Fine Handbag Leather, =-DDD, <http://apove.com/leather-handbag/bag-handbag-leather.html> Bag Handbag Leather, 8], <http://apove.com/leather-handbag/handbag-leather-purse.html> Handbag Leather Purse, :(((, <http://apove.com/leather-handbag/handbag-leather-man.html> Handbag Leather Man, %(((, <http://apove.com/leather-handbag/handbag-leather-western.html> Handbag Leather Western, crjx, <http://apove.com/leather-handbag/bourke-dooney-handbag-leather.html> Bourke Dooney Handbag Leather, =-((, <http://apove.com/leather-handbag/cheap-handbag-leather.html> Cheap Handbag Leather, kpnrh, <http://apove.com/leather-handbag/handbag-in-leaders-leather.html> Handbag In Leaders Leather, :-OO, <http://apove.com/leather-handbag/black-handbag-leather-prada.html> Black Handbag Leather Prada, =((, <http://apove.com/leather-handbag/handbag-leather-tignanello.html> Handbag Leather Tignanello, 278419, <http://apove.com/leather-handbag/chanel-handbag-leather.html> Chanel Handbag Leather, >:-[, <http://apove.com/leather-handbag/genuine-handbag-leather.html> Genuine Handbag Leather, hoxwh, <http://apove.com/leather-handbag/handbag-leather-tote.html> Handbag Leather Tote, =-PP, <http://apove.com/leather-handbag/handbag-leather-shoulder.html> Handbag Leather Shoulder, 427, <http://apove.com/leather-handbag/blue-handbag-leather.html> Blue Handbag Leather, zdo, <http://apove.com/leather-handbag/handbag-leather-manufacturer.html> Handbag Leather Manufacturer, 9774, <http://apove.com/leather-handbag/handbag-italian-leather-new.html> Handbag Italian Leather New, %OO, <http://apove.com/leather-handbag/custom-handbag-leather.html> Custom Handbag Leather, :pPP,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top