LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
bz bz is offline
external usenet poster
 
Posts: 16
Default format problem

format problem:

user needs to be able to enter numbers into a column and have trailing
zeros (if present) retained. [0.10, 0.100, and 0.1000 are different!]

..numberformat='@' works for this feature (text mode)

user also needs to be able to enter formula into cells in this column and
have them execute.

text format does NOT work for this feature, excel considers what is entered
as text and does NOT execute the formula.

..numberformat='general' will allow execution, but loses trailing zeros

How can I both retain trailing zeros and enter and execute formula into the
cells?

I guess I could
1) force format to text when a cell is selected
2) on change
check to see how many digits to the right of any decimal place
and create a format #.00... that has the same number of digits and
apply that to the cell.
if a formula is present[an = sign in first space], put it back and
hope that it will now be evaluated.

Is there an easier way to do this?


--
bz

please pardon my infinite ignorance, the set-of-things-I-do-not-know is an
infinite set.


 
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
Excel Format Problem - Date Overrides Format Mary Excel Discussion (Misc queries) 5 February 10th 10 05:49 AM
General Format to Custom format problem KELC-F/A Excel Discussion (Misc queries) 1 May 2nd 08 09:51 PM
if format problem wtrbb Excel Worksheet Functions 9 November 30th 07 08:20 PM
Format Problem randy Excel Programming 3 August 25th 06 02:35 PM
Format Problem Amjad Excel Discussion (Misc queries) 1 September 12th 05 10:07 AM


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