Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default Custom number formatting

Hi all,

I am trying to format a number that can be in the range + or - xxxxxx.
I have formatted such that it reads:
[<1000000]0.00,"Kbps";[=1000000]0.00,,"Mbps";General
The formatting works for all positive values (eg 9394000 is output as
9.39Mbps, 128000 is output as 128.00Kbps). I cannot however get the negative
values formatted correctly? -192000 is output as -192Kbps which is correct,
but -1344000 is output as -1344.00Kbps instead of -1.34Mbps?

I suspect the issue is very trivial - but cannot locate : (
Help really appreciated!

Thx,

Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Custom number formatting

I think you are stuck with what you have. Your first section is formatting
all numbers <1000000, which of course would include all negative numbers, so
they will all be "Kbps". So only positive numbers 1000000 will be "Mbps".
Excel doesn't allow for any more conditions in custom formatting to take
this any further. Besides, if you are dealing with -bps then you have
discovered how to send data back into the past. I don't think Microsoft can
deal with that yet.
Just my $0.02

Mike F
"Don" wrote in message
...
Hi all,

I am trying to format a number that can be in the range + or - xxxxxx.
I have formatted such that it reads:
[<1000000]0.00,"Kbps";[=1000000]0.00,,"Mbps";General
The formatting works for all positive values (eg 9394000 is output as
9.39Mbps, 128000 is output as 128.00Kbps). I cannot however get the
negative
values formatted correctly? -192000 is output as -192Kbps which is
correct,
but -1344000 is output as -1344.00Kbps instead of -1.34Mbps?

I suspect the issue is very trivial - but cannot locate : (
Help really appreciated!

Thx,

Don



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
Custom Number Formatting BrainFRZ Excel Discussion (Misc queries) 4 January 18th 09 01:24 PM
Custom number formatting Lonnie Excel Worksheet Functions 9 February 6th 07 02:21 AM
Number custom formatting Don Excel Discussion (Misc queries) 1 June 25th 06 03:36 AM
Custom Formatting a number Hari Prasadh Excel Discussion (Misc queries) 8 January 22nd 05 01:40 PM
Custom Number Formatting LDanix Excel Programming 3 January 16th 05 01:45 PM


All times are GMT +1. The time now is 12:34 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"