vlookup on variable woorksheet

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
On worksheet "ToolBox" I have

Wall Report Mar 11 - Mar 17.xlsx
JK
14
15
16MEETING DATE:
17March 9, 2023
18LED BY:
19
20SHIFT:
21ON
22
23Employees in
24Attendance:
25
261
272
283
294
305
316
327
338
349
3510
3611
3712
3813
3914
4015
4116
4217
4318
4419
4520
4621
4722
4823
4924
5025
5126
5227
5328
ToolBox
Cell Formulas
RangeFormula
J17J17=NOW()
Cells with Data Validation
CellAllowCriteria
J19List=Supervisor
J21ListAM, PM, ON


My other worksheets are

Wall Report Mar 11 - Mar 17.xlsx
ABCDEFGH
1SATSUNMONTUESWEDTHURSFRI
21Akbar FazlaliAndre DeJesusPiotr DryzmalaPiotr DryzmalaAkbar FazlaliAkbar FazlaliAkbar Fazlali
32Murad ThomasSteve HyshkaKenny RamkelawanKenny RamkelawanMurad ThomasMurad ThomasMurad Thomas
43Andre DeJesusPiotr DryzmalaAndrew HarispuruAndrew HarispuruPeter GoudogianisAndre DeJesusAndre DeJesus
54Steve HyshkaKenny RamkelawanPeter GoudogianisPeter GoudogianisRichard AysonSteve HyshkaSteve Hyshka
65Piotr DryzmalaAndrew HarispuruRichard AysonRichard AysonJonathan FonsecaJonathan FonsecaRyan Campbell
AM


Wall Report Mar 11 - Mar 17.xlsx
ABCDEFGHI
1SATSUNMONTUESWEDTHURSFRI
21Pandeli GaqollariColin AseltonFlorin NitoiuFlorin NitoiuPandeli GaqollariPandeli GaqollariPandeli Gaqollari
32Brian KailasGreg GaneshJohn De IuliisJohn De IuliisBrian KailasBrian KailasBrian Kailas
43Colin AseltonFlorin NitoiuRyan CowanRyan CowanRyan CowanColin AseltonColin Aselton
54Greg GaneshJohn De IuliisStephan LevasseurStephan LevasseurStephan LevasseurGreg GaneshGreg Ganesh
65Florin NitoiuRyan CowanStewart St CyrStewart St CyrStewart St CyrHarcharan SlatchAlan Persaud
PM


Wall Report Mar 11 - Mar 17.xlsx
ABCDEFGH
1SATSUNMONTUESWEDTHURSFRI
21Reme OvbiageleDillon DefendJamie CavanaughJamie CavanaughReme OvbiageleReme OvbiageleReme Ovbiagele
32Scott LaneJamie CavanaughFadi SweidanFadi SweidanScott LaneScott LaneScott Lane
43Edward HerbaczFadi SweidanJeff DaleyJeff DaleyEdward HerbaczEdward HerbaczEdward Herbacz
54Dillon DefendJeff DaleyScott ColeScott ColeFadi SweidanDillon DefendDillon Defend
65Jamie CavanaughDave KellyRocky FigliomeniRocky FigliomeniJeff DaleyScott Cole
ON


From the 1st worksheet, based on cell"J21", I would like to VLOOKUP the worksheet with the same name.
Then based on today's WEEKDAY, I want the column to be copied to the 1st worksheet in J26-J53.

I have tried to use VLOOKUP in combination with WEEKDAY and even use INDIRECT, but I am unsuccessful.
I'm not sure if I'm overthinking it or if I'm way off.
I need help, Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The function NOW() included date and time. Since you appear to only want the date in J17, I suggest that you use =TODAY() instead.

See if this does what you want.

JOEE1979.xlsm
J
16MEETING DATE:
17March 10, 2023
18LED BY:
19
20SHIFT:
21ON
22
23Employees in
24Attendance:
25
26Reme Ovbiagele
27Scott Lane
28Edward Herbacz
29Dillon Defend
30
31
ToolBox
Cell Formulas
RangeFormula
J17J17=TODAY()
J26:J29J26=LET(c,WEEKDAY(J$17,16)+1,r,INDIRECT("'"&J$21&"'!R2C"&c&":R50C"&c,0),FILTER(r,r<>""))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,621
Messages
6,179,929
Members
452,949
Latest member
beartooth91

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