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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,216,415
Messages
6,130,461
Members
449,582
Latest member
Mengli

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