Auto Hide Rows Based On Vlookup Outcome

VBNewbiwe83

New Member
Joined
Aug 29, 2018
Messages
11
Hi.

I have a spreadsheet where cell D26 is populated with 2 outcomes “workable” and “non-workable” as the result of a vlookup against 2 other cells.

I want to hide rows 27, 29, 35, 37, 38, 39, 56, 57, 59, 60, 61, 63, 65, 71, 78, 79, 80, 81, 82, 83, 84 and 86 If workable is populated, and leave as is if blank or “non-workable” populated.

Can you help please?

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
try this, ad inn your rows numbers as needed.

Code:
  If [D26].Value = "workable" Then Range("27:27,29:29,35:35,37:39").EntireRow.Hidden = True

hth,

Ross
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,871
Members
449,054
Latest member
juliecooper255

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