Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

How to Hide and Unhide Rows base on cell values

0

I have a sheet set-up using vlookup.

Column 'E' has a constant in it, but I want to be able to hide the row if the vlookup returns blank cells.

The rows that I will want to hide has the vlookup formula in column H. If the vlookup formulas in Column H return nothing, then I want that row to be hidden. Please note that the constant in "E" will changed base on what the user types in, so rows will need to hide and unhide based on the criteira of the constant. 

Answer
Discuss

Discussion

Hi BCH and welcome to the Forum

Please edit your original question to clarify what the user types in and (prefereably) use the "Add files..." button to attach an Excel file with some anonymous test data (say about 20-30 rows).

Also, your problem might be similar to that in my recent Answer Result except zero value but filtering for blanks and/or #N/A errors from VLOOKUP.
John_Ru (rep: 6102) Aug 31, '21 at 6:33 am
Add to Discussion



Answer the Question

You must create an account to use the forum. Create an Account or Login