Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Erasing contents and leaving the formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Octavio - 08 Aug 2007 10:07 GMT
What is the way to leave the formula (sum, etc.) intact after erasing the
contents inside?  Where I do set this?
Thanks in advance.
Mike H - 08 Aug 2007 10:23 GMT
Hi,

An example of what you are trying to do would help but if I understand
correctly you might try copying the cell and then 'paste special' 'paste
values'.

The will replace the formula (=a1+a2) with the result of that formula.

Mike

> What is the way to leave the formula (sum, etc.) intact after erasing the
> contents inside?  Where I do set this?
> Thanks in advance.
Octavio - 08 Aug 2007 10:41 GMT
Thanks for your repply.
What I mean is, this is an example:
I have a time sheet for one week with the timing spent on  different
projects each day of that week in rows and columns with the "total"
converging on the lower right hand corner of the page.
Then I want to reuse the same form for the following week, so I erase all
the numbers for the previous week, but I want to keep the sum formulas so I
would not have to recreate these again.
Right now I erase the formulas when I erase the numbers, so I assume that
there is a setting somewhere that will allow me to erase the numbers without
erasing the formulas.
Please advise if there is one.

> Hi,
>
[quoted text clipped - 9 lines]
>> contents inside?  Where I do set this?
>> Thanks in advance.
JLatham - 08 Aug 2007 13:28 GMT
How are you erasing the numbers/formulas now?

There's no quick way to tell Excel to only deal with the numbers entered by
the end user.  See Max's reply below for more on that.  If you are selecting
by hand, simply do not select the cells with the formulas in them before
hitting the [Del] key.

But there is a 'work around' using the idea that Max did come up with.  
Where you have text/labels that you don't want erased, change those to
formulas and then use his Edit | Goto | Special [Constants] method.

Example:  You have a cell that you typed EMPLOYEE NAME into and of course
you don't want that erased.  Change that to ="EMPLOYEE NAME" and it becomes a
formula instead of a constant and would not be selected using Max's
suggestion.

If you're doing this copy/cleanup with a VBA macro, then it can be altered
to just clear out the specific areas you need cleared out, leaving formulas
behind.  Start down that road by posting the code here, if it exists.

> Thanks for your repply.
> What I mean is, this is an example:
[quoted text clipped - 22 lines]
> >> contents inside?  Where I do set this?
> >> Thanks in advance.
Gord Dibben - 08 Aug 2007 23:52 GMT
I don't understand this Jerry.

>You have a cell that you typed EMPLOYEE NAME into and of course
>you don't want that erased.  Change that to ="EMPLOYEE NAME" and it becomes a
>formula instead of a constant and would not be selected using Max's
>suggestion.

When F5>Special>Constants just uncheck "Text" and  EMPLOYEE NAME won't be
selected.

Gord

>How are you erasing the numbers/formulas now?
>
[quoted text clipped - 42 lines]
>> >> contents inside?  Where I do set this?
>> >> Thanks in advance.
Max - 08 Aug 2007 10:45 GMT
Another angle .. maybe you mean selecting just the cells with constants and
clearing these, leaving formula cells alone ?

If so, you might want to try pressing F5 > Special > Check "Constants" > OK
This will select all non-formula** cells in the sheet at one go.
You could then clear with the Delete key.

**unfortunately this might include some row/col labels, etc
besides precedent cells.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> What is the way to leave the formula (sum, etc.) intact after erasing the
> contents inside?  Where I do set this?
> Thanks in advance.
gls858 - 08 Aug 2007 15:44 GMT
> What is the way to leave the formula (sum, etc.) intact after erasing
> the contents inside?  Where I do set this?
> Thanks in advance.

Instead of filling in your blank form copy it to another
worksheet and then fill it in leaving your original intact
to use the next time. A similar process would be to do a
Save As on the original thus creating a new workbook and
then use it.

gls858

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.