+ Reply to Thread
Results 1 to 7 of 7

Hiding rows based on condition

  1. #1
    Forum Contributor
    Join Date
    07-08-2022
    Location
    Baghdad
    MS-Off Ver
    365
    Posts
    145

    Hiding rows based on condition

    Is it possible to hide rows in excel 365 based on the content of a specific cell? I attached a test file to explain my question well.
    Attached Files Attached Files
    Last edited by ahmadjumaa80; 07-11-2022 at 03:29 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Hiding rows based on condition

    Looks like there is more to it than what you are asking.

    Perhaps you could explain your end result?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,571

    Re: Hiding rows based on condition

    To hide rows, other than manually, you would need VBA.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Hiding rows based on condition

    You could use FILTER to hide certain rows, but it means duplicating all the others, which might not be what you want.

    For example:

    =LET(x,FILTER(A2:B11,IF(B8<>"",IF(ROW(B2:B11)=ROW(B6),0,1)*IF(ROW(B2:B11)=ROW(B7),0,1),SEQUENCE(ROWS(B2:B11),1,1,1))),IF(x=0,"",x))

    Although as mentioned above it seems like there might be more to it, but the above might point you in the right direction.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,571

    Re: Hiding rows based on condition

    You could use FILTER to hide certain rows, …
    That's not really hiding rows, it's selectively copying cells/rows elsewhere.

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Hiding rows based on condition

    Yeah, but in some cases it might be the desired result. I agree that the most likely solution is VBA though.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,571

    Re: Hiding rows based on condition

    Yeah, but in some cases it might be the desired result.
    Agreed, so we wait the OP's verdict.

+ 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. [SOLVED] Hiding Rows based on Condition
    By Navee138 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2021, 08:36 AM
  2. [SOLVED] Hiding rows based on condition within another sheet
    By Impjegat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2013, 01:45 PM
  3. Hiding Excel rows on condition without using macro
    By deepakborse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2010, 08:52 AM
  4. Hiding Unhiding Rows based on Text condition
    By Winner_texas in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-11-2010, 11:54 AM
  5. Hiding a row based on condition
    By antonc in forum Excel General
    Replies: 1
    Last Post: 05-30-2008, 04:05 AM
  6. [SOLVED] Hiding rows on condition
    By Catherine Bond in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2006, 01:25 PM
  7. Hiding Column based on If Condition
    By asr in forum Excel General
    Replies: 2
    Last Post: 06-01-2005, 07:05 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