+ Reply to Thread
Results 1 to 8 of 8

Way to Hide/Unhide a column? Please Help.

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Way to Hide/Unhide a column? Please Help.

    Hello,

    So I have a spreadsheet that tracks status of jobs.
    My boss decided that he wants a column that appears/disappears based on if any jobs are late.
    So for instance in my attached sample workbook. We see that two jobs are late, so my boss would ideally like the following:
    • Cells F2 and F3 should display the number of days they are late as seen in the sample workbook.
    • The rest of the cells in that column should be blank.
    • When no jobs are late the column should be hidden.
    Unfortunately, I do not know of any way to hide/unhide a column via formula let alone how to have the column unhide and then run a formula.

    Any help would be appreciated thank you!!!

    Sample Workbook.xlsx

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: Way to Hide/Unhide a column? Please Help.

    For point 1 and 2, you may try this.....

    In F2
    Please Login or Register  to view this content.
    and copy down.

    For hiding the column if no jobs are late and unhide if any job is late, I think you need a VBA solution for that.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Re: Way to Hide/Unhide a column? Please Help.

    Sktneer-

    Thanks for the formula.
    Don't suppose you know any VBA? I know nothing about that.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: Way to Hide/Unhide a column? Please Help.

    Please find the attached sheet to see if this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Re: Way to Hide/Unhide a column? Please Help.

    Wow that will work great!

    How do I apply whatever you did to my actual workbook?

    Thanks!

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: Way to Hide/Unhide a column? Please Help.

    Press Alt+F11 to open VBA editor --> on the vBA editor --> from the project pane on the left side, double click on ThisWorkbook --> Paste the code given below in the opened code window --> Change the range reference in red as per your need --> Close VBA editor --> Save your workbook as Excel Macro-Enabled Workbook --> Done
    Please Login or Register  to view this content.
    Hope this helps.

  7. #7
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Re: Way to Hide/Unhide a column? Please Help.

    Thanks Sktneer!!!

    That worked great!

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: Way to Hide/Unhide a column? Please Help.

    You're welcome. Thanks for the feedback.

+ 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. High select Column A-I untill A coulumn has Specific Data
    By harsha_manjula in forum Excel General
    Replies: 0
    Last Post: 02-25-2013, 07:08 AM
  2. Identify a column of numbers from 'high' to 'low'
    By bccollin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2013, 11:11 PM
  3. Select certain numbers high and move them to another column (VBA code)
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-29-2011, 02:11 PM
  4. [SOLVED] How do I formulate a high price column
    By Lou New At Excel in forum Excel General
    Replies: 1
    Last Post: 04-17-2006, 08:35 PM
  5. [SOLVED] How do I unhide a column when format/column/unhide won't work
    By lincolnblaze in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2005, 11:45 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