plshelpimpoor
New Member
- Joined
- Jul 14, 2019
- Messages
- 4
So I have two worksheets.
Work sheet 1 has monday tuesday wednesday etc. Week's data.
In Work sheet 2, i want the sum of entire week to fill cell A1 (week 1). In second week, cell A2(week 2). And so forth.
Now in A1, i wrote =worksheet1!sum(cell). The issue is, as i update the worksheet in worksheet 1 every day, the A1 data will be overwritten. Eventually all weeks have the same data.
I have thought about writing VBA script that fetches sum of cells end of week and populate A1, next week A2 etc. But how can I write in the script so that previous weeks data is not overwritten in worksheet 2?
Work sheet 1 has monday tuesday wednesday etc. Week's data.
In Work sheet 2, i want the sum of entire week to fill cell A1 (week 1). In second week, cell A2(week 2). And so forth.
Now in A1, i wrote =worksheet1!sum(cell). The issue is, as i update the worksheet in worksheet 1 every day, the A1 data will be overwritten. Eventually all weeks have the same data.
I have thought about writing VBA script that fetches sum of cells end of week and populate A1, next week A2 etc. But how can I write in the script so that previous weeks data is not overwritten in worksheet 2?