Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cell format changes automatically

Status
Not open for further replies.

vestax22

Programmer
Jun 18, 2003
139
CA
Hi, I have a cell with a standard format inside it. I have a long formula inside it that seems to change the format of the cell to a date format.

Is it possible for a formula to change the format of a cell?

Any help would be appreciated

 
It returns the time value of the numeric value.



Example if the value returned is 2 the cell will show :

00-01-02 00:00

if I press f9 and f2 I see the vaule 2


Any suggestions?


 
do you have anything in the formula like :
Text(A1,"dd/mm/yy") ???
Formulae cannot change the format of a cell

Rgds, Geoff
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Want the best answers to your questions ? faq222-2244
 
or the format has been set to custom or something. Are you SURE that it isn't in date format ??
If you select the ell then go Format>Cells and choose the number tab...what do you see ??

Rgds, Geoff
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Want the best answers to your questions ? faq222-2244
 
Here is the formula :

=(IF(OR(OR(AND(ISTEXT(F56);D56="");D56="ACT");D56="EST");1;IF(AND(ISTEXT(F56);(D56)="REV");-1;0)))+H55-IF(ISTEXT(A55);0;IF(MONTH(A56)>MONTH(A55);J55;0))A55);J55;0))


Well there it is.

If there are errors inside the formula its because I translated from french to english. My Excel is french.

Any suggestions?

BTW Geof the format has been set to custom but if I set it to general it will automatically change on refresh.



 
It's ok now. I changed the format to numeric and it doesn't change anymore. Thx for the help guys!



 
so it was the format of the cell all along [lol]

Rgds, Geoff
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Want the best answers to your questions ? faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top