Cross Reference Two Tables, and Table Headers, Return Value

MrCameronExcel

New Member
Joined
Apr 21, 2017
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have two tables, and I want to cross reference the start dates per window area (large lounge, small lounge, bedroom 1 etc.) from TABLE 1 into TABLE 2.

I have previously used the FILTER formula to return values from a column based on a cross reference of columns across tables, but in this scenario, I would need to cross reference the columns level and flat across the tables, but also cross reference Window column to the column headers (or first row) in Table 1.

How can I achieve this? Is there a formula to cross reference column to row?

TABLE 1

LevelFlatNumber of WindowsLarge LoungeSmall LoungeBedroom 1Bedroom 2Bedroom 3KitchenBathroomWC
16​
119​
6​
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
18/01/2023​
12​
89​
5​
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
12​
87​
3​
19/01/2023​
19/01/2023​
20/01/2023​
12​
86​
7​
18/01/2023​
19/01/2023​
19/01/2023​
20/01/2023​
20/01/2023​
21/01/2023​
21/01/2023​
11​
82​
5​
20/01/2023​
21/01/2023​
21/01/2023​
22/01/2023​
22/01/2023​
11​
80​
3​
23/01/2023​
24/01/2023​
24/01/2023​
11​
78​
5​
24/01/2023​
25/01/2023​
25/01/2023​
26/01/2023​
26/01/2023​
27/01/2023​
9​
70​
6​
24/01/2023​
25/01/2023​
25/01/2023​
26/01/2023​
26/01/2023​
27/01/2023​
9​
68​
5​
26/01/2023​
27/01/2023​
27/01/2023​
28/01/2023​
28/01/2023​
5​
42​
6​
27/01/2023​
27/01/2023​
28/01/2023​
28/01/2023​
29/01/2023​
29/01/2023​

TABLE 2

LevelFlatWindowStart Date
16​
119​
Large Lounge
16​
119​
Small Lounge
16​
119​
Bedroom 1
16​
119​
Bedroom 2
16​
119​
Bedroom 3
16​
119​
Kitchen
12​
89​
Large Lounge
12​
89​
Small Lounge
12​
89​
Bedroom 1
12​
89​
Kitchen
12​
89​
Bathroom
12​
87​
Large Lounge
12​
87​
Kitchen
12​
87​
Bathroom
12​
86​
Large Lounge
12​
86​
Small Lounge
12​
86​
Bedroom 1
12​
86​
Bedroom 2
12​
86​
Kitchen
12​
86​
WC
12​
86​
Bathroom
11​
82​
Large Lounge
11​
82​
Small Lounge
11​
82​
Bedroom 1
11​
82​
Kitchen
11​
82​
Bathroom
11​
80​
Large Lounge
11​
80​
Kitchen
11​
80​
Bathroom
11​
78​
Large Lounge
11​
78​
Small Lounge
11​
78​
Bedroom 1
11​
78​
Bedroom 2
11​
78​
Kitchen
11​
78​
Bathroom
9​
70​
Large Lounge
9​
70​
Small Lounge
9​
70​
Bedroom 1
9​
70​
Bedroom 2
9​
70​
Bedroom 3
9​
70​
Kitchen
9​
68​
Large Lounge
9​
68​
Small Lounge
9​
68​
Bedroom 1
9​
68​
Kitchen
9​
68​
Bathroom
5​
42​
Large Lounge
5​
42​
Small Lounge
5​
42​
Bedroom 1
5​
42​
Bedroom 2
5​
42​
Bedroom 3
5​
42​
Kitchen
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Seems an INDEX MATCH formula would work if I can work out how to MATCH multiple columns.
 
Upvote 0
What version of Excel are you 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’)

How about
Fluff.xlsm
ABCDEFGHIJK
1LevelFlatNumber of WindowsLarge LoungeSmall LoungeBedroom 1Bedroom 2Bedroom 3KitchenBathroomWC
216119616/01/202316/01/202317/01/202317/01/202318/01/202318/01/2023
31289516/01/202316/01/202317/01/202317/01/202318/01/2023
41287319/01/202319/01/202320/01/2023
51286718/01/202319/01/202319/01/202320/01/202320/01/202321/01/202321/01/2023
61182520/01/202321/01/202321/01/202322/01/202322/01/2023
71180323/01/202324/01/202324/01/2023
81178524/01/202325/01/202325/01/202326/01/202326/01/202327/01/2023
9970624/01/202325/01/202325/01/202326/01/202326/01/202327/01/2023
10968526/01/202327/01/202327/01/202328/01/202328/01/2023
11542627/01/202327/01/202328/01/202328/01/202329/01/202329/01/2023
Sheet1


Fluff.xlsm
ABCD
1LevelFlatWindowStart Date
216119Large Lounge16/01/2023
316119Small Lounge16/01/2023
416119Bedroom 117/01/2023
516119Bedroom 217/01/2023
616119Bedroom 318/01/2023
716119Kitchen18/01/2023
81289Large Lounge16/01/2023
91289Small Lounge16/01/2023
101289Bedroom 117/01/2023
111289Kitchen17/01/2023
121289Bathroom18/01/2023
131287Large Lounge19/01/2023
141287Kitchen19/01/2023
151287Bathroom20/01/2023
161286Large Lounge18/01/2023
171286Small Lounge19/01/2023
181286Bedroom 119/01/2023
191286Bedroom 220/01/2023
201286Kitchen20/01/2023
211286WC21/01/2023
221286Bathroom21/01/2023
231182Large Lounge20/01/2023
241182Small Lounge21/01/2023
251182Bedroom 121/01/2023
261182Kitchen22/01/2023
271182Bathroom22/01/2023
281180Large Lounge23/01/2023
291180Kitchen24/01/2023
301180Bathroom24/01/2023
311178Large Lounge24/01/2023
321178Small Lounge25/01/2023
331178Bedroom 125/01/2023
341178Bedroom 226/01/2023
351178Kitchen26/01/2023
361178Bathroom27/01/2023
37970Large Lounge24/01/2023
38970Small Lounge25/01/2023
39970Bedroom 125/01/2023
40970Bedroom 226/01/2023
41970Bedroom 326/01/2023
42970Kitchen27/01/2023
43968Large Lounge26/01/2023
44968Small Lounge27/01/2023
45968Bedroom 127/01/2023
46968Kitchen28/01/2023
47968Bathroom28/01/2023
48542Large Lounge27/01/2023
49542Small Lounge27/01/2023
50542Bedroom 128/01/2023
51542Bedroom 228/01/2023
52542Bedroom 329/01/2023
53542Kitchen29/01/2023
Sheet2
Cell Formulas
RangeFormula
D2:D53D2=INDEX(Sheet1!$D$2:$K$11,MATCH(A2&"|"&B2,Sheet1!$A$2:$A$11&"|"&Sheet1!$B$2:$B$11,0),MATCH(C2,Sheet1!$D$1:$K$1,0))
 
Upvote 0
Solution
Hi Fluff,

Thanks for the suggestion, I have updated my account details as you suggested.

And the formula works perfectly! Just a follow up question, what is the line " | " you used in the formula and how can I input it on my windows computer?

Thanks
 
Upvote 0
It's called a Pipe & is located on the same key as the \
 
Upvote 0
It's called a Pipe & is located on the same key as the \

Can you help me with one more thing?

Cell A5 = 18/01/2023 +0.5

I tested A5's value in I5 = A5+0.5 = 19/01/2023

However, when I use the following formula in B5, it isn't adding to 19/01/2023

B5 = WORKDAY(A5, 0.5, 0)

Is there a simple workaround formula to add 0.5 but ensure only lands on a workday? I am trying to solve it now.

Thanks

ABCDEFGHI
1Large LoungeSmall LoungeBedroom 1Bedroom 2Bedroom 3KitchenBathroomWCTEST
2
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
18/01/2023​
3
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
4
19/01/2023​
19/01/2023​
20/01/2023​
5
18/01/2023​
18/01/2023​
19/01/2023​
19/01/2023​
20/01/2023​
20/01/2023​
23/01/2023​
19/01/2023​
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,457
Messages
6,124,941
Members
449,198
Latest member
MhammadishaqKhan

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