+ Reply to Thread
Results 1 to 6 of 6

Conditonal Formatting Question.

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    Harrisonburg, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditonal Formatting Question.

    Hello!

    I've attached an example of a sheet similar to what I'm actually working on and here's what I'm trying to do...


    In Cells D2, F2, H2, J2, etc you will see a serial number such as "001A"

    I want to conditionally format these cells to either green or red.

    For D2 I want to turn the cell Red IF(SUM(D4:D56)<SUM($B$4:$B$56))

    Vise Versa, I want D2 to turn Green IF(SUM(D4:D56)>=SUM($B$4:$B$56)



    Survival Kit List Sample.xlsx

    Any help is greatly appreciated. I've been strugglin with this for a couple hours now :/ Just can't seem to get it right....

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Conditonal Formatting Question.

    Format D2 as Green
    Just use that criteria:
    =SUM(D4:D56)<SUM($B$4:$B$56)
    Format as Red.
    Quang PT

  3. #3
    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: Conditonal Formatting Question.

    Your formula works ok in Conditional formatting rules without IF in front of it.

    =SUM(D4:D56)<SUM($B$4:$B$56)
    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.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Conditonal Formatting Question.

    Hi

    You can do this with Conditional Formatting...

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =SUM(D4:D56)<SUM($B$4:$B$56) format fill RED
    enter to get back to the CF window, repeat 3 and 4, change the formula
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-28-2013
    Location
    Harrisonburg, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Conditonal Formatting Question.

    thanks so much for the help. FINALLY got it to work!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Conditonal Formatting Question.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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