Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Getting the first data point from a list of data

I am trying to make a Weekly data table from a Daily table for some financial
information, along the following lines:

Date Open High Low Close
29/08/2008 558 565 545 550
28/08/2008 527 560 516 558
27/08/2008 525 525 505 519
26/08/2008 515 530 513 522
22/08/2008 522 535 514 530
21/08/2008 540 541 516 516
20/08/2008 560 560 530 540
19/08/2008 576 578 543 546
18/08/2008 610 614 587 587
15/08/2008 608 620 591 610
14/08/2008 581 606 572 602
13/08/2008 602 602 565 571

I want to pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.). Does
anybody know how I might go about doing this?

Kind regards.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Getting the first data point from a list of data

pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).


How do you know which dates are the first day of the week? Each of your
stated dates are different weekdays:

602 for 13/08/08 - the 13th is a Wednesday
610 for 18/8/08 - the 18th is a Monday
515 for 26/8/08 - the 26th is a Tuesday

--
Biff
Microsoft Excel MVP


"CEGavinMcGrath" wrote in message
...
I am trying to make a Weekly data table from a Daily table for some
financial
information, along the following lines:

Date Open High Low Close
29/08/2008 558 565 545 550
28/08/2008 527 560 516 558
27/08/2008 525 525 505 519
26/08/2008 515 530 513 522
22/08/2008 522 535 514 530
21/08/2008 540 541 516 516
20/08/2008 560 560 530 540
19/08/2008 576 578 543 546
18/08/2008 610 614 587 587
15/08/2008 608 620 591 610
14/08/2008 581 606 572 602
13/08/2008 602 602 565 571

I want to pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).
Does
anybody know how I might go about doing this?

Kind regards.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Getting the first data point from a list of data

That's part of the problem. If there is a national holiday on a Monday, for
example, there may be no data from a Monday. Therefore, Tuesday becomes the
first day of the week.

Any ideas would be greatly appreciated.

"T. Valko" wrote:

pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).


How do you know which dates are the first day of the week? Each of your
stated dates are different weekdays:

602 for 13/08/08 - the 13th is a Wednesday
610 for 18/8/08 - the 18th is a Monday
515 for 26/8/08 - the 26th is a Tuesday

--
Biff
Microsoft Excel MVP


"CEGavinMcGrath" wrote in message
...
I am trying to make a Weekly data table from a Daily table for some
financial
information, along the following lines:

Date Open High Low Close
29/08/2008 558 565 545 550
28/08/2008 527 560 516 558
27/08/2008 525 525 505 519
26/08/2008 515 530 513 522
22/08/2008 522 535 514 530
21/08/2008 540 541 516 516
20/08/2008 560 560 530 540
19/08/2008 576 578 543 546
18/08/2008 610 614 587 587
15/08/2008 608 620 591 610
14/08/2008 581 606 572 602
13/08/2008 602 602 565 571

I want to pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).
Does
anybody know how I might go about doing this?

Kind regards.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Getting the first data point from a list of data

Ok, this is kind of complicated but it works.

Based on your posted sample data...

The data is in the range A2:E13. *A14 MUST BE AN EMPTY CELL*.

Enter this array formula** in say, G2:

=IF(ROWS(G$2:G2)<=SUM(--(WEEKDAY(A$2:A$13,2)<WEEKDAY(A$3:A$14,2))),INDEX(A $2:A$13,SMALL(IF(WEEKDAY(A$2:A$13,2)<WEEKDAY(A$3:A $14,2),ROW(A$2:A$13)),ROWS(G$2:G2))-MIN(ROW(A$2:A$13))+1),"")

Notice there are references to cell A14. This cell *must* be empty!

Enter this formula H2:

=IF(G2="","",INDEX(B$2:B$13,MATCH(G2,A$2:A$13,0)))

Select both G2 and H2 and copy down until your get blanks.

Format cells G2:Gn as Date.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

I can post a link to a sample if it'll help.

--
Biff
Microsoft Excel MVP


"CEGavinMcGrath" wrote in message
...
That's part of the problem. If there is a national holiday on a Monday,
for
example, there may be no data from a Monday. Therefore, Tuesday becomes
the
first day of the week.

Any ideas would be greatly appreciated.

"T. Valko" wrote:

pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).


How do you know which dates are the first day of the week? Each of your
stated dates are different weekdays:

602 for 13/08/08 - the 13th is a Wednesday
610 for 18/8/08 - the 18th is a Monday
515 for 26/8/08 - the 26th is a Tuesday

--
Biff
Microsoft Excel MVP


"CEGavinMcGrath" wrote in
message
...
I am trying to make a Weekly data table from a Daily table for some
financial
information, along the following lines:

Date Open High Low Close
29/08/2008 558 565 545 550
28/08/2008 527 560 516 558
27/08/2008 525 525 505 519
26/08/2008 515 530 513 522
22/08/2008 522 535 514 530
21/08/2008 540 541 516 516
20/08/2008 560 560 530 540
19/08/2008 576 578 543 546
18/08/2008 610 614 587 587
15/08/2008 608 620 591 610
14/08/2008 581 606 572 602
13/08/2008 602 602 565 571

I want to pull the Open data for the first day in each week in the data
series (ie 602 for 13/08/08, 610 for 18/8/08, 515 for 26/8/08, etc.).
Does
anybody know how I might go about doing this?

Kind regards.






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
Moving a line chart data point revises data table value in Excel ' Ed Smith Charts and Charting in Excel 2 November 16th 12 01:03 PM
show 3 sets of data per data point in a scatter plot Marie Charts and Charting in Excel 6 May 19th 08 09:38 PM
Data point on line is not over the point/tick in X axis... TomCat Charts and Charting in Excel 2 September 6th 07 01:36 PM
excel 2007, how to select a data point and cycle through data points [email protected] Charts and Charting in Excel 5 September 4th 07 12:29 PM
Including data in data table but not charting as a series or point pepper76 Charts and Charting in Excel 4 August 2nd 06 03:20 AM


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