+ Reply to Thread
Results 1 to 7 of 7

Use conditional formatting only on visible not hidden cells

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Vilnius, Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Use conditional formatting only on visible not hidden cells

    Hello friends, this time have another problem:

    there is a sheet containing tons of information. I need to highlight only the smallest number for each row. I can't just simply use conditional formatting TOP 1 solution, because every second cell in a row contains some serial numbers... I hide them and try to apply conditional formatting only on visible cells, but formatting still uses hidden cell info... How to ignore hidden cells?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use conditional formatting only on visible not hidden cells

    Something like this?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-11-2011
    Location
    Vilnius, Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: Use conditional formatting only on visible not hidden cells

    Before posting here I did a google search and found that link, but either it is not the solution or either I am soft in the head today (have a flu)..

    Simplest way I can think of:

    copy only visible cells to another sheet and do the job, then just manualy highlight smallest cell on original sheet.

    But I know that there is cooler and probably simplier solution.

    Shread sheet looks like this:

    A B C D
    5 1 7 6

    Where B and D are hidden so I need that only visible bottom cell would be highlighted. In this case A cell.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use conditional formatting only on visible not hidden cells

    Be sure that best way to describe your problem is to upload a sample workbook.

    Be sure that all sensitive data removed, showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that.

    To attach a small sample workbook.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    02-11-2011
    Location
    Vilnius, Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: Use conditional formatting only on visible not hidden cells

    OK please find attached simplified sheet.

    I need to highlight lowest (or highest) value per ROW. While ignoring information in hidden cells, because they also contain numbers.
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use conditional formatting only on visible not hidden cells

    If i understand correct, the hidden columns have different header than visibles. Perhaps you can use the headers as reference.

    This formula highlight with grey color only the empty cells of the visible columns..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Use conditional formatting only on visible not hidden cells

    It's difficult to use SUBTOTAL here as suggested in the link because SUBTOTAL only works to ignore hidden/filtered rows.....but you have hidden columns. As Fotis1991 says, you can use the fact that the columns that you want to use all have the same header, e.g. select the range D2:CR5 and then use this formula in conditional formatting

    =AND(D2<>"",COUNTIFS($D2:$CR2,"<"&D2,$D$1:$CR$1,"Tarifas")=0)

    set required format and that will highlight only the smallest value for each row in the Tarifas columns - this assumes that the other columns are hidden - you can have them visiable if you want but then you need to change the formula to this

    =AND(D2<>"",D$1="Tarifas",COUNTIFS($D2:$CR2,">"&D2,$D$1:$CR$1,"Tarifas")=0)

    To get the highest value just set another condition with the same formula but with < changed to >

    see attached - low values in yellow, high in red
    Attached Files Attached Files
    Last edited by daddylonglegs; 02-24-2014 at 08:33 AM.
    Audere est facere

+ 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. Replies: 4
    Last Post: 01-06-2014, 02:14 AM
  2. Making sheets visible or hidden based on value of a range of cells.
    By alzhander in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2012, 09:12 AM
  3. [SOLVED] can only copy/select visible cells w autofilter on &hidden columns, want to copy all cells
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2012, 02:12 AM
  4. VBA to select visible cells with some other cells that are hidden
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-09-2010, 11:40 PM
  5. Replies: 0
    Last Post: 09-27-2006, 02: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