Lookup/Indexing formula issue

Sandman1985

New Member
Joined
Jun 22, 2022
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Happy new year. Hope you're well.

I am struggling with a lookup formula. I have a data table with dates as column headers which goes on for years by day.
Each column has data with activities planned for that day - so multiple lookup values in that column.

In a different sheet, I have a summary table where the user has a weekly summary for whichever given week they want to see the activities for. Again, the column headers are dates.
I'm trying to get the summary to populate with the data from the data table (summary is dynamic - dates can be changed).

My formula looks like this:
=INDEX('Scheduler View'!$A$2:$ARG$2,0,MATCH('Avail Roster'!E$6,'Scheduler View'!$A$3:$ARG$42,0))
This is the dates in the data table This is the date in the summary This is the data

Not sure where I am going wrong, any help would be appreciated.

Regards,

Sandman
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I think match works with range and not array.

Can you post your sample data using xl2bb
 
Upvote 0
I tried to download xl2bb add in but the IT policy blocked me.

I've attached some screen shots if that helps.

This is what the data sheet looks like:

1673477962631.png


This is the summary I'm trying to create:
1673478003581.png


Does this help at all?

Regards,

Sandman
 
Upvote 0
Try

Modify to suite your range


Book7
ABCDEFGHIJKLMN
11/11/20231/12/20231/13/20231/14/20231/15/2023
25077566958
39990845496
48882568072
5605577769901/15/23
6665172867501/11/202301/12/202301/13/202301/14/202301/15/2023
759866571825077566958
883969665629990845496
950857667688882568072
1098885692706055777699
116651728675
125986657182
138396966562
145085766768
159888569270
16
17
Sheet1
Cell Formulas
RangeFormula
H6:L15H6=FILTER(A1:E10,(A1:E1>=H5-4))
Dynamic array formulas.


Change -4 to -6 if you want to retrive data for 7 days.
 
Upvote 0
Solution
Try

Modify to suite your range


Book7
ABCDEFGHIJKLMN
11/11/20231/12/20231/13/20231/14/20231/15/2023
25077566958
39990845496
48882568072
5605577769901/15/23
6665172867501/11/202301/12/202301/13/202301/14/202301/15/2023
759866571825077566958
883969665629990845496
950857667688882568072
1098885692706055777699
116651728675
125986657182
138396966562
145085766768
159888569270
16
17
Sheet1
Cell Formulas
RangeFormula
H6:L15H6=FILTER(A1:E10,(A1:E1>=H5-4))
Dynamic array formulas.


Change -4 to -6 if you want to retrive data for 7 days.
Sufiyan97 that works perfectly.
Thank you so much. Appreciate your help.
 
Upvote 0
Hi
If you want to retrive always past 7 days data

Try

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZ
11/1/20231/2/20231/3/20231/4/20231/5/20231/6/20231/7/20231/8/20231/9/20231/10/20231/11/20231/12/20231/13/20231/14/20231/15/20231/16/20231/17/20231/18/20231/19/20231/20/20231/21/20231/22/20231/23/20231/24/20231/25/20231/26/2023
25077566958695044956787942324203242569716627415753763
39990845496549572468213113178635586212699739792566531
48882568072809956743377536491204586896638595366763946
56055777699765687115227518756941412219635339397622791
66651728675865817803336508960162836415840329370143055
75986657182711167557854351951516211587653251236766021
88396966562651885711597217088503327755321993688318297
95085766768677292706959899196127991868061756012252941
109888569270929212841936558822803693837197844080795344
11
121/15/2023
131/9/20231/10/20231/11/20231/12/20231/13/20231/14/20231/15/2023
1495678794232420
1546821311317863
1674337753649120
1711522751875694
1880333650896016
1955785435195151
2071159721708850
2170695989919612
2284193655882280
23
Sheet1
Cell Formulas
RangeFormula
H13:N22H13=FILTER(A1:Z10,(A1:Z1>=H12-6)*(A1:Z1<=H12))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,726
Members
449,093
Latest member
Mnur

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