clearing cells w/out clearing the formulas, formats

Tom F

Active Member
Joined
Oct 19, 2002
Messages
263
I have a schedule to demonstrate. The start time and end time are entered by the user after which the remaining information is calculated and displayed on the worksheet.

A blank worksheet is desired to begin without deleting the formulas or formats. Is it possible to clear the cells without clearing the formulas within the cells? If so, how?
 
Hi Tom F

If you do not want your formulas to display zeros because you have deleted the constants they act on (as suggested above), you might like to try custom formatting your formula cells so that zeros and minus numbers are not displayed.
For example, select the cells that contain formulas that return times, go to Format / Cells / Number / Custom and type in [h]:mm;;
The 2 semi-colons ensure that zero and minus numbers are not returned. You can use the 2 semi-colon method on most other formats too.

hope this helps
regards
Derek
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Here's my attempt. A1 and B1 house start and end time. C1 is the time elapsed. C1 stays blank until both A1 and B1 are entered. Missing one cell, still produces a blank in C1. To start a new simple delete all times in column A and B
Book2
ABCD
110:3012:001:30
211:00 
313:00 
411:0013:002:00
Sheet1


By the way, got the formula from Mark W. if you use it, credit to Mark
 
Upvote 0
Thanks for your many replies. I am a fledgling at Excel and learning a lot. I am still working on this and have emailed the file to a few kind people who volunteered to take a look at it.

Maxflia10, you hit the nail on the head on your last sentence when you said, "To start a new simple delete all times in column A and column B." That is precisely what I am trying to do. I wish to delete the times in the respective cells without deleting the formula.

With the "giving" nature of the members of this board and persistence, the solution will come.

That reminds me of the saying, "We make our living by what we get and we make our life by what we give."

Many thanks to all, <fingers crossed>
Tom F
 
Upvote 0
I might be missing the point but how about saving the 'blank' sheet containing the formulae and formats as a template (.xlt)?
 
Upvote 0
Finally, I got it.

My tunnel vision got in the way and the forest was in the way of the trees.

Thanks to everyone who helped. I appreciate it sincerely.

One more question.

What is the proper syntax for these two statements?

If(count(a1,b1)=2) and if(x=3) then <true>,<false>

Many thanks to all,
Tom F
 
Upvote 0
Finally, I got it.

My tunnel vision got in the way and the forest was in the way of the trees.

Thanks to everyone who helped. I appreciate it sincerely.

One more question.

What is the proper syntax for these two statements?

If(count(a1,b1)=2) and if(x=3) then <true>,<false>

Many thanks to all,
Tom F
 
Upvote 0
On 2002-10-21 07:43, Tom F wrote:
...
One more question.

What is the proper syntax for these two statements?

If(count(a1,b1)=2) and if(x=3) then <true>,<false>
...

Hi Tom F:

use ...
=if(and(count(a1,b1)=2,x=3),ifTRUE,ifFALSE)

Regards!

Yogi
 
Upvote 0
Tom actually had a timesheet-sort of setup. However, most all of the cells were dependent on the entries of each other, except for two cells.

So I did an =IF(OR(ISBLANK(A1),ISBLANK(A2)),"",Formula) on virtually all the cells.

Then I gave him a little macro button that clears just those two cells.

He says it worked great.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,934
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top