+ Reply to Thread
Results 1 to 5 of 5

Hide rows with 0 value in cell (temporary)

  1. #1
    Registered User
    Join Date
    04-25-2021
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    2

    Hide rows with 0 value in cell (temporary)

    Hello again gents,

    I have a work project which is way over my excel modest skills. I have a large list of products and some have values and some have 0 value for now. To sort out this list for more efficiency I'm looking to temporarily hide those until I need them, eventually with a button or something. Below you have the file.


    Capture.JPG


    The value in column "D" is based on what I insert in columns "B" (+ to value in D) and "C" (- to value in D) using this:

    Please Login or Register  to view this content.
    You can find the file below.

    Cheers.
    Attached Files Attached Files
    Last edited by cripopes; 04-25-2021 at 03:19 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Hide rows with 0 value in cell (temporary)

    What about a filter and unselect value 0 in column "D" ...?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Hide rows with 0 value in cell (temporary)

    Hi cripopes & welcome to the forum,

    Two questions
    1. If the value is zero then hide row - value in which column ? D or all (B,C,D) or anyone of (B,C,D) ?
    2. Is your above code working as needed ? It confusing, if I enter 5 in 'C' then 'D' becomes -5 & if I enter 5 in 'B' then 'D' become zero which makes sense until now, if I enter 5 again in 'C' then I end up with 5 in 'B', 5 in 'C' but -5 in 'D'

  4. #4
    Registered User
    Join Date
    04-25-2021
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    2

    Re: Hide rows with 0 value in cell (temporary)

    Quote Originally Posted by nankw83 View Post
    Hi cripopes & welcome to the forum,

    Two questions
    1. If the value is zero then hide row - value in which column ? D or all (B,C,D) or anyone of (B,C,D) ?
    2. Is your above code working as needed ? It confusing, if I enter 5 in 'C' then 'D' becomes -5 & if I enter 5 in 'B' then 'D' become zero which makes sense until now, if I enter 5 again in 'C' then I end up with 5 in 'B', 5 in 'C' but -5 in 'D'
    Yes.. so how this is meant to work.. column B is "how many pieces I produced/ day" - column C is "how many pieces I sold/ day" - column D is "how many pieces I have left at the end of the day". ( and repeat this every day, so basically I will leave column "D" untouched after I insert the initial stock which I have currently).

    However I managed to work out a solution to my hide/ unhide issue.

    I created 2 buttons - one for hide and one for unhide.

    Hide button -
    Please Login or Register  to view this content.
    Unhide button -
    Please Login or Register  to view this content.
    It might not look professional but it helps me organize better.

    Thoughts for improving this?
    Last edited by cripopes; 04-25-2021 at 03:03 PM.

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Hide rows with 0 value in cell (temporary)

    This is another method using AdvnacedFilter instead of looping through each cell/row
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to hide some rows based on a specific cell value whilst keeping all unused rows hidden
    By Consultant101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2021, 06:41 PM
  2. Hide Rows/Hide Columns Based on Value in Cell
    By brickwall823 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 02:42 PM
  3. Need Toggle Button to hide/unhide rows based on cell value in non concurrent rows
    By The Phoenix in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-13-2015, 10:49 AM
  4. Vlookup for multiple rows to create a temporary range?
    By soclose in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2015, 10:47 AM
  5. Temporary highlight row of active cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-18-2015, 08:01 AM
  6. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  7. Using check boxes to hide and un-hide rows with drop down lists within rows
    By Sparky_Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 07:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1