ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   excel formula referring to a decimal portion of another cell (https://www.excelbanter.com/excel-worksheet-functions/132219-excel-formula-referring-decimal-portion-another-cell.html)

teenerx5

excel formula referring to a decimal portion of another cell
 
What formula would I use for the following:

B3 contains the following formula:
=(A2-e4)/18
I wish B3 to be to be displayed as a whole number rounded down.
If the actual value of B3 is, for example, 7.6,
I would like another cell to reflect .6 x 18, rounded up

Bob Phillips

excel formula referring to a decimal portion of another cell
 
=INT((A2-E4)/18)

=MOD((A2-E4)/18,1)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"teenerx5" wrote in message
...
What formula would I use for the following:

B3 contains the following formula:
=(A2-e4)/18
I wish B3 to be to be displayed as a whole number rounded down.
If the actual value of B3 is, for example, 7.6,
I would like another cell to reflect .6 x 18, rounded up





All times are GMT +1. The time now is 07:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com