Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I add TRUNC to an existing formular?

I have this in a cell and want to TRUNC the results
=(($A6*$B$3)-D$5)/($B$3-D$5)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default How do I add TRUNC to an existing formular?

=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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I add TRUNC to an existing formular?


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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I add TRUNC to an existing formular?

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
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
how do i TRUNC a date field using SQL Server ODBC ? Nick Newton Excel Discussion (Misc queries) 0 June 22nd 06 02:17 PM
excel formular update bluesky Excel Worksheet Functions 1 April 4th 06 03:33 AM
Reducing Formular length Nello Excel Discussion (Misc queries) 2 June 15th 05 06:32 PM
Adding more source data to existing scatter plot Tom Charts and Charting in Excel 1 March 21st 05 10:03 PM
How to protect the formular joy Excel Discussion (Misc queries) 1 February 20th 05 05:12 AM


All times are GMT +1. The time now is 02:31 AM.

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

About Us

"It's about Microsoft Excel"