Match multiple criteria with date range

Newbie987654321

New Member
Joined
Mar 13, 2018
Messages
9
Hi Guys. I so badly need your help.
I want to know the STATUS of Table 1.

CRITERIA OF SUBMITTED STATUS:
-DATE (Table 2) > or equal to Actual Date (Table 1)
-Name, Supervisor and Infraction should match.

If no match, then it should be "PENDING".

I need a formula that would show if it has been "Submitted" or still "Pending" under the STATUS Column.

Here's an example table which shows the STATUS.

Table 1
STATUSNameSupervisorInfractionActual Date
SubmittedJohn SmithApril AllensTardiness18-Mar-18
PendingJohn SmithApril AllensTardiness23-Mar-18
SubmittedCarl LeeApril AllensTardiness18-Mar-18
PendingCarl LeeApril AllensTardiness23-Mar-18
Table 2
NameSupervisorFrequencyDate SubmittedInfraction
John SmithApril Allens1st instance21-Mar-18Tardiness
Carl LeeSue Pervisor1st instance8-Mar-18Tardiness
John SmithApril Allens1st instance21-Mar-18Absence
Carl LeeSue Pervisor1st instance8-Mar-18Absence

<tbody>
</tbody>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I don't see why the 3rd one is "Submitted" as Name and Supervisor do not match in any rows. Assuming that is a typo, try this copied down.

Excel Workbook
ABCDE
1Table 1
2STATUSNameSupervisorInfractionActual Date
3SubmittedJohn SmithApril AllensTardiness18-Mar-18
4PendingJohn SmithApril AllensTardiness23-Mar-18
5PendingCarl LeeApril AllensTardiness18-Mar-18
6PendingCarl LeeApril AllensTardiness23-Mar-18
7
8Table 2
9NameSupervisorFrequencyDate SubmittedInfraction
10John SmithApril Allens1st instance21-Mar-18Tardiness
11Carl LeeSue Pervisor1st instance8-Mar-18Tardiness
12John SmithApril Allens1st instance21-Mar-18Absence
13Carl LeeSue Pervisor1st instance8-Mar-18Absence
Status




If those tables are 'formal' tables, this would be the alternative that would automatically expand if the tables are added to.

Excel Workbook
ABCDE
1Table 1
2STATUSNameSupervisorInfractionActual Date
3),&quot;Submitted&quot;,&quot;Pending&quot;)]SubmittedJohn SmithApril AllensTardiness18-Mar-18
4PendingJohn SmithApril AllensTardiness23-Mar-18
5PendingCarl LeeApril AllensTardiness18-Mar-18
6PendingCarl LeeApril AllensTardiness23-Mar-18
7
8Table 2
9NameSupervisorFrequencyDate SubmittedInfraction
10John SmithApril Allens1st instance21-Mar-18Tardiness
11Carl LeeSue Pervisor1st instance8-Mar-18Tardiness
12John SmithApril Allens1st instance21-Mar-18Absence
13Carl LeeSue Pervisor1st instance8-Mar-18Absence
Status (Tables)
 
Upvote 0
THIS IS AMAZING!!! I got it on the first table. It almost took me a month, I still couldn't figure it out. HAHAHA.. Thank you soooooo much!

PS. And yes, it was a typo on the table. Thank you soooo much for the help Peter. You're the man! :)
 
Upvote 0
You are welcome. Glad it worked out so well for you. :)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,867
Members
449,053
Latest member
Mesh

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