maximusben
New Member
- Joined
- Jul 13, 2020
- Messages
- 6
- Office Version
- 2016
- Platform
- Windows
Hello Excel users, may I please get your help?
I would like to return the latest (max) value based on multiple matching criteria.
I have a workbook with three excel sheets - Work_Order, General_Contract, and Contract. In the Work_Order sheet is where I want to have the results from the other two sheets; if the order number (Column A) has "Contract" as the Work Type (Column B), then I need to lookup the order number in the Contract worksheet, find the latest (max) Completion Date (Column B) for Order Type (Column D), and return the value in "Construction/Operation Status" (Column C) . For example, in the Work_Order sheet, order number 126418 has "Contract" as the Work Type, so I need to lookup the order number in the Contract Worksheet, find the latest Completion Date for "Civil" Order Type, in this case it is 10/25/2020, so I need to pull in cell c2 "Customer not ready" into cell c2 in the Work_Order sheet. The latest Completion Date for "Non-Civil" Order Type, in this case it is 10/22/2020, so I need to pull in cell c4 "Customer not ready" into cell d2 in the Work_Order sheet. If the Work Type for an order is "General_Contract", then I need to perform the same lookup in the General_Contract worksheet using the same logic. I've attached an example in excel.
Thanks in advance for your help!
I would like to return the latest (max) value based on multiple matching criteria.
I have a workbook with three excel sheets - Work_Order, General_Contract, and Contract. In the Work_Order sheet is where I want to have the results from the other two sheets; if the order number (Column A) has "Contract" as the Work Type (Column B), then I need to lookup the order number in the Contract worksheet, find the latest (max) Completion Date (Column B) for Order Type (Column D), and return the value in "Construction/Operation Status" (Column C) . For example, in the Work_Order sheet, order number 126418 has "Contract" as the Work Type, so I need to lookup the order number in the Contract Worksheet, find the latest Completion Date for "Civil" Order Type, in this case it is 10/25/2020, so I need to pull in cell c2 "Customer not ready" into cell c2 in the Work_Order sheet. The latest Completion Date for "Non-Civil" Order Type, in this case it is 10/22/2020, so I need to pull in cell c4 "Customer not ready" into cell d2 in the Work_Order sheet. If the Work Type for an order is "General_Contract", then I need to perform the same lookup in the General_Contract worksheet using the same logic. I've attached an example in excel.
Thanks in advance for your help!