In Excel how do you clear data without losing a formula?

  • Thread starter Thread starter CalifGranny
  • Start date Start date
C

CalifGranny

Older version of Excel: is there a way to clear the contents of a cell
without deleting the formula (not the formatting, the formula).

Thanks.
 
Nope.

The cell can contain a formula or a value. Once you clear a cell, you've
cleared everything.

But maybe you can change the formula so that it looks at some sort of key and
makes the cell look blank if something isn't the way you like it:

=if(a1=1,"",vlookup(a17,sheet2!a:e,4,0))

So if I put a 1 in A1, then the cell with this formula looks empty.

If I clear A1--or put something else in it, then I'll see what my =vlookup()
formula would return.
 
Depends upon the formula.......

If the formula references other cell(s) you must clear the cells the formula is
referencing.

Select all cells and F5>Special>Constants.

Check or uncheck your options(uncheck "text" if you want to leave titles etc.)
and OK

Edit>Clear>Contents

If the formulas are not referencing other cells then you would be stuck with
just deleting the formulas to clear contents.

i.e A formula like such =123*42 would have to be deleted or changed manually.


Gord Dibben MS Excel MVP
 
Dave Peterson said:
Nope.

The cell can contain a formula or a value. Once you clear a cell, you've
cleared everything.

But maybe you can change the formula so that it looks at some sort of key and
makes the cell look blank if something isn't the way you like it:

=if(a1=1,"",vlookup(a17,sheet2!a:e,4,0))

So if I put a 1 in A1, then the cell with this formula looks empty.

If I clear A1--or put something else in it, then I'll see what my =vlookup()
formula would return.
A bit beyond me, but thanks for the "nope", saved me a lot of time!
 
:
Thanks! I'll make up a dummie sheet and try that: appreciate your time.
Happy New Year.
 

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

Back
Top