+ Reply to Thread
Results 1 to 9 of 9

Can I hide these based on other cells value?

  1. #1
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Can I hide these based on other cells value?

    So I got this sheet - normally it would ofcourse hold 53 weeks.

    I need 20 slots for accounts on a running year - but it's a damn hassle that they are always visible - because im scroling up and down through them all day long.

    Is there some way I can make it that a given accountslot is hidden until I add a weeknumber in the DATAsheet? and then again, hide that slot when I close it bu entering a close-week.

    DATASHEET.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can I hide these based on other cells value?

    Hi,

    What's the overall aim of this workbook?
    By that I don't mean how does the current design work but what information do you want to capture and what result do you want.

    It strikes me that the existing design may not be the most efficient way of doing what you want to do but it's difficult to comment without knowing the end goal and what you start with or add and when.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Can I hide these based on other cells value?

    Maybe you could put the week number in an adjacent column (e.g. put 1 in J1 and copy down to J50, then =J1+1 in J51 and copy this down to the bottom), and then apply autofilter to column J to select the week you are interested in.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Can I hide these based on other cells value?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    What's the overall aim of this workbook?
    By that I don't mean how does the current design work but what information do you want to capture and what result do you want.

    It strikes me that the existing design may not be the most efficient way of doing what you want to do but it's difficult to comment without knowing the end goal and what you start with or add and when.
    I'm dividing sheets into months after I get the jan->feb

    Trying to get a months total, based of days.


    Heres an updated version, final will, ofcourse have all months.

    DATASHEET.xlsx


    Quote Originally Posted by Pete_UK View Post
    Maybe you could put the week number in an adjacent column (e.g. put 1 in J1 and copy down to J50, then =J1+1 in J51 and copy this down to the bottom), and then apply autofilter to column J to select the week you are interested in.

    Hope this helps.

    Pete
    That's not really what I'm trying to do at all.

    The problem is, I have 20 slots available x2 - thats 40 rows in each week, but there's no need for them to be visible if the row doesnt have an account present.
    So if no account is in DATA, the row needs to be hidden.
    Last edited by horsefish01; 01-01-2016 at 10:17 AM.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Can I hide these based on other cells value?

    I think it would be better for you to re-organise your data layout and have the days and weeks going across the sheet, so it wouldn't be a big issue that some of the accounts are missing.

    Hope this helps.

    Pete

  6. #6
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Can I hide these based on other cells value?

    So, only in the DataV?

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Can I hide these based on other cells value?

    No, in the Weeks sheet.

    Pete

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can I hide these based on other cells value?

    Quote Originally Posted by Hansemand View Post
    I'm dividing sheets into months after I get the jan->feb

    Trying to get a months total, based of days.


    Heres an updated version, final will, ofcourse have all months.


    I'm dividing sheets into months after I get the jan->feb

    Trying to get a months total, based of days.

    Hi,

    I return to my original point. You're telling us what you do now but not what the essence of your requirement is. For instance do you really want separate monthly sheets all the time or is the essential to be able to see any monthly sheet whenever you wish at the click of a button?

    I believe you'e making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it afterwards.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So before you get too far with this I'd create a single sheet database that contains the following columns

    Date
    Account ID *
    Colour i.e. Green/Yellow *
    Value

    The * values could be Validation drop down cells from which you could pick values. The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.

  9. #9
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307
    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    I return to my original point. You're telling us what you do now but not what the essence of your requirement is. For instance do you really want separate monthly sheets all the time or is the essential to be able to see any monthly sheet whenever you wish at the click of a button?

    I believe you'e making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it afterwards.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So before you get too far with this I'd create a single sheet database that contains the following columns

    Date
    Account ID *
    Colour i.e. Green/Yellow *
    Value

    The * values could be Validation drop down cells from which you could pick values. The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.
    Thanks so much for a great response. I've spent hours now thinking about how to reconfigure it - and I cant solve it.

    The Thing is, im filling in all the accounts daily. I need them to be visible - hence the look in the updated upload. I need them to be easy to read in seperat days, so making one big row of data wont really work I think

+ 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. Hide a Row Based on a Cells Value
    By psnow in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-30-2014, 10:28 AM
  2. hide certain cells based on value
    By jamied2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2014, 04:00 PM
  3. Hide Cells Based on a Value
    By schumanp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 06:54 PM
  4. [SOLVED] Hide cells based on value
    By boll55 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-28-2012, 02:29 AM
  5. Hide Chart based on a Cells Value
    By hawkinsr86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2012, 09:32 AM
  6. Hide Column based on value in one of it's row cells
    By hines57 in forum Excel General
    Replies: 7
    Last Post: 02-29-2012, 05:32 AM
  7. Macro to hide cells based on a value from another
    By garveyj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2009, 07:09 PM

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