Conditional Formatting and Vlookup??

aishasaccount

New Member
Joined
Sep 28, 2016
Messages
1
Hi there!

I have a large spreadsheet and I managed to use conditional formatting to make certain rows (when a cell in column G had a value > 1000) turn red.
That caused me to have a large spreadsheet with certain rows red; however, is there a way to use vlookup or any other lookup function to create a LIST of the red rows; more specifically only one column of the red rows?

I'm not sure I explained that very well, but hopefully someone can help!
If you need more details, let me know!

Thanks!!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi Aishasaccount
I am not proficient in all things Excel but I get by. I attach the below code that I received off someone on this site that hides rows that meet a certain criteria. I use this from a button on a user form but could be a macro. Set up a cell that dose the same as your conditional format but results in a 1 if false and 0 if true. Then have this code look at that column. (Replace the ("G:G") with the column where your cells sit. once activated all the false rows will be hidden. You can do a simple macro to unhide all using the Macro recorder.
I hope this helps
Mick.

Code:
Private Sub CmdHide_Click()
'Sub HideRows()
 Dim cell As Range
 For Each cell In Range("G:G")
 If UCase(cell.Value) = 1 Then
 cell.EntireRow.Hidden = True
 End If
 Next
 End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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