Complicated lookup

FrigidDigit

Board Regular
Joined
May 10, 2005
Messages
203
Hi all!

I have a summary sheet (1) with the following layout:

Mod01 Mod02 Modnn
Contractor 1 Date01 Date02 Datenn
Contractor 2 Date01 Date02 Datenn
Contractor n Date01 Date02 Datenn

On sheet 2 I have list of data
Sub Name File Name Mod # Mod Status Date

I need a lookup formula for sheet one that will lookup the date based on the contractor name and mod # on sheet 1, however if the status on sheet 2 is "Not submitted", I want to display "Pending" in the relevant cell on sheet 1.

I hope I have explained this clearly enough?

Any help would be much appreciated.

Thanks FD
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
FD

This will need to be adjusted for errors and ranges but should get you started.
Code:
=IF(INDEX(Sheet2!$D$1:$D$9,SUMPRODUCT(--(Sheet2!$A$2:$A$9=Sheet1!$A2),--(Sheet2!$C$2:$C$9=Sheet1!B$1),ROW(Sheet2!$A$2:$A$9)),0)="Not Submitted","Pending",INDEX(Sheet2!$E$1:$E$9,SUMPRODUCT(--(Sheet2!$A$2:$A$9=Sheet1!$A2),--(Sheet2!$C$2:$C$9=Sheet1!B$1),ROW(Sheet2!$A$2:$A$9)),0))

Tony
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top