quotient function in excel

G

Guest

I am helping a client replace yet another cumbersome excel spreadsheet with
an access mdb, he is using the quotient function in excel which returns the
integer portion of a division. Not rounding.

I am having trouble finding a way to duplicate this in a query, any
suggestions?

Thanks!

Angela
 
M

Marshall Barton

AngieSD said:
I am helping a client replace yet another cumbersome excel spreadsheet with
an access mdb, he is using the quotient function in excel which returns the
integer portion of a division. Not rounding.

I am having trouble finding a way to duplicate this in a query, any
suggestions?


I think the Int function is all you need:
Int(n/d)
 
G

Guest

I was sure it was an easy answer! I guess that's a new function for me,

Thanks so much,

Angela
 
F

fredg

I am helping a client replace yet another cumbersome excel spreadsheet with
an access mdb, he is using the quotient function in excel which returns the
integer portion of a division. Not rounding.

I am having trouble finding a way to duplicate this in a query, any
suggestions?

Thanks!

Angela

Use the integer division symbol "\" to perform the division.

13/2 = 6.5
13\2 = 6
 
M

Marshall Barton

fredg said:
Use the integer division symbol "\" to perform the division.

13/2 = 6.5
13\2 = 6


I don't see where Angie said the numerator and denominnator
are both integers. The \ operator does unexpected things
with non integer operands. E.g. 10 \ 2.5
 
K

knightconsulting

for what it's worth you can set a reference to the Excel object
library and do anything you can in Excel with Access - probably not
necessary in this case but always an option.
 

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