Assistance with Date Range Formula

ShannieD

New Member
Joined
Apr 7, 2011
Messages
4
Trying to create a formula that will select the correct pay date based on a particular date.

Column A1:A26 = the start of each pay period
Column B1:B26 = the end of each pay period
Column C1:C26 = the pay date

Date in column D represents the effective date. For example, cell D1 equals April 12th. I would like the formula to find the pay period range that April 12th falls in and the output will be the actual pay date.

I've tried a number of formula but have not been successful.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If you have Excel 2003 or earlier, you could use the SUMPRODUCT function...
=SUMPRODUCT(--(D1>=A1:A26),--(D1<=B1:B26),C1:C26)

If you have Excel 2007 or later, you could use the SUMIFS function...
=SUMIFS(C:C,A:A,">="&D1,B:B,"<="&D1)

Remember to format the cell with the formula as a Date.
This assumes no pay period date ranges overlap.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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