Results 1 to 7 of 7

Macro to loop through column, if blank blank cells then hide rows

Threaded View

stein7 Macro to loop through column,... 05-23-2019, 10:11 PM
Marc L Hi ! Try this ‼ 05-24-2019, 04:11 AM
stein7 Thank you for your reply... 05-24-2019, 08:24 AM
stein7 Re: Hi ! Try this ‼ 05-25-2019, 01:06 AM
Marc L Try this ! 05-25-2019, 04:43 AM
stein7 Re: Try this ! 05-25-2019, 11:26 AM
Marc L Re: Macro to loop through... 05-25-2019, 01:24 PM
  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    Netherlands
    MS-Off Ver
    Office 13
    Posts
    30

    Macro to loop through column, if blank blank cells then hide rows

    Hi all.

    I am trying to get a macro to automatically hide-rows based on if a condition is met.

    Capture.JPG

    I have severale tables where there are formulas outputing summary statistics for People. The spreadsheet is sample as it had sensitive info, each Person in Col C, will have a value shown in Col F after BUY or SELL, but if the person did nothing it would be blank in either of those fields. I would like a macro to go down the column hiding those people that have empty values for either Buy/Sell, as these People have nothing do with the current statistics we are comparing since they are not involved.

    i.e. John can either have a value in F10 or F11, or none at all, if there is none at all I want F10/F11 rows hidden. Next, macro would look at Patrick in F12/F13 if there is no value in any of those rows then hide, if there is indeed a value in any of those cells go to the next person Mike and check F14/F15 for values, and so on...

    If anyone out there has any idea how to do this I would be so thankful, would appreciate advise and how I should go about this.

    hope to hear from you!

    Stein
    Attached Files Attached Files
    Last edited by stein7; 05-23-2019 at 10:17 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] macro to remove rows if all cells from columns are blank except first column
    By tikistat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2017, 08:08 AM
  2. [SOLVED] Macro for Hide blank rows and Unhide the rows with cells
    By Neilesh Kumar in forum Excel General
    Replies: 4
    Last Post: 04-12-2017, 06:06 AM
  3. Hide rows for blank Cells when there is another blank cell below
    By bilich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2016, 08:29 PM
  4. Hide Rows for First Set of Consecutive Blank Cells in Column
    By pastuslm in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2015, 03:22 PM
  5. [SOLVED] Macro to fill blank cells in column A based on non-blank cells
    By ktalamantez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 02:47 PM
  6. Macro to delete blank rows if column I is blank for the row
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-10-2013, 03:01 PM
  7. [SOLVED] Hide any rows 5 through 16 in which column H is blank
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 04:30 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