Calculate latest date from two columns

thisisliam

New Member
Joined
Oct 8, 2020
Messages
7
Office Version
  1. 2019
Platform
  1. MacOS
Hi all

I need to calculate the latest date of two columns and add two years to that date.

Column B contains the date (B8:B250 to exclude headers). Columns AD (AD8:AD250) and AF (AF8:AF250) are cells which are used to define what specific event, if any, was logged on that date, denoted by a simple "X" value entered by the user. I need to calculate the latest date, if any, defined by an "X" value in either columns AD or AF and add two years.

For example, this spreadsheet is a pilot logbook. Column AD is where the user would indicate if that entry was a Checkride in the logbook, AF is where the user would indicate if that entry was a Flight Review in the logbook. A Flight Review is required two years after the last logged Flight Review OR after the last Checkride. If the pilot has a Checkride within that time then that resets the two year date as a Checkride can be considered a Flight Review but a Flight Review cannot be considered a Checkride.

The formula needs to calculate the date of the next Flight Review.

Any help greatly appreciated!
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Missed that bit, how about
Excel Formula:
=EDATE(LOOKUP(2,1/(((AD8:AD250="X")+(AF8:AF250="X"))>0),B8:B250),24)

EDATE() solved that one. Thanks guys. You've helped me add another feature to my really slick logbook :D
 
Upvote 0

Forum statistics

Threads
1,215,545
Messages
6,125,450
Members
449,227
Latest member
Gina V

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