Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default Comparing Two workbooks

I am comparing two separate workbooks to find out if an order that had to be
reshiped was returned. within "2009 Reship Orders" spreadsheet I list the
original order number, within my 2009 Returns spreadsheet, I have all the
order #s of packages returned. I want to check the original orders from my
2009 Reship Orders spreadsheet against the order #s on my 2009 Returns
spreadsheet to see if the package was return, if so put YES in the column,
and leave blank if not.
This is the formula that I have in cell m310 of my 2009 Reship Orders

=IF(INDEX('[2009 Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,MATCH(I310,'[2009
Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,0))=I310,"YES","")

This gives me the yes when it does find a match, however instead of giving
me "" back when it is not found, I get #N/A.

Can someone tell me what I did wrong?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Comparing Two workbooks


You need to test if a match is found like this

if(ISNA(match(your match formula)),"",Index(your full index formula))
"AJ" wrote:

I am comparing two separate workbooks to find out if an order that had to be
reshiped was returned. within "2009 Reship Orders" spreadsheet I list the
original order number, within my 2009 Returns spreadsheet, I have all the
order #s of packages returned. I want to check the original orders from my
2009 Reship Orders spreadsheet against the order #s on my 2009 Returns
spreadsheet to see if the package was return, if so put YES in the column,
and leave blank if not.
This is the formula that I have in cell m310 of my 2009 Reship Orders

=IF(INDEX('[2009 Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,MATCH(I310,'[2009
Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,0))=I310,"YES","")

This gives me the yes when it does find a match, however instead of giving
me "" back when it is not found, I get #N/A.

Can someone tell me what I did wrong?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default Comparing Two workbooks

Thanks for the help, it worked, I get a true message if found which is fine.
Just curious is there a way for it to say yes instead of True?

"joel" wrote:


You need to test if a match is found like this

if(ISNA(match(your match formula)),"",Index(your full index formula))
"AJ" wrote:

I am comparing two separate workbooks to find out if an order that had to be
reshiped was returned. within "2009 Reship Orders" spreadsheet I list the
original order number, within my 2009 Returns spreadsheet, I have all the
order #s of packages returned. I want to check the original orders from my
2009 Reship Orders spreadsheet against the order #s on my 2009 Returns
spreadsheet to see if the package was return, if so put YES in the column,
and leave blank if not.
This is the formula that I have in cell m310 of my 2009 Reship Orders

=IF(INDEX('[2009 Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,MATCH(I310,'[2009
Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,0))=I310,"YES","")

This gives me the yes when it does find a match, however instead of giving
me "" back when it is not found, I get #N/A.

Can someone tell me what I did wrong?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJ AJ is offline
external usenet poster
 
Posts: 99
Default Comparing Two workbooks

That worked thanks, get TRUE in the cell if found. Just curious, is there a
way for it to say Yes instead of True, not that important if not.

"joel" wrote:


You need to test if a match is found like this

if(ISNA(match(your match formula)),"",Index(your full index formula))
"AJ" wrote:

I am comparing two separate workbooks to find out if an order that had to be
reshiped was returned. within "2009 Reship Orders" spreadsheet I list the
original order number, within my 2009 Returns spreadsheet, I have all the
order #s of packages returned. I want to check the original orders from my
2009 Reship Orders spreadsheet against the order #s on my 2009 Returns
spreadsheet to see if the package was return, if so put YES in the column,
and leave blank if not.
This is the formula that I have in cell m310 of my 2009 Reship Orders

=IF(INDEX('[2009 Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,MATCH(I310,'[2009
Returns spreadsheet.xlsx]Mar'!$H$6:$H$146,0))=I310,"YES","")

This gives me the yes when it does find a match, however instead of giving
me "" back when it is not found, I get #N/A.

Can someone tell me what I did wrong?

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
Comparing several columns in 2 workbooks KateW Excel Discussion (Misc queries) 0 February 12th 09 08:07 PM
Comparing Two Workbooks Rob Excel Discussion (Misc queries) 0 November 20th 07 02:56 PM
Comparing two workbooks. Kevin Porter Excel Worksheet Functions 1 February 14th 07 06:34 AM
Comparing Workbooks JS Excel Discussion (Misc queries) 2 October 21st 05 01:20 PM
comparing workbooks glenn Excel Discussion (Misc queries) 1 August 2nd 05 01:13 PM


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