Can formula be removed by Excel

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
Can formula's in the cells be removed by Excel program/functions?

In Worksheet5, C2:C48 contains numeric values generated thr' formula =D2:D48.
Ex:
C2=D2

At a particular time, to remove formulas from C2:C48; I select, copy, paste special, values, Ok, Enter.

But can it be done by say putting a number 1 in C1 or by any other method.

This worksheet contains only these 2 columns.
Thanx in adv
 
If a time is being entered into C1

Please give me the correct format that I need to use for time format in C1 for above.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
This code works ONLY WHEN time in C1 is entered 'MANUALLY'. whereas I require the code to work 'AUTOMATICALLY' when C1 equals the system's time. I am entering the time in this format in C1. To sum up C1 will be kept filled with a time & when C1 equals system's time, the code should get triggered.[TABLE="width: 132"]
<tbody>[TR]
[TD="class: xl63, width: 132, align: right"]6/27/14 8:58:00PM[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
I will 'PUNCH' the time in C1 say 6/30/14 9:30:00 AM.
This time will be punched when the systems time <= C1.

System time is constantly upgrading. The worksheet's D2:D48 is also constantly changing due to Real time feed data.
When system time reaches 9:30:00 AM the code should get triggered.
Of course, the Excel file would be kept 'OPEN' at that time.
Please feel free for any more clarification. You may even add some more criteria s to achieve this goal.
I am using Excel 2007.
 
Upvote 0
I just re-read this and I may have misunderstood what is in D1. Is D1 a constantly updating value or a set time you would be entering?
I assumed the second, but I suspect it may be the first.[/QUOTE]

The above code Did NOT work. C1=Set time as [TABLE="width: 132"]
<tbody>[TR]
[TD="class: xl63, width: 132, align: right"]6/28/14 9:30 AM
D1=now() constantly updating system,s time. So the code should work as soon as C1 EQUALS D1.[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
I will 'PUNCH' the time in C1 say 6/30/14 9:30:00 AM.
This time will be punched when the systems time <= C1.

System time is constantly upgrading. The worksheet's D2:D48 is also constantly changing due to Real time feed data.
When system time reaches 9:30:00 AM the code should get triggered.
Of course, the Excel file would be kept 'OPEN' at that time.
Please feel free for any more clarification. You may even add some more criteria s to achieve this goal.
I am using Excel 2007.
Try
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
  If Range("C1").Value <= Now Then
    Application.EnableEvents = False
    With Range("C2:C48")
      .Value = .Value
    End With
    Application.EnableEvents = True
  End If
End Sub
 
Upvote 0
It works. Would let you know after few more 'real' trials.
 
Upvote 0
Peter,

Some info needed: This is for more technical situation/(s) since real time data is loaded on the Excel sheet. Does the code 'sleeps' after it gets triggered or it is continously evaluating C1 time versus system's time? Since the time in C1 will equal system's time ONLY 0NCE during the day.
 
Upvote 0
The code gets triggered every time the worksheet changes. The first time that happens after the system time passes the C1 time the range gets converted from formulas to values. Every time after that the range again gets "converted" to values but since that already happened the first time, nothing really changes each subsequent time. Is it causing you a problem?
 
Upvote 0
There is 1 different problem:
The worksheet needs 'any' cell to be punched by a value/alpha-numeric s manually & then only the code works. BUT at the time manual punching; C1 MUST BE >=System's time.
I don't want to punch manually. Although, the ws contains a cell which is continuously getting updated thr' Real time data. But still the manual punch is required.
Can there be formula given on the ws which can generate values 'continuously' so that the manual process is removed.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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