Pulling Data from range given Date Criteria in Rows

tomtom412

New Member
Joined
Mar 9, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I'm creating a dashboard type sheet in which I want to automatically pull in data from a raw data sheet, for a given week selected within the dashboard.

1660569392550.png


Basically I want to automatically populate the numbers from A9:E9, given that I've selected my "wk start" date at the top in B2. If the data was arranged vertically, VLOOKUP would be a way to populate this, however I need the data arranged horizontally, in the format shown in the image.

I've pasted below the two sheets in my workbook - 1 is the report sheet which pulls in the raw data that is populated by the user into Sheet 2 - Raw Data

Any help as to how to do this would be greatly appreciated as I'm unsure how to get what I want!

Thanks,
Tom

1. Report Sheet:
Sample Data Sheet.xlsx
ABCDEFGHIJKLMNO
1
2wk start15-Aug
3wk end19-Aug
4
5Aug-22
615-Aug16-Aug17-Aug18-Aug19-Aug
7MTWTF
8each row fills in with its matching data for that week from the RAW DATA tab
9
10
11
12
13
14
15
16
17
18
19
Report
Cell Formulas
RangeFormula
B3B3=B2+4
A5A5=A6
A6A6=B2
B6:E6B6=A6+1
Cells with Data Validation
CellAllowCriteria
B2List='RAW DATA'!$A$2:$AS$2


2. Raw Data Sheet:
Sample Data Sheet.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASAT
1Aug-2022Aug-2022Aug-2022Sep-2022Sep-2022Sep-2022Sep-2022Oct-2022Oct-2022
2151617181922232425262930310102050607080912131415161920212223262728293003040506071011121314
3MTWTFMTWTFMTWTFMTWTFMTWTFMTWTFMTWTFMTWTFMTWTF
488888400888888888888888888888888888-888888888
566877400468466463464834643204683464-6998634119
610110100200000000000000000001000000-000020100
7
RAW DATA
Cell Formulas
RangeFormula
A1,F1,K1,P1,U1,Z1,AE1,AJ1,AO1A1=A2
A2A2=TODAY()
B2:E2,G2:J2,L2:O2,Q2:T2,V2:Y2,AA2:AD2,AF2:AI2,AK2:AN2,AP2:AS2B2=A2+1
F2,K2,P2,U2,Z2,AE2,AJ2,AO2F2=E2+3
A3:AS3A3=LEFT(TEXT(A2,"ddd"),1)
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
What version of Excel areyou using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel areyou using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Understood and updated. Thank you for that!
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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