Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default is OFFSET the functcion for me?

Boy, I really oversimplified my example in a previous posting. Let me try
again.

I have daily data points. I want to summarize with weekly averages.
Column A has 365 rows of dates, increasing by 1 day with each row.
Column B has 365 rows of values.
Column C has 52 rows of dates, increasing by 7 days with each row.
I want column D to look at the date next to it in column C, and give me the
average value from column B for that date and the 6 days previous to it (the
weekly average).

I'd like to know if there's a way to write a function in the first row of
column D so that I can copy it to the cells beneath it and not have to change
the arguments in each row.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default is OFFSET the functcion for me?

Hello Ray, try this in D1

=AVERAGE(OFFSET(INDEX(B$1:B$365,MATCH(C1,A$1:A$365 ,0)),-6,,7,))

copy down column

"Ray Pendergast" wrote:

Boy, I really oversimplified my example in a previous posting. Let me try
again.

I have daily data points. I want to summarize with weekly averages.
Column A has 365 rows of dates, increasing by 1 day with each row.
Column B has 365 rows of values.
Column C has 52 rows of dates, increasing by 7 days with each row.
I want column D to look at the date next to it in column C, and give me the
average value from column B for that date and the 6 days previous to it (the
weekly average).

I'd like to know if there's a way to write a function in the first row of
column D so that I can copy it to the cells beneath it and not have to change
the arguments in each row.

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default is OFFSET the functcion for me?

Hi Ray

You can do the calculation with Offset, but I prefer the non-volatile
Index Method

=AVERAGE(INDEX(B:B,(C1-1)*7+1):INDEX(B:B,(C1-1)*7+7))

--
Regards

Roger Govier


"Ray Pendergast" wrote in
message ...
Boy, I really oversimplified my example in a previous posting. Let me
try
again.

I have daily data points. I want to summarize with weekly averages.
Column A has 365 rows of dates, increasing by 1 day with each row.
Column B has 365 rows of values.
Column C has 52 rows of dates, increasing by 7 days with each row.
I want column D to look at the date next to it in column C, and give
me the
average value from column B for that date and the 6 days previous to
it (the
weekly average).

I'd like to know if there's a way to write a function in the first row
of
column D so that I can copy it to the cells beneath it and not have to
change
the arguments in each row.

Thank you.



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
Offset Help Hunter Excel Worksheet Functions 5 January 26th 07 02:21 PM
OFFSET HELP Scott@CW Excel Worksheet Functions 1 December 21st 06 04:27 AM
OFFSET PLEASE HELP! HERNAN Excel Discussion (Misc queries) 6 October 27th 06 10:17 PM
Max Offset Voodoodan Excel Discussion (Misc queries) 19 May 26th 05 11:47 AM
SUM(OFFSET)? Mike Fogleman Excel Worksheet Functions 10 December 29th 04 08:39 PM


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