Hello again,
I was hoping if I could get help with a problem I have.
I want a formula that can calculate the average of the last 5 dates based on a specified date I give.
For example:
Let's suppose I have four worksheets, named "NORTH", "SOUTH", "EAST", "WEST".
In each worksheet, I have two columns that represent a date followed by the amount of sales I made that day in that region.
Let's assume
SOUTH (worksheet)
A1 - 11/3/07 - B1 - 387
A2 - 11/5/07 - B2 - 233
A3 - 11/7/07 - B3 - 200
A4 - 11/11/07 - B4 - 190
A5 - 11/19/07 - B5 - 100
A6 - 11/23/07 - B6 - 90
A7 - 11/25/07 - B7 - 101
A8 - 11/30/07 - B8 - 189
A9 - 12/2/07 - B9 - 177
A10 - 12/5/07 - B10 - 200
...
...
...
A17 - 12/25/07 - B17 - 167
I want to be able that by just typing "SOUTH" in a cell (B5, for example) and "11/30/07" in another cell (C5, for example) in a worksheet, I can get the average sales of the previous 5 dates before 11/30/07 (excluding this date).
So, in the above example, I will like to have the average of sales made on
11/7/07 - 200
11/11/07 - 190
11/19/07- 100
11/23/07 - 90
11/25/07 - 101
The answer is 136.2
I know that I have to use INDIRECT() function and OFFSET() to get the averages.
Any way to accomplish this?
I'd really appreciate the help.
I was hoping if I could get help with a problem I have.
I want a formula that can calculate the average of the last 5 dates based on a specified date I give.
For example:
Let's suppose I have four worksheets, named "NORTH", "SOUTH", "EAST", "WEST".
In each worksheet, I have two columns that represent a date followed by the amount of sales I made that day in that region.
Let's assume
SOUTH (worksheet)
A1 - 11/3/07 - B1 - 387
A2 - 11/5/07 - B2 - 233
A3 - 11/7/07 - B3 - 200
A4 - 11/11/07 - B4 - 190
A5 - 11/19/07 - B5 - 100
A6 - 11/23/07 - B6 - 90
A7 - 11/25/07 - B7 - 101
A8 - 11/30/07 - B8 - 189
A9 - 12/2/07 - B9 - 177
A10 - 12/5/07 - B10 - 200
...
...
...
A17 - 12/25/07 - B17 - 167
I want to be able that by just typing "SOUTH" in a cell (B5, for example) and "11/30/07" in another cell (C5, for example) in a worksheet, I can get the average sales of the previous 5 dates before 11/30/07 (excluding this date).
So, in the above example, I will like to have the average of sales made on
11/7/07 - 200
11/11/07 - 190
11/19/07- 100
11/23/07 - 90
11/25/07 - 101
The answer is 136.2
I know that I have to use INDIRECT() function and OFFSET() to get the averages.
Any way to accomplish this?
I'd really appreciate the help.