Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Auto Decimal Place Application

Hi,

I have a spreadsheet that deals with numbers to different decimal
places at different times. Instead of manually going over the other
cells and changing via format number menus to 2dp or 3dp etc is there a
way to have a key single cell that I can set the format in and the rest
of the cells all follow suit?

IE in cell A1, I have the number 20.000, and in A2~A10 I have a range
of other numbers that will automatically adopt the 00.000 dp placement?

Thanks,

Slash.

  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Auto Decimal Place Application

What is wrong with selecting cells A1:A10, then performing the format
operation?
Excel has a formatting toolbar (View/Toolbars/Formatting) that has buttons
on it you can use to increment/decrement decimal places instead of going
through the format menus.


" wrote:

Hi,

I have a spreadsheet that deals with numbers to different decimal
places at different times. Instead of manually going over the other
cells and changing via format number menus to 2dp or 3dp etc is there a
way to have a key single cell that I can set the format in and the rest
of the cells all follow suit?

IE in cell A1, I have the number 20.000, and in A2~A10 I have a range
of other numbers that will automatically adopt the 00.000 dp placement?

Thanks,

Slash.


  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Auto Decimal Place Application

Caus its not that simple, the cells and rows are all over the place so
selecting them all to do a global dp change is long winded this is why
I was thinking of a key cell that all the others then are going to
follow suit to when I change that one cell.

Possibly a macro function?

Cheers,

Slash.

  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Auto Decimal Place Application

You could try naming the key cell and the target range. Then use a macro
like this and assign it to a button to make the number format the same. I'm
not sure how to make it automatic as I don't know of any events that are
triggered by changing the number format of a cell, otherwise you could use an
event handler.

Sub Test()
Range("TargetRange").NumberFormat = _
Range("KeyCell").NumberFormat
End Sub

" wrote:

Caus its not that simple, the cells and rows are all over the place so
selecting them all to do a global dp change is long winded this is why
I was thinking of a key cell that all the others then are going to
follow suit to when I change that one cell.

Possibly a macro function?

Cheers,

Slash.


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
Highest & lowest place value / decimal places of cell value Neil Goldwasser Excel Worksheet Functions 2 March 15th 06 02:27 PM
Extra 1 showing up in 15th decimal place nsc Excel Discussion (Misc queries) 5 December 16th 05 12:57 PM
Custom formatting to force a decimal place Mike K Excel Discussion (Misc queries) 3 July 31st 05 10:56 AM
excel validation to 1 decimal place Tracy New Users to Excel 4 February 23rd 05 11:09 PM
How do I override fixed decimal place settings in EXcel 2003? jroyv Excel Worksheet Functions 2 February 11th 05 06:07 PM


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