SOLVED

How to create searchable data while filtering automatically ?

%3CLINGO-SUB%20id%3D%22lingo-sub-2419929%22%20slang%3D%22en-US%22%3EHow%20to%20create%20searchable%20data%20while%20filtering%20automatically%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419929%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20help%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIm%20using%20Microsoft%20Excel%20365%20on%20my%20MacBook%20%2C%20i%20have%20a%20task%20making%20a%20data%20list%20searchable%20while%20it%20automatically%20filters%20with%20the%20new%20%3Dfilter%20function.%20since%20I'm%20new%20to%20all%20of%20this%20i%20have%20no%20idea%20on%20ow%20to%20write%20the%20code%20%2C%20if%20you%20have%20any%20helpful%20information%20that%20would%20be%20great.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ekind%20regards%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDG%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2419929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419963%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20searchable%20data%20while%20filtering%20automatically%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419963%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1072200%22%20target%3D%22_blank%22%3E%40DM_G0%3C%2FA%3E%26nbsp%3BWell%2C%20why%20don't%20you%20share%20with%20us%20what%20kind%20of%20data%20you%20are%20working%20with%20and%20what%20the%20outcome%20should%20be%3F%3C%2FP%3E%3CP%3EIf%20it's%20just%20the%20FILTER%20function%20you%20want%20to%20learn%20more%20about%2C%20check%20the%20link%20below.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Ffilter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Ffilter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419971%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20searchable%20data%20while%20filtering%20automatically%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419971%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20responding%20to%20my%20question%2C%20%26nbsp%3Bas%20you%20can%20see%20I%20would%20like%20to%20input%20for%20example%20the%20first%20letter%20or%20number%20on%20cell%20B1%20while%20upon%20doing%20this%20action%20I%20would%20like%20the%20data%20to%20collapse%20and%20open%20automatically%20while%20I%20input%20a%20value%20whether%20is%20a%20number%20or%20text%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Emy%20problem%20with%20this%20is%20that%20i%20do%20not%20know%20the%20formula%20for%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ekind%20regards%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286627i78BCEF407B3F38C6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Image.png%22%20alt%3D%22Image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2419985%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20searchable%20data%20while%20filtering%20automatically%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419985%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1072200%22%20target%3D%22_blank%22%3E%40DM_G0%3C%2FA%3E%26nbsp%3BI'm%20afraid%20it's%20not%20clear.%20B1%20doesn't%20seem%20to%20be%20part%20of%20your%20data%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2420012%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20searchable%20data%20while%20filtering%20automatically%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2420012%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHopefully%20this%20would%20be%20more%20clear%2C%20it%20gives%20me%20a%20value%20error.%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Schermafbeelding%202021-06-06%20om%2017.39.16.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286634iACD885491E238C96%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Schermafbeelding%202021-06-06%20om%2017.39.16.png%22%20alt%3D%22Schermafbeelding%202021-06-06%20om%2017.39.16.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I need help


Im using Microsoft Excel 365 on my MacBook , i have a task making a data list searchable while it automatically filters with the new =filter function. since I'm new to all of this i have no idea on ow to write the code , if you have any helpful information that would be great. 

 

kind regards 

DG

10 Replies

@DM_G0 Well, why don't you share with us what kind of data you are working with and what the outcome should be?

If it's just the FILTER function you want to learn more about, check the link below.

https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759 

@Riny_van_Eekelen 

Thank you for responding to my question,  as you can see I would like to input for example the first letter or number on cell B1 while upon doing this action I would like the data to collapse and open automatically while I input a value whether is a number or text 

my problem with this is that i do not know the formula for this. 

 

kind regards 

 

Image.png

@DM_G0 I'm afraid it's not clear. B1 doesn't seem to be part of your data table.

 

@Riny_van_Eekelen 

Hopefully this would be more clear, it gives me a value error. 
Schermafbeelding 2021-06-06 om 17.39.16.png

@DM_G0 Not really! Please upload the file.

@DM_G0 

If you'd like organize the bar which automatically filter the range as you type in this bar - afraid there are no formulas for that. To filter the range after you type the text in "search bar" cell and press Enter - maybe, with VBA programming.

FILTER() function doesn't filter range in place. It takes the range, apply to it filtering conditions and copy result into another place, starting from the cell where you enter formula.

best response confirmed by DM_G0 (Occasional Contributor)
Solution

@DM_G0 

 

I don't know of a way to filter as you type using standard excel functions. You can do it using textboxes for the input, but it does require some vba.

 

There are instructions here how to set it up. 

https://chandoo.org/wp/filter-as-you-type-excel/

 

Also, I attached an example file you can look at (right click on the worksheet tab, select view code, and you will see the macro code). One thing I did differently is I did not use a linked cell, I just changed the macro code to pull the value directly from the textbox instead of getting it from the linked cell. 

 

@JMB17 

 

This is exactly what i wanted but your using an ActiveX component. i have excel 365 on my MacBook Microsoft via apple doesn't allow me to use activeX only only vba and macro. 

 

 

kind regards

Sorry, I've never worked with a mac and didn't realize activex controls aren't an option. Unfortunately, that's the only way I know to do it "as you type."
Excel's built-in capability gives you what you want.

Click the down-arrow in the header row for the column on which you want to filter. You'll see a list of unique values with checkboxes next to them and a field just above the list where you can enter text.

As you enter characters in the field, Excel will filter the list of values. It will *also* filter the table itself.