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
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

rpaulson

Well-known Member
Joined
Oct 4, 2007
Messages
1,107
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
 

Watch MrExcel Video

Forum statistics

Threads
1,109,385
Messages
5,528,396
Members
409,817
Latest member
JiNXX9500

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top