VLOOKUP and MAXIF multiple dates based on a value - Need Help

Renold35

New Member
Joined
Oct 21, 2017
Messages
2
I need help in creating a formula that would VLOOKUP a specific value e.g., Item A, Item B, and Item C and return the max value of Baseline and Revised Start Dates for each Item A,B, and C separately in a different worksheet.

The goal is to return the latest date or revised date, or if revised date is blank, return the baseline date. Also, would like a conditional formula that detects errors such that revised date cannot come before baseline start data and so on.

Formula Worksheet

[TABLE="width: 500"]
<tbody>[TR]
[TD]Items[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Check[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-1[/TD]
[TD]12-31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]11-1[/TD]
[TD]11-15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Check[/TD]
[TD]2-15[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



Reference Worksheet


[TABLE="width: 500"]
<tbody>[TR]
[TD]Items[/TD]
[TD]Base Start Date[/TD]
[TD]Base End Date[/TD]
[TD]Revised Start Date[/TD]
[TD] Revised End Date[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-1[/TD]
[TD]11-15[/TD]
[TD]-[/TD]
[TD]12-31[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]10-[/TD]
[TD]11-15[/TD]
[TD]11-1[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]11-1[/TD]
[TD]12-31[/TD]
[TD]10-31[/TD]
[TD]2-15-18[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,822
Messages
6,181,165
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