Filter Function Alternate for Excel 2016

mwaseeuddin

New Member
Joined
Jan 14, 2024
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have created search engine in Office 365 Excel Using Filter Function, however, it's not working in Excel 2016

Please find below Formula and please help me with a formula which works in Excel 2016.

=_xlfn._xlws.FILTER(Data,ISNUMBER(SEARCH($A$7,Data[Server Role]&Data[Hostname]&Data[IP Address]))=TRUE,"Not match found")

Many thanks in advance.
 
Last edited by a moderator:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
In Excel 2016, you won't have the same convenience of automatically spilling the results like FILTER does. Instead, a formula determines the indexed rows that satisfy the matching criteria (AGGREGATE), and INDEX is used to extract those rows and columns (shown in the last array). The formula needs to be pulled down until blanks appear, which indicates that all matching items have been found.
MrExcel_20240112.xlsx
ABCDEFGHIJ
7aapple192.0.2.1aappley192.0.2.1Server RoleHostnameOther InfoIP Address
8aapplep192.0.2.1aapplex192.0.2.2
9aapples192.0.2.1aappley192.0.2.1
10amangoz192.0.2.1
11aapplep192.0.2.1
12aapple192.0.2.1aappley192.0.2.1bmangoq192.0.2.2
13aapplep192.0.2.1bmangor192.0.2.2
14aapples192.0.2.1aapples192.0.2.1
15 
16 
Sheet4
Cell Formulas
RangeFormula
B7:E9B7=FILTER(Data,ISNUMBER(SEARCH($A$7,Data[Server Role]&Data[Hostname]&Data[IP Address]))=TRUE,"Not match found")
B12:E16B12=IFERROR(INDEX(Data,AGGREGATE(15,6,(ROW(Data)-ROW(Data[#Headers]))/ISNUMBER(SEARCH($A$12,Data[Server Role]&Data[Hostname]&Data[IP Address])),ROWS(B$12:B12)),{1,2,3,4}),"")
Dynamic array formulas.
 
Upvote 0
Dear Kirk,

Many Thanks for your reply.

I followed your instructions, however, still it's not working, please see below formula and attached screen shots.
=IFERROR(INDEX(Data,AGGREGATE(15,6,(ROW(Data)-ROW(Data[#Headers]))/ISNUMBER(SEARCH($A$7,Data[Hostname]&Data[IP Address]&Data[Server Role])),ROWS(Data[Business Owner])),{1,2,3,4})=TRUE,"Not match found")
 

Attachments

  • Formula.jpg
    Formula.jpg
    190.2 KB · Views: 8
Upvote 0
@KRice
Isn't your suggestion still employing a spill feature (across each result row) that would not be available in 2016?

@mwaseeuddin
Welcome to the MrExcel board!
We don't know anything about your layout, particularly the table 'Data'. Can you provide small a sample (with any sensitive information disguised) including the expected results with XL2BB? That way we would have some idea of, not only the data, but the layout/structure of the table & result requirements.
 
Upvote 0
Dear Peter,

In Sheet 1 I created a table and named Data and in Sheet2 I have same headers a Data Table and I want search in row A7 and formula should fetch information from Data table in Sheet1.

Please see the attached screen shot for more information.

Many thanks for your help.
Mohammed.
 
Upvote 0
Please see the attached Screen Shots.
 

Attachments

  • Sheet 1 Search.jpg
    Sheet 1 Search.jpg
    121.1 KB · Views: 7
  • Sheet1 Data.jpg
    Sheet1 Data.jpg
    217.7 KB · Views: 8
Upvote 0
Ahh...right you are, @Peter_SSs...thank you. I had a hard-wired array to pull the columns, which is a spill feature.

@mwaseeuddin, here is a similar version, but the formula needs to be dragged throughout the results table. Also, please see Peter's request. Knowing what your source table looks like would help greatly. Also, is there some reason why you are beginning your search with a single concatenated term (Server Role & Hostname & IP Address)? Do you initially know each of those as individual terms? If so, other formula approaches could be taken.
MrExcel_20240117.xlsx
ABCDEFGHIJ
1
2aapple192.0.2.1aappley192.0.2.1Server RoleHostnameOther InfoIP Address
3aapplep192.0.2.1aapplex192.0.2.2
4aapples192.0.2.1aappley192.0.2.1
5    amangoz192.0.2.1
6    aapplep192.0.2.1
7bmangoq192.0.2.2
8bmangor192.0.2.2
9aapples192.0.2.1
Sheet4
Cell Formulas
RangeFormula
B2:E6B2=IFERROR(INDEX(Data,AGGREGATE(15,6,(ROW(Data)-ROW(Data[#Headers]))/ISNUMBER(SEARCH($A$2,Data[[Server Role]:[Server Role]]&Data[[Hostname]:[Hostname]]&Data[[IP Address]:[IP Address]])),ROWS($2:2)),COLUMNS($B:B)),"")
 
Upvote 0
Please see the attached Screen Shots.
Unfortunately we cannot copy from screen shots to test. :( Please see my previous post about XL2BB as we can easily copy from that.

Firstly here is my sample data (slightly changed from yours) ..

mwaseeuddin.xlsm
ABCDEFG
1EnvironmentServer_RoleHostnameIP_AddressTechnical_OwnerBusiness Owner
2FirstSecondSixthSeventhEightBO 1
3ThirdFourthFifthFirstEleventhBO 2
4ThirdFourthFifthFirstEleventhBO 3
5ThirdFourthFifthFirstEleventhBO 4
6ThirdFourthFifthFirstEleventhBO 5
7ThirdFourthFifthFirstEleventhBO 6
8ThirdFourthFifthFirstEleventhBO 7
9ThirdFourthFifthFirstEleventhBO 8
10FirstSecondSixthSeventhEightBO 9
11ThirdFourthFifthFirstEleventhBO 10
12ThirdFourthFifthFirstEleventhBO 11
13ThirdFourthFifthFirstEleventhBO 12
14ThirdFourthFifthFirstEleventhBO 13
15ThirdFourthFifthFirstEleventhBO 14
16ThirdFourthFifthFirstEleventhBO 15
17ThirdFourthFifthFirstEleventhBO 16
18ThirdFourthFifthFirstEleventhBO 17
19ThirdFourthFifthFirstEleventhBO 18
20ThirdFourthFifthFirstEleventhBO 19
21ThirdFourthFifthFirstEleventhBO 20
22ThirdFourthFifthFirstEleventhBO 21
23ThirdFourthFifthFirstEleventhBO 22
24ThirdFourthFifthFirstEleventhBO 23
25ThirdFourthFifthFirstEleventhBO 24
Sheet1


.. and 365 results with a formula similar to the one you showed in post 1

mwaseeuddin.xlsm
ABCDEF
7SecondSixthSeventh
8EnvironmentServer_RoleHostnameIP_AddressTechnical_OwnerBusiness Owner
9FirstSecondSixthSeventhEightBO 1
10FirstSecondSixthSeventhEightBO 9
11
Sheet2
Cell Formulas
RangeFormula
A9:H10A9=FILTER(Data,ISNUMBER(SEARCH($A$7,Data[Server_Role]&Data[Hostname]&Data[IP_Address]))=TRUE,"Not match found")
Dynamic array formulas.



This is how I would approach the problem with Excel 2016.
Add two new columns to the table as shown below. Once the columns have been added and formulas inserted, these columns could be hidden if you want the table to look exactly like it did before.

mwaseeuddin.xlsm
ABCDEFGHI
1EnvironmentServer_RoleHostnameIP_AddressTechnical_OwnerBusiness OwnerSR_HN_IPIdx
2FirstSecondSixthSeventhEightBO 1SecondSixthSeventh1
3ThirdFourthFifthFirstEleventhBO 2FourthFifthFirst1
4ThirdFourthFifthFirstEleventhBO 3FourthFifthFirst1
5ThirdFourthFifthFirstEleventhBO 4FourthFifthFirst1
6ThirdFourthFifthFirstEleventhBO 5FourthFifthFirst1
7ThirdFourthFifthFirstEleventhBO 6FourthFifthFirst1
8ThirdFourthFifthFirstEleventhBO 7FourthFifthFirst1
9ThirdFourthFifthFirstEleventhBO 8FourthFifthFirst1
10FirstSecondSixthSeventhEightBO 9SecondSixthSeventh2
11ThirdFourthFifthFirstEleventhBO 10FourthFifthFirst2
12ThirdFourthFifthFirstEleventhBO 11FourthFifthFirst2
13ThirdFourthFifthFirstEleventhBO 12FourthFifthFirst2
14ThirdFourthFifthFirstEleventhBO 13FourthFifthFirst2
15ThirdFourthFifthFirstEleventhBO 14FourthFifthFirst2
16ThirdFourthFifthFirstEleventhBO 15FourthFifthFirst2
17ThirdFourthFifthFirstEleventhBO 16FourthFifthFirst2
18ThirdFourthFifthFirstEleventhBO 17FourthFifthFirst2
19ThirdFourthFifthFirstEleventhBO 18FourthFifthFirst2
20ThirdFourthFifthFirstEleventhBO 19FourthFifthFirst2
21ThirdFourthFifthFirstEleventhBO 20FourthFifthFirst2
22ThirdFourthFifthFirstEleventhBO 21FourthFifthFirst2
23ThirdFourthFifthFirstEleventhBO 22FourthFifthFirst2
24ThirdFourthFifthFirstEleventhBO 23FourthFifthFirst2
25ThirdFourthFifthFirstEleventhBO 24FourthFifthFirst2
Sheet1
Cell Formulas
RangeFormula
G2:G25G2=[@[Server_Role]]&[@Hostname]&[@[IP_Address]]
H2:H25H2=COUNTIF(INDEX([SR_HN_IP],1):[@[SR_HN_IP]],Sheet2!A$7)


Now in cell A9 of Sheet2 use this formula and copy it across and down
Excel Formula:
=IFNA(INDEX(Data[Environment],MATCH(ROWS(A$9:A9),Data[[Idx]:[Idx]],0)),"")

Here are my results

mwaseeuddin.xlsm
ABCDEF
7SecondSixthSeventh
8EnvironmentServer_RoleHostnameIP_AddressTechnical_OwnerBusiness Owner
9FirstSecondSixthSeventhEightBO 1
10FirstSecondSixthSeventhEightBO 9
11      
12      
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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