View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Match 2 Texts & Show a 3rd

Steven,

I way

=INDEX(C1:C10,MATCH(D1&E1,A1:A10&B1:B10,0))

This looks for the 2 values held in D1 & E1 in cols A & B and returns the
corresponding value in C.

It's an array so enter with Ctrl+Shift+enter

Mike

"steven.holloway" wrote:

HELP...... Please!

Data Set Example (Sheet2):
A B C D E
1 EmpID Dept Site Start End
2 10 A Yellow May'07
3 500 B Green May'07 Jun'07
4 26 C Brown May'07
5 500 A Pink Jun'07

Step 1:
I have another source (Sheet1) that provides the EmpID (A1 = 500) & the Dept
(B1 = A) and I need a formula that will give me the Site from the above in C1
on sheet1(Should = Pink).

Step 2:
However as you can see, the EmpID table above can have duplications and so I
need the formula to look at both columns (in the row) at the same time and
not match any entry in one column with any entry in the other column.

NB:
The date columns may need to be brought into play, but I would prefer the
formula not to need to use these.

Many thanks for any help possible.
Steve