Auto Hide & Unhide Rows in Excel

Anonymous
2019-10-30T10:31:02+00:00

Hi, All.

I have to create an excel spreadsheet where the next 2 rows stay hidden if the answer is No or N/A or blank.

In the sample below:

* Column A with item number (1,2,3....) has a drop down list of ("Yes"or "No"or "N/A") in column C. I used Data Validation for this.

* Rows with no item number should stay hidden (rows 10,11,13,14,16&17) until "Yes" has been selected from the drop down list in column C.

* If the item in column C (C9) has no answer (or blank), rows 10 & 11 should stay hidden - I hide the rows manually for this purpose.

* Items with "No"or "N/A" has been selected from the drop down list in column C, the next 2 rows should stay hidden. Rows 16 & 17 should stay hidden in this sample.

* If "Yes" has been selected from the drop down list in column C, the content in column B for the next 2 rows (rows 13&14) will appear. 

* Column B has IF formula that auto populates if the answer is "Yes".

I will really appreciate your assistance on this.

Thank you in advance!

Regards,

Shaynne

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2019-11-18T05:25:20+00:00

    Hi, Hans.

    I tried to add another column (D) so that I can merge column B & C however, the content in the merged cell doesn't autofit. 

    How do I change the code you previously gave me to wrap the text?

    Thanks,

    Shaynne

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-10-30T13:15:30+00:00

    You're amazing, Hans!

    Thank you so much for your help.

    Kind Regards,

    Shaynne

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-10-30T12:58:23+00:00

    I got this error.

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more