
Originally Posted by
Baron J79
I've been trying to solve this for a few days and now am at my wit's end.
I have two spreadsheets and wish to find two values in a single row in sheet 1 which are in sheet 2. If the values occur in sheet 1, I want the formulae to return a corresponding sheet reference from sheet 1. If they do not, I want the formula to return a corresponding sheet reference from sheet 2. An illustration:
Sheet 1
System Product Effect on budget
AD T24 -929,535
AD T26 -45,505
AD T29 141,243
AD T50 55,077
AD T53 81,092
Sheet 2
System Product Cost
AD T24 1,734,499
AD T28 1,265,562
AD T29 393,503
I need a formula that will search sheet 1 for a system and product that exists in sheet 2. If both do occur in sheet 1, I wish it to return the corresponding "Effect on Budget" figure for that occurence. If it does not, I need it to return the "Cost" figure that corresponds to the search values in sheet 2.
For example, searching for AD and T24 would return -929,535, as AD and T24 occur in both sheets. AD and T28, however, would give 1,265,562, as it only occurs in sheet 2.
I would like the formula to be in sheet 2.
I've trieds all sorts of things, including vlookup, ifs, ands, combinations of all these, etc., but nothing seems to work the way I want it to. Any ideas?
Bookmarks