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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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