Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Including number format in formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zilbandy - 05 Nov 2006 15:21 GMT
I have a simple "if/then/else" formula that I would like to display
the result of the "else" portion with no decimal places showing,
instead of the default value of the cell. Can I include the format in
the formula? Here is my formula:

  =IF(D12>75,D12/E12,D12)

Thanks,

Signature

Zilbandy - Tucson, Arizona USA <zil@zilbandyREMOVETHIS.com>
Dead Suburban's Home Page: http://zilbandy.com/suburb/
PGP Public Key: http://zilbandy.com/pgpkey.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

VBA Noob - 05 Nov 2006 15:29 GMT
Hi,

Try =IF(D12>75,D12/E12,INT(D12))

or replace Int with roundup or rounddown

VBA Noob

> I have a simple "if/then/else" formula that I would like to display
> the result of the "else" portion with no decimal places showing,
[quoted text clipped - 10 lines]
> PGP Public Key: http://zilbandy.com/pgpkey.htm
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don Guillett - 05 Nov 2006 15:38 GMT
=TEXT(IF(D12>75,D12/E12,D12),"#,###")

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

>I have a simple "if/then/else" formula that I would like to display
> the result of the "else" portion with no decimal places showing,
[quoted text clipped - 4 lines]
>
> Thanks,
Lori - 06 Nov 2006 15:01 GMT
Or use a custom number format like: [>75]0.00;0

> I have a simple "if/then/else" formula that I would like to display
> the result of the "else" portion with no decimal places showing,
[quoted text clipped - 10 lines]
> PGP Public Key: http://zilbandy.com/pgpkey.htm
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.