Is it possible to use an array around two different index/match calculations?
The formula below does return my data when cell $N$4=2018, but when cell $N$4=2019, I receive #NUM errors.
{=(IF($N$4=2018,(INDEX('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2018.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2018.xlsx]MASTER'!$A$3)+1),ROW(1:1)))),(INDEX('[Count Master 2019.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2019.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2019.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2019.xlsx]MASTER'!$A$3)+1),ROW(1:1))))))}
However, if I remove the second set of indexing and replace with a cell or just text, when cell $N$4 equals 2019, I get the contents of the cell or text.
{=(IF($N$4=2018,(INDEX('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2018.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2018.xlsx]MASTER'!$A$3)+1),ROW(1:1)))),"2019"))}
Result = "2019"
I was hoping it was as simple as I'm missing some parentheses.
Anyone have any input?
Thanks.
The formula below does return my data when cell $N$4=2018, but when cell $N$4=2019, I receive #NUM errors.
{=(IF($N$4=2018,(INDEX('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2018.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2018.xlsx]MASTER'!$A$3)+1),ROW(1:1)))),(INDEX('[Count Master 2019.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2019.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2019.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2019.xlsx]MASTER'!$A$3)+1),ROW(1:1))))))}
However, if I remove the second set of indexing and replace with a cell or just text, when cell $N$4 equals 2019, I get the contents of the cell or text.
{=(IF($N$4=2018,(INDEX('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000,SMALL(IF($N$3='[Count Master 2018.xlsx]MASTER'!$Q$3:$Q$1000,ROW('[Count Master 2018.xlsx]MASTER'!$A$3:$A$1000)-ROW('[Count Master 2018.xlsx]MASTER'!$A$3)+1),ROW(1:1)))),"2019"))}
Result = "2019"
I was hoping it was as simple as I'm missing some parentheses.
Anyone have any input?
Thanks.