Dividing with decimals in answer (ie. batting averages)

  • Thread starter Thread starter Kenosha
  • Start date Start date
K

Kenosha

How do you divide and get more than just an integer? I would like to have
team statistics and calculate batting averages to three decimal places.
 
Hits divided by at bats

A1 = hits 3
B1 = at bats = 9

=ROUND(A1/B1,3)

Custom format as .000
 
Hits divided by at bats

A1 = hits 3
B1 = at bats = 9

=ROUND(A1/B1,3)

Custom format as .000
 
highlight the column or row your data will be in...

Go to Format > Cells > Number and ensure it is set to Number.

Change Decimal Places to 3.

Although, to truly look like a batting average, you should drop the leading
0. You can then click on Custom and remove the 0 prior to the .
 
highlight the column or row your data will be in...

Go to Format > Cells > Number and ensure it is set to Number.

Change Decimal Places to 3.

Although, to truly look like a batting average, you should drop the leading
0. You can then click on Custom and remove the 0 prior to the .
 
Thanks. That worked with the decimal placement, but I can not get 7 divided
by 2 to be .285.
 
Thanks. That worked with the decimal placement, but I can not get 7 divided
by 2 to be .285.
 
Kenosha

7 divided by 2 is 3.5 .... but 2 divided by 7 is .285714. Set to 3 places
you get .285

Mike Rogers
 
Kenosha

7 divided by 2 is 3.5 .... but 2 divided by 7 is .285714. Set to 3 places
you get .285

Mike Rogers
 
Thanks. That solved the decimal problem. I still can not get 2 divided by 7
to be more than an integer and be .285 rather than .000.
 
Thanks. That solved the decimal problem. I still can not get 2 divided by 7
to be more than an integer and be .285 rather than .000.
 
What formula is used to get those results? Quotient only provides an integer.
 
What formula is used to get those results? Quotient only provides an integer.
 
Kenosha

with 2 in A1 and 7 in B1 Formula is =A1/B1

Format cell via: format cells>custom> in the "type box enter .000 and ok out

Mike Rogers
 
Kenosha

with 2 in A1 and 7 in B1 Formula is =A1/B1

Format cell via: format cells>custom> in the "type box enter .000 and ok out

Mike Rogers
 
What is your cell format and formula? What does =ISNUMBER(cell) return when
cell points to each input and the cell with the formula? If it returns
FALSE, what does =LEN(cell) return?

Your reported results taken at face value appear to rule out the obvious
problems, but =2/7 in Excel returns 0.285714, which when rounded to 3 decimal
places is 0.286. If you want 0.285, you probably intend
=ROUNDDOWN(2/7,3)

Jerry
 
What is your cell format and formula? What does =ISNUMBER(cell) return when
cell points to each input and the cell with the formula? If it returns
FALSE, what does =LEN(cell) return?

Your reported results taken at face value appear to rule out the obvious
problems, but =2/7 in Excel returns 0.285714, which when rounded to 3 decimal
places is 0.286. If you want 0.285, you probably intend
=ROUNDDOWN(2/7,3)

Jerry
 

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

Back
Top