Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Chris Whitehead
 
Posts: n/a
Default quotient function prob. i have copied example but it gives error

i am running excell 2003 and am trying to use the quotient function.

I have found the ms help on the web and even copied and pasted the example
but all i get is an error. It is like my version of excel doesnt have the
quotient function at all, it isnt listed in the list of functions locally but
i get lots of refs to it here at MS office site?

Help Please
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default quotient function prob. i have copied example but it gives error

It is part of the Analysis ToolPak Add-In. To Install this:

Select Tools
Then Add-Ins...
Check the box next to Analysis TookPak
Click OK
Re-enter your formula (or recalculate 'F9')

If you don't see the Analysis ToolPak as an option, then you need to
reinstall it from your Office CD.

HTH,
Elkar


"Chris Whitehead" wrote:

i am running excell 2003 and am trying to use the quotient function.

I have found the ms help on the web and even copied and pasted the example
but all i get is an error. It is like my version of excel doesnt have the
quotient function at all, it isnt listed in the list of functions locally but
i get lots of refs to it here at MS office site?

Help Please

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default quotient function prob. i have copied example but it gives error

Why would you want to use:

=quotient(a1,b1)
instead of
=int(a1/b1)

Just curious.



Chris Whitehead wrote:

i am running excell 2003 and am trying to use the quotient function.

I have found the ms help on the web and even copied and pasted the example
but all i get is an error. It is like my version of excel doesnt have the
quotient function at all, it isnt listed in the list of functions locally but
i get lots of refs to it here at MS office site?

Help Please


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

"Dave Peterson" wrote:
Why would you want to use:
=quotient(a1,b1) instead of =int(a1/b1)


Isn't quotient(a1,b1) more like roundown(a1/b1,0)
than int(a1/b1)? The difference seems to arise when
a1/b1 is negative, for example -10/3.
  #5   Report Post  
Posted to microsoft.public.excel.misc
Chris Whitehead
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

Not sure, i am a bit new to this i just need the full integer and not the
rest for one part of the formula and i need the remainder (MOD) for the rest

"Dave Peterson" wrote:

Why would you want to use:

=quotient(a1,b1)
instead of
=int(a1/b1)

Just curious.



Chris Whitehead wrote:

i am running excell 2003 and am trying to use the quotient function.

I have found the ms help on the web and even copied and pasted the example
but all i get is an error. It is like my version of excel doesnt have the
quotient function at all, it isnt listed in the list of functions locally but
i get lots of refs to it here at MS office site?

Help Please


--

Dave Peterson



  #7   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

I think I'd use =int() or =trunc() instead to get that quotient, though.



Chris Whitehead wrote:

Not sure, i am a bit new to this i just need the full integer and not the
rest for one part of the formula and i need the remainder (MOD) for the rest

"Dave Peterson" wrote:

Why would you want to use:

=quotient(a1,b1)
instead of
=int(a1/b1)

Just curious.



Chris Whitehead wrote:

i am running excell 2003 and am trying to use the quotient function.

I have found the ms help on the web and even copied and pasted the example
but all i get is an error. It is like my version of excel doesnt have the
quotient function at all, it isnt listed in the list of functions locally but
i get lots of refs to it here at MS office site?

Help Please


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

And it may just boil down to what the OP wants--no matter what =quotient(),
=int() and =trunc() return.

But I think it's good that you showed the difference.

wrote:

"Dave Peterson" wrote:
Why would you want to use:
=quotient(a1,b1) instead of =int(a1/b1)


Isn't quotient(a1,b1) more like roundown(a1/b1,0)
than int(a1/b1)? The difference seems to arise when
a1/b1 is negative, for example -10/3.


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
Dana DeLouis
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

Hi. Just 2 cents. The primary definition of Quotient is Floor (x)
http://functions.wolfram.com/IntegerFunctions/Quotient

In math, Quotient (-5,3) returns -2, but Excel returns -1.
It's hard to tell where the problem is with Excel because Floor (-2.5)
returns -3 in math programs, but Excel rounds towards 0 and returns -2.
Excel operates "a little differently" shall we say. Again...just 2 cents.
--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


" wrote
in message ...
"Dave Peterson" wrote:
Why would you want to use:
=quotient(a1,b1) instead of =int(a1/b1)


Isn't quotient(a1,b1) more like roundown(a1/b1,0)
than int(a1/b1)? The difference seems to arise when
a1/b1 is negative, for example -10/3.



  #10   Report Post  
Posted to microsoft.public.excel.misc
Tushar Mehta
 
Posts: n/a
Default quotient function prob. i have copied example but it gives err

In article ,
says...
Excel operates "a little differently" shall we say. Again...just 2 cents.

LOL! That's being polite.

To me it seems that the original analysts/programmers assigned the task of
developing various math and stats functions did not know their math (or
stats) or were given very poor specs and made up rules as they went along.

For example, the help for Floor claims "Rounds number down, toward zero..."
That's simply impossible for negative numbers.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi. Just 2 cents. The primary definition of Quotient is Floor (x)
http://functions.wolfram.com/IntegerFunctions/Quotient

In math, Quotient (-5,3) returns -2, but Excel returns -1.
It's hard to tell where the problem is with Excel because Floor (-2.5)
returns -3 in math programs, but Excel rounds towards 0 and returns -2.
Excel operates "a little differently" shall we say. Again...just 2 cents.



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default quotient function prob. i have copied example but it gives err



"Dave Peterson" wrote:

I think I'd use =int() or =trunc() instead to get that quotient, though.



Chris Whitehead wrote:

Not sure, i am a bit new to this i just need the full integer and not the
rest for one part of the formula and i need the remainder (MOD) for the rest

"Dave Peterson" wrote:

Why would you want to use:

=quotient(a1,b1)
instead of
=int(a1/b1)


Quotient function in excel is rather buggy:
given d=divisior, D=dividend; Q=quotient; R=rest
d D Q R
5 10 0 5
-5 10 -0 5
5 -10 -0 -5
-5 -10 0 -5

Apart the very funny invention of the concept of -0 in excel, now if we apply
the rule d=D*q+r we get that is verified only for the first and the fourth
expression not for the second and the third.

Forget about quotient
Also for the math definition of rest 0<=R<|D| so R should always be 0

But that is a long time bug, probably correcting it will break compatibility
with a lot of spreadsheets.
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
Index function error Motty Excel Worksheet Functions 4 December 4th 05 06:12 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM
weeknum function returns name error Unison Mike Excel Worksheet Functions 4 May 24th 05 09:27 PM
compile error: expected variable or function MMM Excel Discussion (Misc queries) 3 December 24th 04 03:11 PM


All times are GMT +1. The time now is 08:29 AM.

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

About Us

"It's about Microsoft Excel"