Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TY TY is offline
external usenet poster
 
Posts: 2
Default How do I do this in Excel 2003?



Column A is just an ascending list of dates of every day from 1/1/1970
to today. Column B are data associated with each day.

Elsewhere on the same worksheet I would like to be able to enter a
date in one cell, a number in another cell (let's call the number
"N"), and in a third cell have a formula that takes that date and
number, looks into the above data, and calculates an N day average of
the Column B data from that date forward.

Any help would be much appreciated.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default How do I do this in Excel 2003?

On Sun, 13 Apr 2008 17:13:25 -0400, TY wrote:



Column A is just an ascending list of dates of every day from 1/1/1970
to today. Column B are data associated with each day.

Elsewhere on the same worksheet I would like to be able to enter a
date in one cell, a number in another cell (let's call the number
"N"), and in a third cell have a formula that takes that date and
number, looks into the above data, and calculates an N day average of
the Column B data from that date forward.

Any help would be much appreciated.

Thanks


Try this:

The date is in cell C1, the number N is in cell D1.
in cell E1 you put

=AVERAGE(OFFSET(A1,C1-A1,1,D1,1))

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TY TY is offline
external usenet poster
 
Posts: 2
Default How do I do this in Excel 2003?

Lars-Åke Aspelin wrote:


Try this:

The date is in cell C1, the number N is in cell D1.
in cell E1 you put

=AVERAGE(OFFSET(A1,C1-A1,1,D1,1))

Hope this helps / Lars-Åke



That works! Thank you very much.

TY


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
Copy and paste problem Excel 2003 to Word 2003 [email protected] Excel Discussion (Misc queries) 2 August 28th 07 11:14 AM
opening excel files from access 2003, win xp, office 2003 Nugimac Excel Discussion (Misc queries) 2 April 26th 07 12:32 PM
import Excel 2003 file into Outlook 2003 - NO NAMED RANGES?? lewisma9 Excel Discussion (Misc queries) 0 February 27th 07 12:23 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM


All times are GMT +1. The time now is 02:52 AM.

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"