Question : Using VLOOKUP Based on 2 Criteria

I would like to use vlookup() based on two criteria if this is possible.  I have two worksheets, one labeled "1", and one labeled "2".  I am running the following code in Column C in worksheet "2":

=IF(VLOOKUP($A2,'1'!$A$1:$C$5000,3,0)=30,"A","I")

This code works great except for the fact that there are multiple matches in Column A on worksheet "1".  Each duplicate in Column A on worksheet "1" has a unique number in Column C of the same worksheet.  The way this code runs is that it brings up the first value that it finds.  The problem is that when IT ran this report, they could not put each unique value in its own field.  Instead the unique values are all in Column A in worksheet "1".

I want to be able to run some sort of vlookup that looks at Column A in Worksheet "2" and finds the corresponding value in Worksheet 1 that also has 30 in Column C in Worksheet "1".

I know this sounds very complicated and I hope I was able to explain myself ok.  Is there a way to write a function that allows me to do this?

Thanks,
Chris V.

Here is the issue I have.  IT ran me a report in Excel that has

Answer : Using VLOOKUP Based on 2 Criteria

Oops code snippets not good for this

=IF(ISNUMBER(MATCH(1,('1'!$A$1:$A$5000=$A2)
*('1'!$C$1:$C$5000=30),0)),"A","I")
Random Solutions  
 
programming4us programming4us