INDEX MATCH with Multiple Criteria and Cannot Select Same Value Twice

schwang

New Member
Joined
Oct 31, 2018
Messages
3
I have a table that looks like the one below with Work Order # in descending order:

Employee Work Order #Employee Date WorkedEmployee NameEmployee Total HoursVehicle Work Order #Vehicle DescriptionVehicle Date UsedVehicle Total HoursVehicle Operator
S114219/26/17Jason6S11421Pickup Truck9/26/176
S114219/26/17Mark6S11421Dump Truck10/10/172.5
S1142110/10/17Jason4S11421Excavator10/10/172.5
S1142110/10/17Frank2.5
S1142110/10/17Austin4

<tbody>
</tbody>

I want to enter a name in the Operator column. The operator can be any employee as long as he meets these qualifications:
  • Same Work Order #
  • Same Day Worked
  • Worked at least as many hours as the vehicle was used
  • Is not already an operator for another piece of equipment on that same day

I can use an Index Match combination to return a correct value that satisfies the first three equations, but I am not sure how to handle the last qualification of not having repeats. For example, in my formula, both the dump truck and excavator would return Jason as it is the first person who satisfies the first three qualifications.

If possible, I'd prefer to just use formulas to solve this and avoid VBA. Thanks in advance!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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