FILTER Function Challenge

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
I have a list like the attached. I want to use the FILTER function to filter only the rows that are green (there is no fill color on the data, I just shaded them for an example). The ones in green contain ABC only as one of the items in the string. Can this be done?
 

Attachments

  • ABC.png
    ABC.png
    14.3 KB · Views: 11

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Can you please post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Shockingly, this is a VBA problem. The CELL function used to return colors (as best as I can remember), but in the latest 365 (Insider), it doesn't work.
Book1
AB
10
20
3Green0
4Red0
Sheet1
Cell Formulas
RangeFormula
B1:B4B1=CELL("color",A1)
I'm not aware of any other Excel function that would return a cell's color.
Is there by any chance an underlying Conditional Formatting rule in play?
 
Upvote 0
Untested as I only have 2016 here, but something like

Excel Formula:
=FILTER(A1:A23,ISNUMBER(FIND(",ABC,",","&A1:A23&",")))

should work
 
Upvote 0
RoryA,

That worked almost perfectly. It didn't include where ABC was at the end of the string, but I added a criteria for that. Thanks!
 
Upvote 0
I added a criteria for that.
Rather than add a criteria, I think that you could just modify Rory's criteria a little.

22 12 21.xlsm
AB
1ABC MartinABC
2ABCABC, Smith
3ABC JonesABC Martin, ABC
4ABC, Smith
5ABC Martin, ABC
6
FILTER
Cell Formulas
RangeFormula
B1:B3B1=FILTER(A1:A23,ISNUMBER(FIND(", ABC,",", "&A1:A23&",")))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,547
Messages
6,125,461
Members
449,228
Latest member
moaz_cma

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