+ Reply to Thread
Results 1 to 5 of 5

Skip Condition Formatting If Sum of Column Equals Zero

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    7

    Skip Condition Formatting If Sum of Column Equals Zero

    Hey Everyone,

    I'm running into a problem with trying to stop conditional formatting if there are no values in a column. If even one cell in the column has a value, I need the conditional formatting applied to all cells(blanks included). The column in question is column V.

    Original formula: =VLOOKUP(A5,'NF Distribution'!$A:$U,19,0)<>V5

    Modified formula: =IF(SUM(V5:V494)>0,VLOOKUP(A5,'NF Distribution'!$A:$U,19,0)<>V5,"")

    Attached is my excel file.

    Any help you could give me would be appreciated!

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Skip Condition Formatting If Sum of Column Equals Zero

    how about..
    select the range in Col V and apply CF rule
    =COUNTA($V$5:$V$494)>0 -- format color
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Skip Condition Formatting If Sum of Column Equals Zero

    Ace,

    It works, but not completely. If I add a value to Cell V29, it will only turn on the conditional formatting to all the cells above it(V5:V29). It completely ignores V30:V494, even though there are cells that should be highlighted red.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Skip Condition Formatting If Sum of Column Equals Zero

    Quick check..

    in the CF rule make sure you have the absolute refernces with V5:V494. It should read $V$5:$V$494 and not V5:V494

    See attached too

  5. #5
    Registered User
    Join Date
    08-21-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Skip Condition Formatting If Sum of Column Equals Zero

    Ace,

    This is exactly what I was looking for! Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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