ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Min/Max multiple rows into another sheet (https://www.excelbanter.com/excel-worksheet-functions/245715-min-max-multiple-rows-into-another-sheet.html)

dan

Min/Max multiple rows into another sheet
 
I have the following stock data. I would like to summarize 3 days (rows) into
one row on another sheet. I would like to take the date and opening from day
1 and then take the Max of the next 3 rows (high) , the Min of the next 3
rows (low) and the close of the 3rd row and put this into 1 line on another
sheet. This 3 day aggregation I would like to do for the entire sheet. so
1/2, 1/3 and 1/4 would be one row and 1/4, 1/5 1/8 would be next row etc.....

Date Open High Low Close
1/2/1962 578.5 578.5 572 572
1/3/1962 572 577 572 577
1/4/1962 577 577 571 571.25
1/5/1962 570.5 570.5 559 560
1/8/1962 559.5 559.5 545 549.5
1/9/1962 552 563 552 556
1/10/1962 557 559.5 557 557
1/11/1962 558.5 563 558.5 563
1/12/1962 564 568 564 564

Thanks in advance - Dan


dan

Min/Max multiple rows into another sheet
 
correction 1/5 1/8 1/9 would be second row........

"Dan" wrote:

I have the following stock data. I would like to summarize 3 days (rows) into
one row on another sheet. I would like to take the date and opening from day
1 and then take the Max of the next 3 rows (high) , the Min of the next 3
rows (low) and the close of the 3rd row and put this into 1 line on another
sheet. This 3 day aggregation I would like to do for the entire sheet. so
1/2, 1/3 and 1/4 would be one row and 1/4, 1/5 1/8 would be next row etc.....

Date Open High Low Close
1/2/1962 578.5 578.5 572 572
1/3/1962 572 577 572 577
1/4/1962 577 577 571 571.25
1/5/1962 570.5 570.5 559 560
1/8/1962 559.5 559.5 545 549.5
1/9/1962 552 563 552 556
1/10/1962 557 559.5 557 557
1/11/1962 558.5 563 558.5 563
1/12/1962 564 568 564 564

Thanks in advance - Dan



All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com