Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 20
Default Need codes to extract some data

File 1 is a daily output of stock information and is large:
CODE DATE OPEN HIGH LOW CLOSE VOLUME
ANI 20071003 5.87 5.87 5.87 5.87 5740000
AIOD 20071003 6.26 6.26 6.26 6.26 428700
AIO 20071003 6.68 6.68 6.68 6.68 2953000
---- ----------- ---- ---- ---- ----
----
ECU 20071003 0.024 0.025 0.024 0.024 212200
EDEO 20071003 0.245 0.26 0.245 0.26 39667
EDS 20071003 0.62 0.62 0.62 0.62 14500
---- ----------- ---- ---- ---- ----
----
IOD 20071003 2.48 2.52 2.35 2.45 472000
IOF 20071003 1.8 1.82 1.795 1.815 7093641
IOH 20071003 0.72 0.72 0.665 0.7 129936
---- ----------- ---- ---- ---- ----
----
ZRL 20071003 0.49 0.49 0.48 0.48 61667
ZYL 20071003 0.051 0.054 0.05 0.052 753700

File 2 consists of my list of selected stock codes, where the CLOSE and
VOLUME data is needed to fill the blanks.
CODE CLOSE VOLUME
BOC
FLO
IOD
----
SED

Is there a way to do that? I much appreciate any help.

Regards,
Tom


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Need codes to extract some data

On Oct 4, 11:38 am, "Tom" wrote:
File 1 is a daily output of stock information and is large:
CODE DATE OPEN HIGH LOW CLOSE VOLUME
ANI 20071003 5.87 5.87 5.87 5.87 5740000
AIOD 20071003 6.26 6.26 6.26 6.26 428700
AIO 20071003 6.68 6.68 6.68 6.68 2953000
---- ----------- ---- ---- ---- ----
----
ECU 20071003 0.024 0.025 0.024 0.024 212200
EDEO 20071003 0.245 0.26 0.245 0.26 39667
EDS 20071003 0.62 0.62 0.62 0.62 14500
---- ----------- ---- ---- ---- ----
----
IOD 20071003 2.48 2.52 2.35 2.45 472000
IOF 20071003 1.8 1.82 1.795 1.815 7093641
IOH 20071003 0.72 0.72 0.665 0.7 129936
---- ----------- ---- ---- ---- ----
----
ZRL 20071003 0.49 0.49 0.48 0.48 61667
ZYL 20071003 0.051 0.054 0.05 0.052 753700

File 2 consists of my list of selected stock codes, where the CLOSE and
VOLUME data is needed to fill the blanks.
CODE CLOSE VOLUME
BOC
FLO
IOD
----
SED

Is there a way to do that? I much appreciate any help.

Regards,
Tom


Hi Tom,

Use a =VLOOKUP() formula as follows:

in cell B2 enter =VLOOKUP($A2,'[File1.xls]Sheet1'!$A$1:$G
$1000,6,FALSE) for CLOSE (it's the 6th column in the lookup table)
in cell C2 enter =VLOOKUP($A2,[File1.xls]Sheet1'!$A$1:$G$1000,7,FALSE)
for VOLUME (it's the 7th column in the lookup table)
then copy these down for all your stock codes

HTH

cheers,
t.
  #3   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 20
Default Need codes to extract some data

Thanks troy! Shall give it go.

Regards,
Tom

"troy@eXL" wrote in message
oups.com...
On Oct 4, 11:38 am, "Tom" wrote:
File 1 is a daily output of stock information and is large:
CODE DATE OPEN HIGH LOW CLOSE VOLUME
ANI 20071003 5.87 5.87 5.87 5.87
5740000
AIOD 20071003 6.26 6.26 6.26 6.26 428700
AIO 20071003 6.68 6.68 6.68 6.68
2953000
---- ----------- ---- ---- ---- ----
----
ECU 20071003 0.024 0.025 0.024 0.024 212200
EDEO 20071003 0.245 0.26 0.245 0.26 39667
EDS 20071003 0.62 0.62 0.62 0.62 14500
---- ----------- ---- ---- ---- ----
----
IOD 20071003 2.48 2.52 2.35 2.45
472000
IOF 20071003 1.8 1.82 1.795 1.815
7093641
IOH 20071003 0.72 0.72 0.665 0.7 129936
---- ----------- ---- ---- ---- ----
----
ZRL 20071003 0.49 0.49 0.48 0.48 61667
ZYL 20071003 0.051 0.054 0.05 0.052 753700

File 2 consists of my list of selected stock codes, where the CLOSE and
VOLUME data is needed to fill the blanks.
CODE CLOSE VOLUME
BOC
FLO
IOD
----
SED

Is there a way to do that? I much appreciate any help.

Regards,
Tom


Hi Tom,

Use a =VLOOKUP() formula as follows:

in cell B2 enter =VLOOKUP($A2,'[File1.xls]Sheet1'!$A$1:$G
$1000,6,FALSE) for CLOSE (it's the 6th column in the lookup table)
in cell C2 enter =VLOOKUP($A2,[File1.xls]Sheet1'!$A$1:$G$1000,7,FALSE)
for VOLUME (it's the 7th column in the lookup table)
then copy these down for all your stock codes

HTH

cheers,
t.

www.eXtreme-eXcel.com
...be indispensable... they'll pay you more!



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
Summing Up Data Based on Codes addie Excel Worksheet Functions 2 February 17th 06 11:09 PM
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? guyinrenton Excel Discussion (Misc queries) 1 September 14th 05 06:10 PM
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? guyinrenton Excel Discussion (Misc queries) 0 September 14th 05 06:02 PM
missing data codes Rholland Excel Discussion (Misc queries) 0 August 28th 05 05:02 PM
Converted data to labels. The 0 in zip codes does not print Judy New Users to Excel 2 February 2nd 05 03:33 AM


All times are GMT +1. The time now is 08:58 AM.

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"