Extract Date - Based Upon Criteria - From Range of Dates

AlyssaAugust

New Member
Joined
Mar 26, 2013
Messages
5
I have a question regarding a spreadsheet for tracking vacation benefits for work.

My spreadsheet is setup similar to this:

Column A Column B ... Column AAA
Row 1: Payroll Ending Date
Row 2: Employee Name Dates

Dates before today's payroll date are vacation dates that have been used in the past. Dates after today's payroll date are vacation days available that have not been used, but have an expiration date in them.

I need to report to the employees two pieces of information. 1) the last date taken (so they can verify the last date they took has been accounted for). So, for this I need a formula to give the date closest to, but less than the Payroll Ending Date.

2) I need to report the next date a vacation day will expire. So, similar to the 1st item, I need a formula to give the date closest to, but greater than the Payroll Ending Date.

I've been spinning my wheels all morning, so I thought I'd break down and ask for help :) Thank you!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
AlyssaAugust,

I am a little confused about the format of your spreadsheet...but have you tried using either of the LARGE or SMALL functions?
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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