Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Custom Format as Currency with If/Then ($1B or $500M)

Trying to get a column to auto-format numbers based on value - I've
done some Google searching, checked through newsgroup archives and
must be looking in the wrong place.

I have a variety of numbers from $146.0B to $.0093B using a Custom
Format of $#.0####,,,"B". Ideally, the "$.0093B" should be rendering
as $9.3M but I'm not sure how to do an if/then statement or some sort
of tweak to allow this to happen.

Is this even possible or should I do everything in millions?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,388
Default Custom Format as Currency with If/Then ($1B or $500M)

Hi,
You could do this with an event macro.
Something like:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect target thingy < 500000 then ActiveCell format is millions
If Intersect target thingy 500000 then ActiveCell format is billions
End Sub

Regards - Dave.
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 353
Default Custom Format as Currency with If/Then ($1B or $500M)

You can do this with conditional formatting if you have Excel 2007:
Conditional formatting - New Rule - Use a formula to determine which cells
to format
=D2=1000000
Format - number tab - set custom format - $#.0####,,"M" - OK
then again...
Conditional formatting - New Rule - Use a formula to determine which cells
to format
=D2=1000000000
Format - number tab - set custom format - $#.0####,,,"B" - OK

If it formats them all as millions - Conditional formatting - manage rules -
and reverse the order...


" wrote:

Trying to get a column to auto-format numbers based on value - I've
done some Google searching, checked through newsgroup archives and
must be looking in the wrong place.

I have a variety of numbers from $146.0B to $.0093B using a Custom
Format of $#.0####,,,"B". Ideally, the "$.0093B" should be rendering
as $9.3M but I'm not sure how to do an if/then statement or some sort
of tweak to allow this to happen.

Is this even possible or should I do everything in millions?

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 currency format for Indian rupees seenu Excel Discussion (Misc queries) 2 July 3rd 08 01:03 PM
Currency Custom Format B Rager Excel Discussion (Misc queries) 2 November 15th 07 06:31 PM
Custom Currency/Numerical Formatting? John Mann Excel Discussion (Misc queries) 6 February 23rd 07 11:40 PM
Comma separator for custom Currency Bald Eagle Excel Discussion (Misc queries) 0 January 16th 06 11:16 PM
currency custom fomula Michele Excel Discussion (Misc queries) 4 December 23rd 04 06:39 PM


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