+ Reply to Thread
Results 1 to 9 of 9

Hide rows and conditional formatting

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Hide rows and conditional formatting

    I need to hide rows if this conditional formatting is true =OR(O13<>"",ISNUMBER(SEARCH("cancel",P13)))

  2. #2
    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
    48,213

    Re: Hide rows and conditional formatting

    As far as I know, you can't hide rows with Conditional Formatting.

    You could add a Helper column with that formula in it and then use Autofilter to hide the rows where the condition was true.

    Regards
    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


  3. #3
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Hide rows and conditional formatting

    OK. How about if Q7 equals to No, then hide the row.

  4. #4
    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
    48,213

    Re: Hide rows and conditional formatting

    No, sorry, there is no "hide row" format option available in Conditional Formatting. It doesn't matter what the formula is.

    Regards

  5. #5
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Hide rows and conditional formatting

    I don't think you understood: =OR(O13<>"",ISNUMBER(SEARCH("cancel",P13))) was part of conditional formatting.
    The entry in Q7 was not. ( It was regular formula not part of conditional formatting). Taking this under consideration, can I hide the cell if Q7 is no. I want to automate the spreadshet to the maxiumum.

  6. #6
    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
    48,213

    Re: Hide rows and conditional formatting

    Oh, OK then. Use Autofilter on column Q and select rows where the value is not equal to "no" without the quotes.

    Regards

  7. #7
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Hide rows and conditional formatting

    I don't want to use auto filter, that's not automation.

  8. #8
    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
    48,213

    Re: Hide rows and conditional formatting

    Do you want a VBA solution?

  9. #9
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Hide rows and conditional formatting

    Yes, if know what macro should look like I would greatly appreciate it. I have a lot of cells Q7-Q90. This is the formula I have inputted in these cells: =IF(OR(O7<>"",COUNT(SEARCH({"cancel"},P7))),"No","Yes"), so if condition meets, I want to hide rows.

    Help???
    Last edited by olga6542; 05-02-2011 at 06:32 PM.

+ 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