Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Database

Hope this is not a duplicate thread by me as got problem to upload my
question earlier.

Faced with this for a while. I have the following data:

A B C D E F G
H
1 Date Price Date Price Date Price
2 3-Jan-05 1.2590 Jan-03 0.8480 Jan-03 0.8480
3 4-Jan-05 1.2590 Feb-03 0.8330 Feb-03 0.8330
4 5-Jan-05 1.2590 Mar-03 0.8200 Mar-03 0.8200
5 6-Jan-05 1.2590 Apr-03 0.8330 Apr-03 0.8330
6 7-Jan-05 1.2590 May-03 0.8810 May-03 0.8810
7 10-Jan-05 1.2590 Jun-03 0.9650 Jun-03 0.9650
8 11-Jan-05 1.2260 Jul-03 1.0430 Jul-03 1.0430

Column A and B are growing everyday, except weekends. D is derived from A by
=EOMONTH(D85,1) and E =LOOKUP(D86,Sheet2!$A:$A,Sheet2!$B:$B)

I created 2 command buttons (Daily, Monthly) to get date in G. Here is the
problem: how do I get the price in H? I have tried using the same method I am
using to get G but as the macros is written to extract unique values, it
works for date but not price.

'---Start of Code-------
Option Explicit

Sub PullUniqueData()
Range("Sheet2!Database").AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=Range("Sheet2!Extract"), _
Unique:=True
End Sub
'---Start of Code-------

As the final data is use to create a chart, I would prefer not to use
formulas and drag in H, otherwise for monthly chart it will have a long list
of empty values


 
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
Update Excel Database via Access Main Database with a script Finnbar New Users to Excel 2 November 3rd 08 07:24 PM
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
How to make reference to database and if true copy from database? V!p3r Excel Discussion (Misc queries) 4 February 5th 07 02:19 PM
Moved database, how do I change link to the database in excel Toastrack Excel Discussion (Misc queries) 0 October 20th 06 09:36 AM
Transforming messy database into clean database SteveC Excel Discussion (Misc queries) 4 January 24th 06 11:34 PM


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