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="class: cms_table, width: 368"]
<tbody>[TR]
[TD]Table 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]STATUS[/TD]
[TD]Name[/TD]
[TD]Supervisor[/TD]
[TD]Infraction[/TD]
[TD]Actual Date[/TD]
[/TR]
[TR]
[TD]Submitted[/TD]
[TD]John Smith[/TD]
[TD]April Allens[/TD]
[TD]Tardiness[/TD]
[TD]18-Mar-18[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]John Smith[/TD]
[TD]April Allens[/TD]
[TD]Tardiness[/TD]
[TD]23-Mar-18[/TD]
[/TR]
[TR]
[TD]Submitted[/TD]
[TD]Carl Lee[/TD]
[TD]April Allens[/TD]
[TD]Tardiness[/TD]
[TD]18-Mar-18[/TD]
[/TR]
[TR]
[TD]Pending[/TD]
[TD]Carl Lee[/TD]
[TD]April Allens[/TD]
[TD]Tardiness[/TD]
[TD]23-Mar-18[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Table 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Supervisor[/TD]
[TD]Frequency[/TD]
[TD]Date Submitted[/TD]
[TD]Infraction[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]April Allens[/TD]
[TD]1st instance[/TD]
[TD]21-Mar-18[/TD]
[TD]Tardiness[/TD]
[/TR]
[TR]
[TD]Carl Lee[/TD]
[TD]Sue Pervisor[/TD]
[TD]1st instance[/TD]
[TD]8-Mar-18[/TD]
[TD]Tardiness[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]April Allens[/TD]
[TD]1st instance[/TD]
[TD]21-Mar-18[/TD]
[TD]Absence[/TD]
[/TR]
[TR]
[TD]Carl Lee[/TD]
[TD]Sue Pervisor[/TD]
[TD]1st instance[/TD]
[TD]8-Mar-18[/TD]
[TD]Absence[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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