Excel formula - week number & day criteria outputs date

kets23

New Member
Joined
Feb 29, 2016
Messages
19
Hi

I'm after a formula that looks at a sheet (2nd table below), to display contents in Column G in the table below:

ABCDEFG
NameSubjectRoomTimeWeek NumberDay
1R JonesMathsB1209:00 – 11:001 Tuesday
2T WellsScienceB1310:00 – 12:004Friday
3C SmithHistoryB1414:00 – 15:005Wednesday
4E TaylorGeographyB1511:00 – 12:006Monday
5B LeysEnglishB1613:00 – 14:308Monday

<tbody>
</tbody>


In the example above, the formula would look at Column E week number 5 & Column F which is a Wednesday. The source data for this would be on a separate sheet (second table below) and the output I want to display in column G would be 24/10/2018.
I’m guessing I would need a Vlookup that looks at 2 criteria’s from the table below to display the output in column G but not sure how to construct this.

Any suggestions would be grateful.

Thanks


A BCDE
WeekMondayTuesdayWednesdayThursdayFriday
1124/09/201825/09/201826/09/201827/09/201828/09/2018
2201/10/201802/10/201803/10/201804/10/201805/10/2018
3308/10/201809/10/201810/10/201811/10/201812/10/2018
4415/10/201816/10/201817/10/201818/10/201819/10/2018
5522/10/201823/10/201824/10/201825/10/201826/10/2018
6629/10/201830/10/201831/10/201801/11/201802/11/2018
7705/11/201806/11/201807/11/201808/11/201809/11/2018
8812/11/201813/11/201814/11/201815/11/201816/11/2018
9919/11/201820/11/201821/11/201822/11/201823/11/2018
101026/11/201827/11/201828/11/201829/11/201830/11/2018
111103/12/201804/12/201805/12/201806/12/201807/12/2018
121210/12/201811/12/201812/12/201813/12/201814/12/2018

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
This will calculate the date based on the DateValue as week 1. You could reference a cell with the week1 date instead of using DateValue.

=DATEVALUE("24/09/2018")+((E2-1)*7)+MATCH(F2,{"Monday","Tuesday","Wednesday","Thursday","Friday"},0)-1
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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