ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Automatic Data Update by Date Range (https://www.excelbanter.com/excel-worksheet-functions/204718-automatic-data-update-date-range.html)

[email protected]

Automatic Data Update by Date Range
 
Is there a way to have a cell update through a date range from data
entered in another cell?

An Example...

Each day a numerical value will be entered in cell A1 (number of
people who purchased product)

I would like for cell B1 to automatically update the data each day for
1 week from the amount entered into A1 on each day.

If entering 1 in cell A1 on Mon, 3 on Tues, 1 on Wed, 1 on Thur, and 2
on Fri

Cell B1 should have a total of 8 on Fri.....This would update a by
Week, another cell by Month and another cell by Quarter

1. Would I need to clear data from Cell A1 each day to enter a
different number for the next day?

2. Will cell B1 require a cut off time for each day?

Thanks

Duke Carey

Automatic Data Update by Date Range
 
You can accomplish this in VBA code

HOWEVER - for the sake of data integrity you should rarely ever do this.

The code (and your idea) watches for a change in cell A1. When one occurs
it adds the entered value to whatever is in B1. The problem is NO AUDIT
TRAIL. If you mis-key Tuesday's value and don't notice it, too bad. The
wrong value has been added and all you have is the now incorrect total (and
if you notice it in time, the incorrect entry is still in A1).

Far better to enter each day's data in a new row so that you can see, find,
and correct any errors. Just sum the data entered.

" wrote:

Is there a way to have a cell update through a date range from data
entered in another cell?

An Example...

Each day a numerical value will be entered in cell A1 (number of
people who purchased product)

I would like for cell B1 to automatically update the data each day for
1 week from the amount entered into A1 on each day.

If entering 1 in cell A1 on Mon, 3 on Tues, 1 on Wed, 1 on Thur, and 2
on Fri

Cell B1 should have a total of 8 on Fri.....This would update a by
Week, another cell by Month and another cell by Quarter

1. Would I need to clear data from Cell A1 each day to enter a
different number for the next day?

2. Will cell B1 require a cut off time for each day?

Thanks



All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com