Dynamic Xlookup

windies17

New Member
Joined
Mar 29, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi folks

I have taken over a spreadsheet, the data is updated every day based on the date. The District sheet has data updated every day, when a new day arrives we unhide the sheet and put the data in. On the second data sheet I have used an xlookup to bring the information from district. What I am looking to do is bring in the data based on the date in N23. pulling from district sheet to the data sheet. Any help would be greatly appreciated.

Book1
ABCDEFGHIJKLMN
2TotalNorth EastEast Total AreaEast GateNorth Gate South GateSouth DistrictTotalUnder sideOver Side Length WaysArea
34/3/22899875718753253267650
44/2/229898486537292929290
54/1/228743393246101081980
63/31/2276167265959606098520
73/30/221249765418778783780
District
Cell Formulas
RangeFormula
A3A3=TODAY()
A4A4=TODAY()-1
A5A5=TODAY()-2
A6A6=TODAY()-3
A7A7=TODAY()-4


Book1
BCDEFGHIJKLMN
234/1/228998757153267650875322/1/22
242/3/22
252/2/22
262/1/22
273/31/22
283/30/22
Sheet2
Cell Formulas
RangeFormula
C23:L23C23=XLOOKUP(C22,District!$C2:$N2,District!$C3:$N3)
Named Ranges
NameRefers ToCells
total1=District!$C$3:$N$3C23:L23
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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