Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Displaying a number with different decimals depending on a condition


Hi all,

Anyone knows of a formula or combination of formulas to display a
number with different decimals depending on a condition?

for example;
If condition A is met, display number with no decimals
if condition B is met, display number with 2 decimals
and
if condition c is met, display number with 4 decimals

help will be greatly appreciated

Thanks ----
Juan Garces


--
JGarces
------------------------------------------------------------------------
JGarces's Profile: http://www.excelforum.com/member.php...o&userid=30406
View this thread: http://www.excelforum.com/showthread...hreadid=572268

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Displaying a number with different decimals depending on a conditi

you can do this with a custom number format. Here is a sample format. It is
somewhat limited (I don't think you can have more than three options).

[<=100]0.0000;[<=200]0.00;0

"JGarces" wrote:


Hi all,

Anyone knows of a formula or combination of formulas to display a
number with different decimals depending on a condition?

for example;
If condition A is met, display number with no decimals
if condition B is met, display number with 2 decimals
and
if condition c is met, display number with 4 decimals

help will be greatly appreciated

Thanks ----
Juan Garces


--
JGarces
------------------------------------------------------------------------
JGarces's Profile: http://www.excelforum.com/member.php...o&userid=30406
View this thread: http://www.excelforum.com/showthread...hreadid=572268


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
Displaying decimals that go in to a given number weSky Excel Discussion (Misc queries) 1 June 7th 06 09:54 AM
Display number of day of month depending on the year Dn_ Excel Discussion (Misc queries) 1 May 24th 06 05:36 PM
Merging Excel data to word, keeps including all decimals on number Henrik Notlev Excel Discussion (Misc queries) 2 January 27th 06 07:30 AM
How do i stop automatic decimals after number ex 5280.? Frustrated Excel Discussion (Misc queries) 1 March 17th 05 12:47 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:46 PM.

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"