Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default to create rolling windows from a column

Please help me out.
For example, suppose I have a series below.
2
3
4
5
6
7
If I want to have 3-observation rolling windows, how could I accomplish the
task?
The outcome I want is as follws.
2 3 4 5
3 4 5 6
4 5 6 7

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default to create rolling windows from a column

Hi,

Suppose your data is in A1:A6

then enter this formula in any cell and copy it down three rows and over 4
columns.

=OFFSET($A$1,ROW(A1)-1+COLUMN(A1)-1,)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Moohwan" wrote:

Please help me out.
For example, suppose I have a series below.
2
3
4
5
6
7
If I want to have 3-observation rolling windows, how could I accomplish the
task?
The outcome I want is as follws.
2 3 4 5
3 4 5 6
4 5 6 7

thanks in advance

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
Create a rolling 12 week graph Sheila Charts and Charting in Excel 2 October 13th 06 03:49 AM
How to create a rolling 6 month average? anley Excel Discussion (Misc queries) 3 August 14th 06 12:41 PM
create a rolling sum?? dustin Excel Worksheet Functions 1 August 3rd 06 12:57 AM
Create Windows Directories from column entries? || cypher || Excel Discussion (Misc queries) 2 July 22nd 05 04:11 PM
Create Windows Directories from column entries? || cypher || Excel Worksheet Functions 2 July 22nd 05 04:11 PM


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"