Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I clear a cell contents but not the formula behind it

I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How do I clear a cell contents but not the formula behind it

The cell will be locked by default, but you need to protect the
worksheet for this to take effect - Tools | Protection | Protect
worksheet. You have an option to provide a password if you wish, but
if you do then write it down somewhere so you don't have to come back
here asking how to unprotect it having lost your password !!

This will prevent accidental erasure of the formula.

Hope this helps.

Pete

On Nov 19, 9:12 pm, SliderSteve
wrote:
I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default How do I clear a cell contents but not the formula behind it

Protecting your formula cells as suggested by Pete_UK will protect your
formulas.

If you want to suppress the formulas from displaying 0's (zeroes) when the
source data has been removed you can do that by clicking on TOOLS/OPTIONS.
Click the VIEW tab and towards teh bottom of the tab page there are 3 columns
of check boxes, remove the check from the check box labeled ZERO VALUES
(located in the center column at the bottom) to suppress 0's from displaying.
--
Kevin Backmann


"Pete_UK" wrote:

The cell will be locked by default, but you need to protect the
worksheet for this to take effect - Tools | Protection | Protect
worksheet. You have an option to provide a password if you wish, but
if you do then write it down somewhere so you don't have to come back
here asking how to unprotect it having lost your password !!

This will prevent accidental erasure of the formula.

Hope this helps.

Pete

On Nov 19, 9:12 pm, SliderSteve
wrote:
I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How do I clear a cell contents but not the formula behind it

I'm not sure why you would delete data in a cell that you have a formula in?
You typically would delete/over write the data in the cells *providing* the
data to the cell with the formula.

I do have a similar situation like this with our data collection gear. I
need to get the data provided by the formula(s) out before overwriting the
data supplying my formula cells. I do that by copying the data provided by
the formula cells and then Pasting Special / Values to a new sheet. Now the
copied data is static having left out the formulas and I can over write the
cells providing data to my formula cells.

I hope this helps.
--
Tweedy

"Kevin B" wrote:

Protecting your formula cells as suggested by Pete_UK will protect your
formulas.

If you want to suppress the formulas from displaying 0's (zeroes) when the
source data has been removed you can do that by clicking on TOOLS/OPTIONS.
Click the VIEW tab and towards teh bottom of the tab page there are 3 columns
of check boxes, remove the check from the check box labeled ZERO VALUES
(located in the center column at the bottom) to suppress 0's from displaying.
--
Kevin Backmann


"Pete_UK" wrote:

The cell will be locked by default, but you need to protect the
worksheet for this to take effect - Tools | Protection | Protect
worksheet. You have an option to provide a password if you wish, but
if you do then write it down somewhere so you don't have to come back
here asking how to unprotect it having lost your password !!

This will prevent accidental erasure of the formula.

Hope this helps.

Pete

On Nov 19, 9:12 pm, SliderSteve
wrote:
I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 284
Default How do I clear a cell contents but not the formula behind it

SliderSteve

Because you don't normally enter data into a cell that also has a formula,
this will work to clean all the old data out leaving only the formulas for
new data. Before you do this PLEASE back up you worksheet!!!

Select your entire worksheet(or the area you want to
cleanup)Goto"Edit""Go To""Special""Constants"Select all that Apply"OK".

Now all is hilited just delete the contents (I prefer right click and select
Clear Contents) Your worksheet is now ready for the new data, with all
formulas still in place. Be sure and read and follow the other advise you've
recieved it is good stuff to do.

Mike Rogers

"SliderSteve" wrote:

I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I clear a cell contents but not the formula behind it

You can have a formula in a cell that returns results from other cells.

Or you can a have a value in a cell. Not both at once.

See if F5SpecialConstantsOK does what you want.

This will select cells that aren't formulas.

With those cells selected, EditClear Contents, leaving your formulas behind
waiting to return new results.


Gord Dibben MS Excel MVP

On Mon, 19 Nov 2007 13:12:02 -0800, SliderSteve
wrote:

I have been asked to look at a pronblem with a colleagues spreadsheet in
Excel. When you clear data within a cell, so new data can be added the
formula for teh cell has also been deleted.

Is there a way to set cells to maintain underlying formulas by default?


Reply
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
Clear Contents Of Cell If Value = 0 or Error carl Excel Worksheet Functions 4 July 9th 07 04:54 PM
Is there a formula to clear the contents of a specific cell? Bob Smith Excel Worksheet Functions 2 December 9th 06 07:41 PM
vb to clear cell contents RichT New Users to Excel 6 June 27th 05 08:26 AM
Clear cell contents with a button KFC / A&W Boy Excel Worksheet Functions 1 March 7th 05 09:39 AM
Clear Contents But Not Formula Gancom3 Excel Discussion (Misc queries) 2 February 1st 05 11:30 PM


All times are GMT +1. The time now is 02:04 PM.

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"