Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Clearing a cell value after a set time period - Macro??

I didn't find an answer to this when quickly looking over past discussions.

What I want to do is clear a cell value out after eight hours or so. I may
have a production line that ran yesterday but that is not running today. I
have production tabs in an Excell 2003 spreadsheet with a summary tab that
everything is totalled into. If the line doesn't run today their past data
is still in their tab. I would like the ability to automatically clear out
their production data so it doesn't get totalled in my summary page after the
date changes or after a set time period. That way when I am totalling up a
days worth of production I'm not counting a line that may not be running
today.

I hope this makes sense. Thansk!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Clearing a cell value after a set time period - Macro??

Just some questions...

How would you know if the data is today's data or yesterday's?

Couldn't you use that same criteria to determine whether it should be included
or not?

If you're using some formula to return the value for today's date, maybe you
could modify that formula to look at the date for that entry (assuming each
entry gets a date)????

Boiler-Todd wrote:

I didn't find an answer to this when quickly looking over past discussions.

What I want to do is clear a cell value out after eight hours or so. I may
have a production line that ran yesterday but that is not running today. I
have production tabs in an Excell 2003 spreadsheet with a summary tab that
everything is totalled into. If the line doesn't run today their past data
is still in their tab. I would like the ability to automatically clear out
their production data so it doesn't get totalled in my summary page after the
date changes or after a set time period. That way when I am totalling up a
days worth of production I'm not counting a line that may not be running
today.

I hope this makes sense. Thansk!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Clearing a cell value after a set time period - Macro??

If the line is not running today, then I the spreadsheet data on this tab is
from a previous day. I am not looking at any date. The other tabs may have
valid data if that particular line is running today. So when I total
everything in my TOTAL tab, if I don't get the non-running line to clear out
its info then I have inflated production numbers.

Todd.

"Dave Peterson" wrote:

Just some questions...

How would you know if the data is today's data or yesterday's?

Couldn't you use that same criteria to determine whether it should be included
or not?

If you're using some formula to return the value for today's date, maybe you
could modify that formula to look at the date for that entry (assuming each
entry gets a date)????

Boiler-Todd wrote:

I didn't find an answer to this when quickly looking over past discussions.

What I want to do is clear a cell value out after eight hours or so. I may
have a production line that ran yesterday but that is not running today. I
have production tabs in an Excell 2003 spreadsheet with a summary tab that
everything is totalled into. If the line doesn't run today their past data
is still in their tab. I would like the ability to automatically clear out
their production data so it doesn't get totalled in my summary page after the
date changes or after a set time period. That way when I am totalling up a
days worth of production I'm not counting a line that may not be running
today.

I hope this makes sense. Thansk!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Clearing a cell value after a set time period - Macro??

I understand how you (a human) would know.

I don't understand how a computer/program/macro would know.

Boiler-Todd wrote:

If the line is not running today, then I the spreadsheet data on this tab is
from a previous day. I am not looking at any date. The other tabs may have
valid data if that particular line is running today. So when I total
everything in my TOTAL tab, if I don't get the non-running line to clear out
its info then I have inflated production numbers.

Todd.

"Dave Peterson" wrote:

Just some questions...

How would you know if the data is today's data or yesterday's?

Couldn't you use that same criteria to determine whether it should be included
or not?

If you're using some formula to return the value for today's date, maybe you
could modify that formula to look at the date for that entry (assuming each
entry gets a date)????

Boiler-Todd wrote:

I didn't find an answer to this when quickly looking over past discussions.

What I want to do is clear a cell value out after eight hours or so. I may
have a production line that ran yesterday but that is not running today. I
have production tabs in an Excell 2003 spreadsheet with a summary tab that
everything is totalled into. If the line doesn't run today their past data
is still in their tab. I would like the ability to automatically clear out
their production data so it doesn't get totalled in my summary page after the
date changes or after a set time period. That way when I am totalling up a
days worth of production I'm not counting a line that may not be running
today.

I hope this makes sense. Thansk!


--

Dave Peterson


--

Dave Peterson
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
macro for clearing cells mocc Excel Discussion (Misc queries) 11 September 19th 09 10:43 PM
Macro for clearing cell contents Sal Excel Discussion (Misc queries) 6 January 9th 09 11:40 PM
Clearing All check boxes using Macro Anil Kumar N. Excel Discussion (Misc queries) 4 December 27th 07 10:40 AM
average rate of change per given time period between 2 moments in time of a value David Virgil Hobbs Excel Worksheet Functions 1 December 19th 06 07:24 AM
Every time i put a number with period it becomes a date and time excelSOS Excel Discussion (Misc queries) 7 March 7th 06 12:20 AM


All times are GMT +1. The time now is 03:36 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"