search and list table data

%3CLINGO-SUB%20id%3D%22lingo-sub-3024475%22%20slang%3D%22en-US%22%3Esearch%20and%20list%20table%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3024475%22%20slang%3D%22en-US%22%3E%3CP%3E%3C!--%20%20%20StartFragment%20%20%20%20--%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EI%20have%20a%20table%20in%20excel%20having%206000%20lines%2C%207%20columns%20using%20a%20filter%20%3DFILTER(B5%3AH6000%2CISNUMBER(SEARCH(K2%2CB5%3AB6000))%2C%22No%20results%22)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EIt%20includes%20lists%20containing%20the%20search%20value%2C%20but%20not%20only%20the%20beginning%20value.%20How%20can%20I%20make%20it%20list%20only%20values%20that%20begin%20with%20my%20search%20value%20listed%20in%20K2%3F%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C!--%20%20%20EndFragment%20%20%20%20--%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3024475%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3024506%22%20slang%3D%22en-US%22%3ERe%3A%20search%20and%20list%20table%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3024506%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1235546%22%20target%3D%22_blank%22%3E%40eztunecoxnet%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DFILTER(%3CSPAN%20class%3D%22%22%3EB5%3AH6000%3C%2FSPAN%3E%2CLEFT(%3CSPAN%20class%3D%22%22%3EB5%3AH6000%3C%2FSPAN%3E%2CLEN(K2))%3DK2%2C%22No%20results%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3024769%22%20slang%3D%22en-US%22%3ERe%3A%20search%20and%20list%20table%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3024769%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20your%20efforts%2C%20but%20it%20Ends%20up%20as%20%23VALUE!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a table in excel having 6000 lines, 7 columns using a filter =FILTER(B5:H6000,ISNUMBER(SEARCH(K2,B5:B6000)),"No results")

It includes lists containing the search value, but not only the beginning value. How can I make it list only values that begin with my search value listed in K2?"

4 Replies

@eztunecoxnet 

Try

 

=FILTER(B5:H6000,LEFT(B5:H6000,LEN(K2))=K2,"No results")

@Hans Vogelaar 

I appreciate your efforts, but it Ends up as #VALUE!

@eztunecoxnet 

Sorry, my mistake.

 

=FILTER(B5:H6000,LEFT(B5:B6000,LEN(K2))=K2,"No results")

Much better than my approach. Thank you very much. You are one sharp arrow.