Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 19
Default Match the names and record the dates

Hi,

My namelist.xls contains 10 stock codes for example - ABC, DEF, ....., XYZ
in the first column. How can I match these names against the closing
pricelist, 20060912.csv which contains the date and the closing prices, so
that if there is an exact match (not ABCD) it will record the corresponding
date (or otherwise a blank) in the second column of namelist.xls?

To make it clear, the date field is the second element of the closing
pricelist as shown below:

AAC,20061204,1.85,1.86,1.85,1.86,33383
AAE,20061204,.415,.48,.405,.445,294925
ABC,20061204,43,43,43,43,0
ABCD,20061204,.22,.22,.21,.21,96000
ACG,20061204,10.21,10.52,10.2,10.46,2920359
<snip........

Much appreciate for any help.


TIA
Tom

PS. For those who enjoy challenges, after that, close 20060912.csv and
incrementally open up the next pricelist, namely 20060913.csv and do the
match again, recording the date along the next, i.e. third column. Do that
for N = 1 to N = 10.


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
Record the date after matching the names Tom Excel Discussion (Misc queries) 10 December 11th 06 09:38 PM
Find match between 2 columns and then record data that is in colum Karl Excel Discussion (Misc queries) 3 December 8th 05 09:56 PM
Fetch list of table names in access to a record set Prashantha Weerakoon Excel Programming 1 May 6th 05 12:26 PM
Changing VB Component Names to match Worksheet names using VBE Philip Excel Programming 1 April 12th 05 05:37 PM
Change names of files in a folder to match names in Excel Column saybut Excel Programming 4 February 9th 04 06:26 PM


All times are GMT +1. The time now is 08:47 PM.

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"