Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
blcarmadillo
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


Hi, I was wondering if anyone knows how to find the greatest common
denominator (gcd) of two numbers in microsoft excel 2000. Thanks for
any help.


--
blcarmadillo
------------------------------------------------------------------------
blcarmadillo's Profile: http://www.excelforum.com/member.php...o&userid=32841
View this thread: http://www.excelforum.com/showthread...hreadid=526344

  #2   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


=GCD(B8, B17)

Give this a try


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=526344

  #3   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


You can use GCD function which is part of Analysis ToolPak addin,
otherwise this formula will give you the greatest common denominator of
two integers in A1 and B1

=MAX(IF(MOD(A1,ROW(INDIRECT("1:"&A1)))=0,IF(MOD(B1 ,ROW(INDIRECT("1:"&A1)))=0,ROW(INDIRECT("1:"&A1))) ))

confirmed with CTRL+SHIFT+ENTER


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=526344

  #4   Report Post  
Posted to microsoft.public.excel.misc
blcarmadillo
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


Thanks davesexcel and daddylonglegs for the reply. I really would like
to have it so that anyone can use my spreadsheet without having to load
add-ons so I think the best bet would be to try using some formula. I
tried using the formula daddylonglegs posted: =MAX(IF(MOD(A1,ROW(INDIRECT("1:"&A1)))=0,IF(MOD(B1
,ROW(INDIRECT("1:"&A1)))=0,ROW(INDIRECT("1:"&A1))) )) I'm using fields C2 and D2 though so I replaced all the A1 attributes

with an attribute of C2 and the B1 attribute with the attribute D2. In
cell C2 I had the value: 4; and in D2 I had the value: 12. Therefore, I
should have gotten an answer of: 4; however, I got an answer of 1. An
help is greatly appreciated. Thanks.


--
blcarmadillo
------------------------------------------------------------------------
blcarmadillo's Profile: http://www.excelforum.com/member.php...o&userid=32841
View this thread: http://www.excelforum.com/showthread...hreadid=526344

  #5   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


Hi, it's the correct formula but you need to confirm it with
CTRL+SHIFT+ENTER.

If you have the formula already on your sheet select that cell then
press F2 then while holding down CTRL+SHIFT buttons press ENTER. Curly
braces like { should appear around your formula and you should get the
correct result


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=526344



  #6   Report Post  
Posted to microsoft.public.excel.misc
blcarmadillo
 
Posts: n/a
Default how to find the gcd of two numbers in ms excel 2000


Alright. Thanks daddylonglegs for the reply. Sorry that I skipped that
step.


--
blcarmadillo
------------------------------------------------------------------------
blcarmadillo's Profile: http://www.excelforum.com/member.php...o&userid=32841
View this thread: http://www.excelforum.com/showthread...hreadid=526344

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel 5 and Excel 2000 question. Naveen Mukkelli Excel Discussion (Misc queries) 1 March 3rd 06 09:05 AM
Send to from excel 2003 after upgrade from Office 2000 Anthony Excel Discussion (Misc queries) 2 December 1st 05 08:59 PM
Find duplicate numbers in large Excel Spreadsheet Table Excel Worksheet Functions 1 June 9th 05 04:38 PM
how to convert GETPIVOTDATA from excel 2000 to excel 2002... Need_help_on_excel Excel Worksheet Functions 1 March 15th 05 01:08 AM


All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"