WaterSprite
Technical User
We have a chemical tank that is filled once per week on Wednesday afternoon.
I need either an Excel formula or VBA code that will put a Date/Timestamp of 12:00 noon on Wednesday into a cell, where it will stay for a week until replaced by noon Wednesday of the following week.
For example, I need yesterday, Wednesday, 06-Sept-06 12:00 to stay in a cell until next week when the 06 would change to 13, then reading 13-Sept-06 12:00 and so on. If this were a daily thing, no problem. A couple of Today() statements and I am done, but the once a week thing has me baffled.
I figured out one way to get what I need, but it took 26 cells on a spreadsheet to do so, I thought that was not to effecient.
And one of the MVP's brought this up a couple of weeks ago, but it is true. I really struggle with dates, times, and formatting in VBA.
Thanks for the help.
I need either an Excel formula or VBA code that will put a Date/Timestamp of 12:00 noon on Wednesday into a cell, where it will stay for a week until replaced by noon Wednesday of the following week.
For example, I need yesterday, Wednesday, 06-Sept-06 12:00 to stay in a cell until next week when the 06 would change to 13, then reading 13-Sept-06 12:00 and so on. If this were a daily thing, no problem. A couple of Today() statements and I am done, but the once a week thing has me baffled.
I figured out one way to get what I need, but it took 26 cells on a spreadsheet to do so, I thought that was not to effecient.
And one of the MVP's brought this up a couple of weeks ago, but it is true. I really struggle with dates, times, and formatting in VBA.
Thanks for the help.