Format of cell

G

GARY

Cells A!, B1, C1 and D1 have a "General" format:

A1 contains 5
B1 contains 6
C1 contains 2
D1 contains formula =A1+B1 so 11 is displayed.

When I change the formula in D1 to =A1+C1 and press "Enter", the
format of D1 changes to "Text" so "=A1+C1" is displayed.

I then have to change the format of D1 to "General" and press F2.
Now 7 is displayed in D1.

(This also happens if the four cells have a "Number" format).

How can I keep the cell's original format?

..
 
S

Sheeloo

I suspect that the value in C1 is stored as a text.

Try this
=ISNUMBER(C1) in any cell... if you get FALSE then that is the source of
your problem.

Or
=ISTEXT(C1) will give you TRUE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top