Match calendar days and return value below

kasper

New Member
Joined
Feb 4, 2009
Messages
33
I have created a monthly calendar that I want to use to to manage lieu time (I've already figured out sick, vacation days). What I think I need is a formula that will match a column of dates with the ones in each monthly calendar then returns the lieu time value 2 cells below the date. So in the setup below I have a column of 365 dates that I want to match up with the corresponding dates in the calendars laid out horizontally across the worksheet and then return the manually entered value 2 rows below that date. For instance match January 21 and return 30.
Any ideas?

Excel 2010
HIJKLMN
5January
6SundayMondayTuesdayWednesdayThursdayFridaySaturday
720212223242526
8
9272829303112
10New Year's Day
11
123456789
13
14
1510111213141516
16
17
1817181920212223
19
2030
2124252627282930
22
23
2431123456
25

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Calendar template

Worksheet Formulas
CellFormula
H7=N$4+'Calendar template'!$K$37+$F$7*7+$H$3
I7=N$4+'Calendar template'!$K$37+$F$7*7+$I$3
J7=N$4+'Calendar template'!$K$37+$F$7*7+$J$3
K7=N$4+'Calendar template'!$K$37+$F$7*7+$K$3
L7=N$4+'Calendar template'!$K$37+$F$7*7+$L$3
M7=N$4+'Calendar template'!$K$37+$F$7*7+$M$3
N7=N$4+'Calendar template'!$K$37+$F$7*7+$N$3
H8=IF(AND(H7>=$N$4,H7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(H7),Dates,0)),""),"")
I8=IF(AND(I7>=$N$4,I7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(I7),Dates,0)),""),"")
J8=IF(AND(J7>=$N$4,J7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(J7),Dates,0)),""),"")
K8=IF(AND(K7>=$N$4,K7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(K7),Dates,0)),""),"")
L8=IF(AND(L7>=$N$4,L7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(L7),Dates,0)),""),"")
M8=IF(AND(M7>=$N$4,M7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(M7),Dates,0)),""),"")
N8=IF(AND(N7>=$N$4,N7<$Y$4),IFERROR(INDEX(Holidays,MATCH($H$5&DAY(N7),Dates,0)),""),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Workbook Defined Names
NameRefers To
Dates='Calendar template'!$N$37:$N$47
Holidays='Calendar template'!$O$37:$O$47

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,216,079
Messages
6,128,687
Members
449,464
Latest member
againofsoul

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