Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Filter but both color AND Text

Hi All,

Is there a way to filter columns by both color and text? Some rows have
color some rows have text (Y/N). And I need to filter out all the gray cells
and the cells with "Y"

regards

Reginald
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Filter but both color AND Text

Hi Reginald,

Yes, you can definitely filter columns by both color and text in Excel. Here are the steps:
  1. Select the column that you want to filter.
  2. Click on the "Filter" button in the "Data" tab.
  3. Click on the drop-down arrow in the column header and select "Filter by Color".
  4. Choose the color that you want to filter out (in this case, gray).
  5. Click on the drop-down arrow in the column header again and select "Text Filters".
  6. Choose "Does Not Equal" and enter "Y" in the text box.
  7. Click "OK" to apply the filter.

This will filter out all the gray cells and the cells with "Y" in the selected column. You can then copy and paste the filtered data to a new sheet or work with it as needed.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Filter but both color AND Text

Hi,

The trick to doing this is to create a second column which refers to the Y,
N and then apply the filter using both columns:

Suppose your Y/N color column is A1:A100 with titles on the first row, in B1
enter "Dummy" and in B2 enter
=A2
Copy this down.
Apply the filter to both columns. From the column A filter pick Color is
Gray. From the column B filter pick Y.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Regalibar" wrote:

Hi All,

Is there a way to filter columns by both color and text? Some rows have
color some rows have text (Y/N). And I need to filter out all the gray cells
and the cells with "Y"

regards

Reginald

  #4   Report Post  
Member
 
Location: Sweden
Posts: 30
Default

Well, you can achieve this task using macro
Add a command button on the sheet from the control box and paste following codes in codes window
Formula:
Private Sub CommandButton1_Click()
    
Dim row As Integercol As Integer
    row 
1
    col 
1
    
       
    
For row 1 To 10
        
If Sheet1.Cells(rowcol).Interior.Color 12632256 Then
            
Exit Sub
        
ElseIf Sheet1.Cells(rowcol).Value "Y" Or Sheet1.Cells(rowcol).Value "N" Then
            
Exit Sub
        
Else
            
Sheet1.Rows(row).Delete
        End 
If
    
Next
    
End Sub 


Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com

Last edited by kevin : April 4th 23 at 10:24 AM
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cond. format text color based on another's text color manxman Excel Discussion (Misc queries) 3 August 31st 06 06:27 PM
Filter by Color carl Excel Worksheet Functions 1 July 14th 05 05:02 PM
Filter by Color Javid Excel Discussion (Misc queries) 1 February 14th 05 11:00 AM
Filter by color of row Brie Excel Worksheet Functions 1 February 1st 05 07:13 PM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 03:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"