Function to take place on certain date/time

martyloo

Board Regular
Joined
Sep 29, 2010
Messages
100
Hi guys,

Does anyone know if I can create a function which will calculate after a certain period of time?

for example - on the 16/06/2012 at 6:00pm in cell A1 automatically do the function =sum(A2+A3)
on the 17/06/2012 at 6:00pm in cell B1 automatically do the function =sum(A2+A3)

Cells A2 and A3 are constantly updating with data and everday at 6:00pm I would like the data noted down in each row

Can anyone help???
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
just a few thoughts, how does the sheet constantly update at 6pm, are you expecting row 2 and 3 only to have data, will the cell with the formula just keep on going down, so in 2 months time the cell is for example d60, then in another 2 months d120?
if the page is being fed from another program, could you use a 'on sheet change' style of event?
 
Upvote 0
just a few thoughts, how does the sheet constantly update at 6pm, are you expecting row 2 and 3 only to have data, will the cell with the formula just keep on going down, so in 2 months time the cell is for example d60, then in another 2 months d120?
if the page is being fed from another program, could you use a 'on sheet change' style of event?

I have a web query linked to the net so the spreadsheet constantly updates every minute from 8am - 4:30pm then it stops untill the next day. I just wanted to take a note of what it stops at each day.
Yes the cell with the formula will just keep going down so in 2 months it will go from d60 then another 2 months d120.

Im not sure what an "on sheet change" style of event is?
 
Upvote 0
I am no expert, I am trying some ideas, does the workbook run 24/7 or does it get turned of every day and subsequently opened every day? And the 6pm is an arbitary time ,or is there a specific reason you asked for 6pm,
 
Upvote 0
I am no expert, I am trying some ideas, does the workbook run 24/7 or does it get turned of every day and subsequently opened every day? And the 6pm is an arbitary time ,or is there a specific reason you asked for 6pm,

Yes it gets turned off everyday, and opened everyday. No reason its 6pm can be anytime.

Any ideas?
 
Upvote 0
I'm almost certain you can't update a worksheet while a macro is running, which would mean you couldn't simply do a loop until time = 18:00, so I'm trying to establish an 'event' which could trigger a macro, the macro would be relatively easy. I know nothing about web queries, can it be made to call a macro?
 
Upvote 0
I'm almost certain you can't update a worksheet while a macro is running, which would mean you couldn't simply do a loop until time = 18:00, so I'm trying to establish an 'event' which could trigger a macro, the macro would be relatively easy. I know nothing about web queries, can it be made to call a macro?

It doesn't need to trigger the macro if need be I can open it and trigger it myself everyday I dont think that should be a problem providing its fairly straight forward
 
Upvote 0
You could take a look at the Ontime function. It will alow you to schedule a trigger at a specific time provided that Excel is open, and the worksheet initiated the ontime function.
 
Upvote 0

Forum statistics

Threads
1,206,949
Messages
6,075,810
Members
446,158
Latest member
octagonalowl

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