Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ailish
 
Posts: n/a
Default Custom Format to divide by 10

Hi All

I was wondering if you can create a custom format to divide by 10. As you
know you can create a custom format for 1000 i.e. 0, and 1m i.e. 0,,. I was
looking to do a similar style for this group of cells and I don't really want
to use the Paste Special and Divide or linking to another cell to divide.

Thanks
Ailish
  #2   Report Post  
Gary76
 
Posts: n/a
Default Custom Format to divide by 10

Can't think of way of formatting this - hopefully some other bright spark
will...

You could use a macro:

' -------------------
Sub DivideBy10()
Dim cel As Range
For Each cel In Selection
If cel.HasFormula = False Then
cel.Value = cel.Value / 10
End If
Next
End Sub
'-------------

although this would actually divide the values by 10.

HTH anyway...

"Ailish" wrote:

Hi All

I was wondering if you can create a custom format to divide by 10. As you
know you can create a custom format for 1000 i.e. 0, and 1m i.e. 0,,. I was
looking to do a similar style for this group of cells and I don't really want
to use the Paste Special and Divide or linking to another cell to divide.

Thanks
Ailish

  #3   Report Post  
MrShorty
 
Posts: n/a
Default Custom Format to divide by 10


I've done some failry extensive looking for variations on the "," format
code theme, and haven't found much. Best answer would depend a lot on
your overall goals. Maybe some variation on this theme:

Place the "real" values in column 1
Column 2 then contains the formula =A1/10^n where n is the number of
places you want the decimal moved.

Calculations that need to reference the real values will reference
column 1, and tables/reports that need to reference the displayed
values will reference column 2. I know that the apparent redundancy
seems irritating, but it's probably the simplest way to get what you
want.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=479414

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 Format time to arc Flintstone Excel Discussion (Misc queries) 2 August 17th 05 12:47 AM
Custom Format Nick Excel Discussion (Misc queries) 3 August 15th 05 02:33 PM
Cell contents with custom time format rounded after double-click HumblePie Excel Discussion (Misc queries) 2 August 6th 05 08:07 PM
Format Number (custom) barryderay Excel Discussion (Misc queries) 3 April 7th 05 07:30 PM
Number Format (custom) barryderay Excel Discussion (Misc queries) 2 April 7th 05 07:24 PM


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