Looking up the Latest Date (in time) Given 2 Other Criteria Match

Cliff101

New Member
Joined
Jul 28, 2010
Messages
1
Hello All,

This may have a fairly easy solution but I am an intermediate Excel user so I am not fully versed in some of the more detailed formulas.

I hate two table side by side on the same worksheet.

Table 1 has columns:

  1. Item
  2. Sales order #
  3. Quantity
  4. Expected Delivery Date

Table 2 has columns:

  1. Item
  2. Sales order #
  3. Quantity
  4. Expected ship date

Table 2 is when I am expecting to receive the said items and quantities and table 1 is when customer a is expecting me to deliver the same items and quantity.

For each row in table 1, I want to highlight it if the expected ship date in table 2 is later than the expected delivery date in table 1. But since I can have multiple entries of the same sales order in table 2, I need this conditional formating to take into account the following.

Highlight row in table 1 if:

  1. Item
  2. Sales order #

Then select the latest date in table 2 (date in time, not in sequence) and if the latest date in table 2 is later than the date in table 1, highlight the row in table 1 in red.

I would prefer to do this using formulas please. I really appreciate any feedback anyone has on this.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,152,817
Messages
5,772,456
Members
425,760
Latest member
paphon

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