mardi 20 mars 2018

Array formula to Extract Data on specific criteria

Following is the formula that I am using:

=IFERROR(IF(ISBLANK($A$1),IF(ROWS(A$2:A2)>$F$3, "", INDEX(INDIRECT("'"&C$1&"'!$D$4:$D$1000"),SMALL(IF(INDIRECT("'"&C$1&"'!$J$4:$J$1000")=$D$3, ROW(INDIRECT("'"&C$1&"'!$D$4:$D$1000"))-ROW(INDIRECT("'"&C$1&"'!$D$4"))+1),ROWS(A$2:A2)))),IF(ROWS(A$2:A2)>$F$3, "", IF(ISNA(MATCH(1,($A$1=(INDIRECT("'"&C$1&"'!$X$4:$X$1000")))*($D$3=(INDIRECT("'"&C$1&"'!$J$4:$J$1000"))),0)),"",INDEX(INDIRECT("'"&C$1&"'!$D$4:$D$1000"),SMALL(IF((INDIRECT("'"&C$1&"'!$J$4:$J$1000")=$D$3)*($A$1=(INDIRECT("'"&C$1&"'!$X$4:$X$1000"))), ROW(INDIRECT("'"&C$1&"'!$D$4:$D$1000"))-ROW(INDIRECT("'"&C$1&"'!$D$4"))+1),ROWS(A$2:A2)))))),"")

  • what the formula is doing is extracting the data on the basis of criteria mentioned in "$D$3"
  • But it's only extracting it from one sheet for that i have used indirect formula and reference it with the sheet name
  • I have also given it a sheet criteria
  • what I want is that a formula to check whether criteria mentioned in "$D$3" is available in a particular sheet, if yes then extract all the items then go to next sheet check criteria there. if the items are available there as well extract them as well and repeat it till 31 sheets..

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire