Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Index Match error

I am trying to Match data between two workbooks and if a match is found I
would like to return a value from a different cell. The code I am using that
someone from here helped me with is:

Range("Y1").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(spxsymbols.xlsm!C10,MATCH(RC[-1],spxsymbols.xlsm!C6,0)

The workbook names are qic.csv, which is the active sheet, and
spxsymbols.xlsm which is the workbook that I am finding a match from and
returning a value from. The data is as follows use data from X1 from qic.csv
and search column J from spxsymbols.xlsm and when a match is found, return
the F cell data from the same row in spxsymbols.xlsm to Y1 in qic.csv. Then I
fill in Column Y all the way down with this formula for the rest of the data.
For some reason, this formula was working fine until I had to change the
column #s and data that is being matched. I am now returning a #N/A error.
Please let me know what may be wrong with the formula.

Here's an example of the data in each of the columns:
qic.csv: Column X spysymbols.xlsm: Column F Column J
SPXZ8C855 SPXLL SPXZ8C860
SPXLM SPXZ8C865
SPXLN SPXZ8C870
SPXLO SPXZ8C875
SPXLP SPXZ8C880
SPXLQ SPXZ8C885
SPXLR SPXZ8C890
SPXLS SPXZ8C895

The value in F that should be returned is SPXLQ. Any help is greatly
appreciated.
Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Index Match error

I've figured this out, so no need to respond.

Thanks

"aileen" wrote:

I am trying to Match data between two workbooks and if a match is found I
would like to return a value from a different cell. The code I am using that
someone from here helped me with is:

Range("Y1").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(spxsymbols.xlsm!C10,MATCH(RC[-1],spxsymbols.xlsm!C6,0)

The workbook names are qic.csv, which is the active sheet, and
spxsymbols.xlsm which is the workbook that I am finding a match from and
returning a value from. The data is as follows use data from X1 from qic.csv
and search column J from spxsymbols.xlsm and when a match is found, return
the F cell data from the same row in spxsymbols.xlsm to Y1 in qic.csv. Then I
fill in Column Y all the way down with this formula for the rest of the data.
For some reason, this formula was working fine until I had to change the
column #s and data that is being matched. I am now returning a #N/A error.
Please let me know what may be wrong with the formula.

Here's an example of the data in each of the columns:
qic.csv: Column X spysymbols.xlsm: Column F Column J
SPXZ8C855 SPXLL SPXZ8C860
SPXLM SPXZ8C865
SPXLN SPXZ8C870
SPXLO SPXZ8C875
SPXLP SPXZ8C880
SPXLQ SPXZ8C885
SPXLR SPXZ8C890
SPXLS SPXZ8C895

The value in F that should be returned is SPXLQ. Any help is greatly
appreciated.
Thanks.

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
Index Match Error EZ[_2_] Excel Worksheet Functions 1 October 26th 09 07:52 PM
INDEX/MATCH #REF! error Tony Excel Discussion (Misc queries) 2 July 4th 08 09:57 PM
index/match error Northo111 Excel Worksheet Functions 2 April 10th 08 11:55 PM
INDEX MATCH #N/A Error wkjgmom Excel Worksheet Functions 3 November 26th 07 04:37 AM
Index Match #N/A error, please help jhahes[_39_] Excel Programming 1 October 7th 05 08:24 PM


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