ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell format reverts to a custom date after change to General (https://www.excelbanter.com/excel-programming/388006-cell-format-reverts-custom-date-after-change-general.html)

billgeo

Cell format reverts to a custom date after change to General
 
I have several rows in a worksheet that are initially formated with
General (no number formatting).
However, when the user enters something like 3/8 or 3.8 Excel reads
it as a date and changes the input to its date equivalent and changes
the cell format to Custom d-mmm. This occurs allot in one particular
row as fractions are entered. I'm at a loss. I'm sure there is nothing
in my code doing this so there must be some auto format type of
setting control this but I'm unable to locate it.

Thanks for any insights.

Bill


Mark Lincoln

Cell format reverts to a custom date after change to General
 
Excel will treat an entry like 3/8 as a date. To get the fraction one
would have to enter =3/8.

As for fractions turning into dates, see if you have "Extend list
formats and formulas" checked under Tools|Options|Edit. Excel may be
trying to extend a date format into a new column.

Mark Lincoln

On Apr 24, 12:01 am, billgeo wrote:
I have several rows in a worksheet that are initially formated with
General (no number formatting).
However, when the user enters something like 3/8 or 3.8 Excel reads
it as a date and changes the input to its date equivalent and changes
the cell format to Custom d-mmm. This occurs allot in one particular
row as fractions are entered. I'm at a loss. I'm sure there is nothing
in my code doing this so there must be some auto format type of
setting control this but I'm unable to locate it.

Thanks for any insights.

Bill




billgeo

Cell format reverts to a custom date after change to General
 
Thanks, I was check so I'll uncheck it and test it out.

Bill



All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com