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 AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Also got the INDEX/MATCH Option to work
Book1
BCDEFGHIJKLMN
3BlockLevelFlatWindowPriority09/01/202310/01/202311/01/202312/01/202313/01/202314/01/202315/01/202316/01/2023
416119Large Lounge1Stage 2
516119Small Lounge1Stage 2
Sheet1
Cell Formulas
RangeFormula
N4:N5N4=INDEX(Sheet2!$G$3:$G$4,MATCH(Sheet1!C4&Sheet1!D4&Sheet1!E4&Sheet1!$N$3,Sheet2!$C$3:$C$4&Sheet2!$D$3:$D$4&Sheet2!$E$3:$E$4&Sheet2!$H$3:$H$4,0))
 
Upvote 0
@Skybluekid I figured out why the original equation wasn't working, because the second date I was referencing was 16/02/23 + 0.5 (A MIDDAY DATE!).

I took your advise thought and merged the two tables which has also allowed me to simplify the equation to a simple =IF(OR(....), ...., ....)

Looks like this now, with the formula in (now) O5 being =IF(OR(O$3=$E5, O$3+0.5=$E5), $E$3, "")

Weekday (1) Weekend (2)
1​
1​
1​
1​
1​
2​
3​
1​
BlockLevelFlatWindowStage 2Priority
09/01/2023​
10/01/2023​
11/01/2023​
12/01/2023​
13/01/2023​
14/01/2023​
15/01/2023​
16/01/2023​
16​
119​
Large Lounge
16/01/2023​
1​
Stage 2
16​
119​
Small Lounge
16/01/2023​
1​
Stage 2
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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