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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,798
Messages
5,833,741
Members
430,228
Latest member
Normano

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
Top