Forum Discussion

Queenie Lai's avatar
Queenie Lai
Copper Contributor
Jan 02, 2019
Solved

Excel formula help

I am working on the following formula for a report. Could anyone please help figure out why the following formula does not work when I added 'AND' to the formula?   The BOLD part is not working: =...
  • SergeiBaklan's avatar
    Jan 02, 2019

    Hi,

     

    Instead of

    AND(Mastersheet2018!$L:$L=$B$3,Mastersheet2018!$A:$A=$M$3)

    use it numeric equivalent

    (Mastersheet2018!$L:$L=$B$3)*(Mastersheet2018!$A:$A=$M$3)

    and you don't need

    -MIN(ROW(Mastersheet2018!$C:$C))+1

    since first part is always equal to 1, result is always zero.

    Plus in first formula you use ROWS($C$5:C5), in second one ROWS($C$5:C10), perhaps they are copy pasted from different rows.

    And in general you may use non-array variant of the formula

    =IFERROR(INDEX(Mastersheet2018!$C:$C,AGGREGATE(15,6,1/(Mastersheet2018!$L:$L=$B$3)/(Mastersheet2018!$A:$A=$M$3)*ROW(Mastersheet2018!$C:$C),ROWS($C$5:C5))),"")

Resources