LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
njuneardave
 
Posts: n/a
Default INDEX - MATCH - VLOOKUP - returning missing reference

I am searching for a value from one table to another. The value has two
identifiers that form a unique combination (in columns A and E). If the
value in Sheet2 has no corresponding value in Sheet1 (meaning that the
columns A and E in Sheet2 had no match in Sheet1), the value is to be
returned to the cell. If the value IS in Sheet2, I want to compare the
values, and if the two values are different, I want to return the value in
Sheet2 to the cell. The formula seen below is what I have been using (in
Sheet3) for row # 6.

=IF(ISERROR(INDEX(Sheet2!B$2:B$9000,MATCH(1,(Sheet 1!$A$2:$A$9000=Sheet2!$A6)*(Sheet1!$E$2:$E$9000=Sh eet2!$E6),0))),
"",
IF(INDEX(Sheet2!B$2:B$9000,MATCH(1,(Sheet1!$A$2:$A $9000=Sheet2!$A6)*(Sheet1!$E$2:$E$9000=Sheet2!$E6) ,0))
=
INDEX(Sheet1!B$2:B$9000,MATCH(1,(Sheet2!$A$2:$A$90 00=Sheet1!$A6)*(Sheet2!$E$2:$E$9000=Sheet1!$E6),0) ),
"",
INDEX(Sheet2!B$2:B$9000,MATCH(1,(Sheet1!$A$2:$A$90 00=Sheet2!$A6)*(Sheet1!$E$2:$E$9000=Sheet2!$E6),0) )))


But, if the value that im searching for is deleted in Sheet2, i get an
#N/A. Shouldnt this formula just skip a deleted row and go to the next?
(the row is completely deleted....it is not a blank row)


thanks in advance for the help....it will be much appreciated!

 
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
Returning MULTIPLE values with Index and Match Fly Excel Discussion (Misc queries) 1 June 1st 06 05:50 PM
Reference different files using vlookup intricatefool Excel Worksheet Functions 0 May 30th 06 03:08 PM
Function Vlookup, Match or Index? Patrick Young Excel Worksheet Functions 0 October 3rd 05 11:08 PM
Convert VLOOKUP to absolute cell reference Rich Excel Discussion (Misc queries) 2 August 6th 05 03:49 AM
VLOOKUP returning wrong row jthomas Excel Worksheet Functions 6 August 3rd 05 10:32 PM


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