Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default format decimals displayed based on results

Is there a way to format a cell to vary the decimals displayed based on the
results it is showing?
Ex: if the value is <100 show 4 decimal places, if it is over 100 but
less than 1000, show 2 decimals, and over 1000 show no decimals.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default format decimals displayed based on results

Use a format of

[=1000]#,##0;[=100]#,##0.00;#,##0.0000

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"widman" wrote in message
...
Is there a way to format a cell to vary the decimals displayed based on

the
results it is showing?
Ex: if the value is <100 show 4 decimal places, if it is over 100 but
less than 1000, show 2 decimals, and over 1000 show no decimals.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default format decimals displayed based on results

With a helper column this gets close to your needs
=ROUND(A1,5-LOG(A1))
but it show 1 decimal when A1 1000

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"widman" wrote in message
...
Is there a way to format a cell to vary the decimals displayed based on
the
results it is showing?
Ex: if the value is <100 show 4 decimal places, if it is over 100 but
less than 1000, show 2 decimals, and over 1000 show no decimals.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default format decimals displayed based on results

thanks. That does it very nicely

"Bob Phillips" wrote:

Use a format of

[=1000]#,##0;[=100]#,##0.00;#,##0.0000

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"widman" wrote in message
...
Is there a way to format a cell to vary the decimals displayed based on

the
results it is showing?
Ex: if the value is <100 show 4 decimal places, if it is over 100 but
less than 1000, show 2 decimals, and over 1000 show no decimals.




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
copy with format horst New Users to Excel 16 September 25th 06 09:43 PM
Accounting format does not align decimals. Accounting Alignment Excel Discussion (Misc queries) 1 July 7th 06 08:42 PM
how do i format a cell based on format of a range of cells? Chris Hardick Excel Discussion (Misc queries) 2 April 3rd 06 08:54 AM
Function Formula is displayed not results iloveexcellllll Excel Worksheet Functions 0 January 11th 05 02:29 AM
Displayed number format Kevin Excel Worksheet Functions 2 November 23rd 04 04:23 PM


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

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

About Us

"It's about Microsoft Excel"