+ Reply to Thread
Results 1 to 7 of 7

Is it possible to unhide row based on cell content?

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    Is it possible to unhide row based on cell content?

    Hello!

    Im creating a balance sheet for my little company, and i was wondering if its possible to unhide a row based on a cells content?

    In Norway, you're allowed to use Excel for official financial statements if you don't have more than 300 annual transactions.

    Needless to say, displaying 200+ empty rows at any given time before the summary will only cause mousewheel fatigue

    I've already created lots of formula, and column A will autogenerate a transaction reference number as soon as you fill in the date in column B.

    What I want is for the next row to display (unhide) as soon as the previous row contains a value in column A. I.E, you fill in the transaction info in row 3, row 4 will automatically be unhidden.

    This way, I'll be able to hide 290 of the 300 content rows at the beginning of each year, and the sheet will expand on demand.

    Any help will be appreciated, even if it requires macros (though, i was hoping to avoid that for compatibility reasons).

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Is it possible to unhide row based on cell content?

    I guess macro is the only solution you have for this kind of request. Do you have a sample file that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Is it possible to unhide row based on cell content?

    That i do, check the attached item here
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Is it possible to unhide row based on cell content?

    Since you have already hidden the required rows at the beginning, this is easy. Just right click on the sheet where you need this functionality and paste this code. It will unhide as soon as a date is entered. I used column B, since column A automatically gets a value based on column B.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Is it possible to unhide row based on cell content?

    Okay, this is why I wanted to avoid macros, because I don't feel comfortable in how to add them
    Care to help me along? Or re-upload the sample file so i can reverse engineer it?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Is it possible to unhide row based on cell content?

    Its very simple. If you want to add the code to the 2012 sheet, just right click on it and copy and paste the above code into the blank screen on the right hand side. Then save your file and go back to your 2012 sheet. Just start entering data in the last visible row for e.g. row 32 and row 33 will be visible.

  7. #7
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Is it possible to unhide row based on cell content?

    Amazing! Thanks a lot mate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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