Excel formula - to look up each country of holidays in a range of dates

Kong Kong

New Member
Joined
Apr 6, 2018
Messages
1
This is my ever first post forum, really excited!
I have basic knowledge of excel formula, hence, need some help here.


I have a range of dates (Start date, End date) and countries code on Sheet 1. Sheet 2, with all the listed holidays in all the countries.


How am I gonna match the holiday in each country from the range of dates? This is to exclude the holidays from my calculation.


Thanks in advance for the help.


Sheet 1:
Country Start date End Date
PRT 2018-03-30 2018-04-04
PRT 2018-03-30 2018-04-04
GBR 2018-03-30 2018-04-04
AUT 2018-03-30 2018-04-04


Sheet 2:
CountryNew Year's DayEpiphanyGood FridayEaster MondayLabor Day
DEU2018-01-012018-01-06 2018-04-022018-05-01
AUT2018-01-012018-01-06 2018-04-022018-05-01
CHE2018-01-012018-01-06 2018-04-022018-05-01
ESP2018-01-012018-01-062018-03-302018-04-022018-05-01
PRT2018-01-012018-01-062018-03-302018-04-022018-05-01

<colgroup><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the board.

Try this on Sheet1 in D2

=NETWORKDAYS(B2,C2,INDEX(Sheet2!$B$2:$F$6,MATCH(A2,Sheet2!$A$2:$A$6,0),0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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