If Color than display content

EdGl

New Member
Joined
Jan 18, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
hello everyone,

I am new to this community and also new to Excel and looking for a solution that may be easy for some of you.

I would like to display data based on their color. So there is a search based on a certain word, when it is found the row is displayed in blue.
Now in another sheet I would like to display only the coloured rows.

As I am not a native English speaker and certainly not a native Excel speaker, I hope my problem has become clear.
Perhaps a screenshot will make it clear

Thank you for your help!!!

Edda
 

Attachments

  • Bildschirmfoto 2021-01-18 um 21.07.00.png
    Bildschirmfoto 2021-01-18 um 21.07.00.png
    200.3 KB · Views: 12

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Which cell has the particular word? Or is it immutable?
Where is the column(s) to search?
 
Upvote 0
Hey Takae,
thank you for your replay.

At the top of the page there is an option where you can search for the corresponding word (D2).
There I have a conditional formatting.

=WENN(Aus="";0;SUCHEN(Aus;$B2&$C2&$D2&$E2&$F2&$G2))

This colours all lines blue when the corresponding search word is found.

Now I want only the results of this search on the first sheet of my Excel table. So a list of the blue data. Do you think there is a solution?
Thank you,
Edda
 
Upvote 0
Which column do you want to search?
And what line is the header of the first tab?
 
Upvote 0
Assuming are D2 has the word, the searching column is only columnD, the data has header on row3, last column of the data is columnJ, next sheet has header on row1.
Please paste the code below into the sheet module of first sheet.

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("D2")) Is Nothing Then
        Exit Sub
    Else
        Range("A3").AutoFilter
        Range("A3:J3").AutoFilter field:=4, Criteria1:=Target
        If WorksheetFunction.Subtotal(3, Range("A:A")) > 1 Then
            Range(Range("A4"), Cells(Rows.Count, 10).End(xlUp)).Copy Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
            Sheets("Sheet2").Activate
        End If
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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