Filter Formula to Infill Matrix based on references from another Table

MrCameronExcel

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

I am trying to fill in the below matrix based on references to another table using the FILTER formula, but the current formula is not capturing all the values desired.

Matrix is below (column F is hidden).

ABCDEGHIJKLMN
2Weekday (1) Weekend (2)
1​
1​
1​
1​
1​
2​
3​
1​
3BlockLevelFlatWindowPriority
09/01/2023​
10/01/2023​
11/01/2023​
12/01/2023​
13/01/2023​
14/01/2023​
15/01/2023​
16/01/2023​
4
16​
119​
Large Lounge
1​
Stage 2
5
16​
119​
Small Lounge
1​

N4 Formula: =FILTER(Programme!$F$2:$F$875,(Programme!$B$2:$B$875='Line of Balance'!$B4)*(Programme!$C$2:$C$875='Line of Balance'!$C4)*(Programme!$D$2:$D$875='Line of Balance'!$D4)*(Programme!$G$2:$G$875='Line of Balance'!N$3), "")

N5 Formula: =FILTER(Programme!$F$2:$F$875,(Programme!$B$2:$B$875='Line of Balance'!$B5)*(Programme!$C$2:$C$875='Line of Balance'!$C5)*(Programme!$D$2:$D$875='Line of Balance'!$D5)*(Programme!$G$2:$G$875='Line of Balance'!N$3), "")


Programme Table

ABCDEFG
1BlockLevelFlatWindowPriorityStageStart Date
2
16​
119​
Large Lounge
1​
Stage 2
16/01/2023​
3
16​
119​
Small Lounge
1​
Stage 2
16/01/2023​


The cell N5 in the matrix should be "Stage 2" but it is showing blank for some reason.

Thanks for your help.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Not sure why Filter is not doing its job, but here is an alternative:
Book1
ABCDEFGHIJKLM
2BlockLevelFlatWindowPriorityStageStart Date
316119Large Lounge1Stage 216/01/2023
416119Small Lounge1Stage 216/01/2023
5
6
7BlockLevelFlatWindowPriority09/01/202310/01/202311/01/202312/01/202313/01/202314/01/202315/01/202316/01/2023
816119Large Lounge1Stage 2
916119Small Lounge1Stage 2
Sheet1
Cell Formulas
RangeFormula
M8:M9M8=INDEX($F$3:$F$4,MATCH($B$8&$C$8&$D$8&M$7,$B$3:$B$4&$C$3:$C$4&$D$3:$D$4&$G$3:$G$4,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
I've used that formula but for some reason I am getting #N/A

=INDEX(Programme!$F$2:$F$875, MATCH('Line of Balance'!$B5&'Line of Balance'!$C5&'Line of Balance'!$D5&'Line of Balance'!N$3, Programme!$B$2:$B$875&Programme!$C$2:$C$875&Programme!$D$2:$D$875&Programme!$G$2:$G$875, 0))
 
Upvote 0
Have you pressed Control Shift Enter? You will need to do this as it is an Array Formula ie in the MATCH Function
 
Upvote 0
I see the issue. It does not like to reference to another sheet. I have had a look as to why the Filter Function is not working. It seems that when it looks at the Window Column it does not like it. I have put all the other parameters and it works ok.
 
Upvote 0
@MrCameronExcel Check for any leading/trailing spaces on both sheets.
Also check that all the numbers are real numbers & not text.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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