Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have this in a cell and want to TRUNC the results
=(($A6*$B$3)-D$5)/($B$3-D$5) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=TRUNC((($A6*$B$3)-D$5)/($B$3-D$5),0) truncates to zero decimal places,
=TRUNC((($A6*$B$3)-D$5)/($B$3-D$5),1) truncates to one decimal place, etc. Hope this helps, Hutch "Preplexed" wrote: I have this in a cell and want to TRUNC the results =(($A6*$B$3)-D$5)/($B$3-D$5) |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Code: -------------------- =trunc((($A6*$B$3)-D$5)/($B$3-D$5),0) or =int((($A6*$B$3)-D$5)/($B$3-D$5)) or =round((($A6*$B$3)-D$5)/($B$3-D$5),0) -------------------- If you look trunc() up in help it discusses the differences. Trunc supports precision, so you can truncate at any decimal position, while int truncates all the decimal positions. Tom -- folderol ------------------------------------------------------------------------ folderol's Profile: http://www.excelforum.com/member.php...o&userid=37288 View this thread: http://www.excelforum.com/showthread...hreadid=570022 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you that did the trick
"Tom Hutchins" wrote: =TRUNC((($A6*$B$3)-D$5)/($B$3-D$5),0) truncates to zero decimal places, =TRUNC((($A6*$B$3)-D$5)/($B$3-D$5),1) truncates to one decimal place, etc. Hope this helps, Hutch "Preplexed" wrote: I have this in a cell and want to TRUNC the results =(($A6*$B$3)-D$5)/($B$3-D$5) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i TRUNC a date field using SQL Server ODBC ? | Excel Discussion (Misc queries) | |||
excel formular update | Excel Worksheet Functions | |||
Reducing Formular length | Excel Discussion (Misc queries) | |||
Adding more source data to existing scatter plot | Charts and Charting in Excel | |||
How to protect the formular | Excel Discussion (Misc queries) |