Excel Array Formula

Excel Array Formulas

Example-1



a) Formula in Col E (Press Ctrl + Shift + Enter to make it an Array Formula)
    =IFERROR(INDEX($B$3:$B$13,SMALL(IF(ISNUMBER(SEARCH($E$2,$B$3:$B$13)),ROW($B$3:$B$13)-2),ROWS($D$3:$D3)),1),"")

b) Formula in Col G (Press Ctrl + Shift + Enter to make it an Array Formula)

=IFERROR(INDEX($B$3:$B$13,MATCH(0,COUNTIF($G$2:$G2,$B$3:$B$13),0),1),"")

c) Ignore blanks - Formula in Col G (Press Ctrl + Shift + Enter to make it an Array Formula)

=IFERROR(INDEX($B$3:$B$12,MATCH(0,COUNTIF($D$2:$D2,$B$3:$B$12)+IF($B$3:$B$12="",1,0),0),1),"")

d) Only text - Formula in Col G (Press Ctrl + Shift + Enter to make it an Array Formula)

=IFERROR(INDEX($B$3:$B$12,MATCH(0,COUNTIF($F$2:$F2,$B$3:$B$12)+IF(ISTEXT($B$3:$B$12),0,1),0),1),"")

e) Only numbers - Formula in Col G (Press Ctrl + Shift + Enter to make it an Array Formula)

=IFERROR(INDEX($B$3:$B$12,MATCH(0,COUNTIF($H$2:$H2,$B$3:$B$12)+IF($B$3:$B$12="",1,0)+IF(ISTEXT($B$3:$B$12),1,0),0),1),"")

Example-2



a) Formula in Col C (Press Ctrl + Shift + Enter to make it an Array Formula)

=SUMPRODUCT(--(TEXT('Insurance Data'!$B$1:$B$482,"MMM")='Array Formula'!$B3))

Comments

Popular posts from this blog

Power Automate - Automatically fetch data from Power BI in to Excel and Send the copy of the Excel file via Email

Function to Paste Excel Range on Outlook Mail Body (In text not image) Function Name - rngHTML()

Separate Text (Characters) & Numbers from Alpha Numeric String Using Formula and Macro (VBA)