Using Advanced Filter, Filter for Cells that Only include "x"

Kurtin

New Member
Joined
Jan 20, 2021
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I'm using an advanced filter to filter through a list based off of a certain cell, but its filtering the list for things that include whatever is in that certain cell. I need it to filter for rows that ONLY include the certain cell criteria in a certain column.

this is the sheet I am filtering
and i'm filtering by "1" the column I am filtering is "Group #"

Test Doc Good.xlsm
ABCDEF
1Group ##1#2Pair #Length ftLaps
21MarkLukeP00115003
313MikePhilipP00225005
412CatherineLaceyP00310002
511BillLouiseP00410002
621MaryKateP00515003
715LawrenceCarlP00615003
82BlakeGwenP00710002
93HaroldMoeP00815003
104SamAdamP00925005
115MattLinkP01020004
126HaileyIsabelleP01115003
1310PeteKenP01210002
1416JeffRyanP01315003
1517BrentSteveP01410002
1618TrevorShaneP01515003
REF


This is how the filter is coming out, its including all of the rows that include 1, but I need it to filter for the cells that ONLY contain 1.

Test Doc Good.xlsm
ABCDEF
1Group ##1#2Pair #Length ftLaps
21MarkLukeP00115003
313MikePhilipP00225005
412CatherineLaceyP00310002
511BillLouiseP00410002
621MaryKateP00515003
715LawrenceCarlP00615003
810PeteKenP01210002
916JeffRyanP01315003
1017BrentSteveP01410002
1118TrevorShaneP01515003
Filter
Cell Formulas
RangeFormula
A2:F11A2=FILTER(REF!A2:F16,ISNUMBER(SEARCH(FIN!$C$1,REF!A2:A16)),"")
Dynamic array formulas.



I have watched some youtube videos, and I tried using the LEFT function with LEN but that was just giving me the #CALC! error.

Test Doc Good.xlsm
ABCDEF
1Group ##1#2Pair #Length ftLaps
2#CALC!
Filter
Cell Formulas
RangeFormula
A2A2=FILTER(REF!A2:F16,LEFT(REF!A2:A16,LEN(FIN!C1))=(FIN!C1))
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
Excel Formula:
=FILTER(Ref!A2:F16,Ref!A2:A16=FIN!C1,"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
n
You're welcome & thanks for the feedback.
Now what I need to do is duplicate the rows onto another sheet based off of the "Laps" I had a formula for it before and it was working but now it is not, should I post a new forum for this or post it here?
 
Upvote 0
Yes please.
The thing is, it's working in my test document (the one I post) but its not working in the document I actually need it to work in and I'm doing the exact same thing, so it doesnt make any sense
 
Upvote 0
Are you talking about the formula I suggested?
 
Upvote 0
Are you talking about the formula I suggested?
Your formula works perfectly in both test and actual document, I mean my duplication formula, its working in my test document with your formula but in my actual document for some reason its acting like it isnt compatible, im going to keep trying, and rewrite everything from the beginning to see if it works. Thank you again for your help, I'll come back if it still doesnt work :)
 
Upvote 0
If you have problems, then please start a new thread.
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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