Back to Browse

How to Hide Rows Based on Cell Values In Excel

85.2K views
Mar 20, 2023
5:47

*How to Hide Rows Based on Cell Values In Excel* Recommend WPS Office-Best FREE alternative to Microsoft Office, Download for Win & Mac & Mobile. Free Download link: https://bit.ly/3vBtYTA Excel is an excellent tool for organizing and analyzing data. It allows users to manage large amounts of information easily and efficiently. However, when working with a lot of data, it can be overwhelming to display everything on one sheet. Fortunately, Excel has several features that make it possible to hide certain rows based on the cell value. Chapters: 0:00 How to Hide Rows Based on Cell Values In Excel 0:36 How to Hide Rows Based on Cell Values Using Conditional Formatting 3:25 How to Hide Rows Based on Cell Values Using VBA In this advanced excel tutorial, we'll cover how to hide rows in Excel based on the cell value using Conditional Formatting and VBA code. Let’s start with the conditional formatting. *Step 1:* Select the range of cells that you want to Hide. In this case “Canada” Data From Row 13 to Row 19 *Step 2:* Click on the Home tab and select Conditional Formatting. *Step 3:* Click on New Rule. *Step 4:* In the New Formatting Rule dialog box, select "Use a formula to determine which cells to format." *Step 5:* In the "Format values where this formula is true" field, enter the following formula: =($B$3="USA") *Step 6:* Click on the Format button and select the Fill tab. *Step 7:* Choose a color that matches the background color of the worksheet to hide the rows (In this case cell data). *Step 8:* Click OK to close the Format Cells dialog box. *Note:* Now When you need to hide the USA data, select that range of Canada data in Step 1 and also Change the Formula in Step 5 to =($B$3="Canada") *Method 2:* This method involves using a macro to automatically hide or unhide rows based on the selected cell value. Here's how to do it: *Step 1:* Right Click on the worksheet name and click on View Code. *Step 2:* Write the VBA code. In the code window, paste the following code: *Here is the code Link:* https://www.patreon.com/posts/80240170 *Step 3:* Close the Visual Basic Editor *Step 4:* Save the workbook in .xlsm format This code tells Excel to check if a cell value in B3 has been changed. If it has, the macro will check the value of the cell and hide or unhide the rows based on the cell value. In this example, if the cell value is "USA", rows 13 to 19 will be hidden, and rows 5 to 11 will be unhidden. If the cell value is "Canada", the opposite will happen. If nothing is written in cell B3 everything will be visible. Hiding rows based on cell value can be useful when working with large amounts of data in Excel. This method allows you to display only the data that is relevant to your needs, making it easier to analyze and manage your information. By using VBA code, you can automate the process and make it even more efficient. There are several ways to hide rows in Excel based on cell value. The method you choose depends on your preference and familiarity with Excel's features. Whether you choose to use VBA code or conditional formatting, hiding rows based on cell value can be a useful tool in managing and analyzing large amounts of data. #hide #rows #excel #exceltutorial Thanks for watching. ---------------------------------------------------------------------------------------- Support the channel with as low as $5 https://www.patreon.com/excel10tutorial ---------------------------------------------------------------------------------------- Please subscribe to #excel10tutorial https://goo.gl/uL8fqQ Here goes the most recent video of the channel: https://bit.ly/2UngIwS Playlists: Excel Tutorial for Beginners: https://goo.gl/UDrDcA Intermediate Excel Tutorial: https://tinyurl.com/59a837py Advance Excel Tutorial: https://goo.gl/ExYy7v Excel Text Case Conversion Techniques: https://goo.gl/xiP3tv Combine Workbook & Worksheets: https://bit.ly/2Tpf7DB All About Comments in Excel: https://bit.ly/excelcomments Excel VBA Programming Course: http://bit.ly/excelvbacourse ChatGPT Excel Mastermind: https://tinyurl.com/46kn7tmd Social media: Facebook: https://facebook.com/excel10tutorial Twitter: https://twitter.com/excel10tutorial Blogger: https://excel10tutorial.blogspot.com Tumblr: https://excel10tutorial.tumblr.com Instagram: https://www.instagram.com/excel_10_tutorial Hubpages: https://hubpages.com/@excel10tutorial Quora: https://bit.ly/3bxB8JG Website: https://msexceltutorial.com/ *Become a member and enjoy exclusive perks while supporting the channel you love!* https://www.youtube.com/@Excel10tutorial/join

Download

0 formats

No download links available.

How to Hide Rows Based on Cell Values In Excel | NatokHD