+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting - Based on Criteria

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Conditional Formatting - Based on Criteria

    My worksheet is attached. I have two sheets inside it, on the second sheet, I would like cells B2:B30 to shade based on the information entered in Sheet 1.

    Using the three criteria in column B of sheet 1, each has a number entered. This number will change however when someone edits that they want more emphasis on hitting than pitching and vice versa so I believe it needs to have a formula of some kind.

    As it stands now, cells B2:B15 should have a red background because they are hitting spots, cells B16:B24 should have a blue background because they are pitching spots and the remaining six cells should have a gray background because they are bench spots.

    Now if someone were to change the hitting number to 12 and the pitching number to 11 I would want those change to automatically take place in the shading on Sheet 2. So cells B2:B12 would now be red and cells B13:B24 would now be blue. Always have Hitting at the top, pitching in the middle and bench at the bottom.

    Any help would be greatly appreciated and thanks for your time!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Conditional Formatting - Based on Criteria

    grey: =COUNTIF(B$2:B2,">" & hitting+pitching)
    blue:=AND(COUNT(B$2:B2)>hitting,COUNT(B$2:B2)<=hitting+pitching)
    red:=COUNT(B$2:B2)<=hitting

    c3: named range "hitting"
    c4:named range "pitching"
    c5:named range "bench"
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Conditional Formatting - Based on Criteria

    Quote Originally Posted by protonLeah View Post
    grey: =COUNTIF(B$2:B2,">" & hitting+pitching)
    blue:=AND(COUNT(B$2:B2)>hitting,COUNT(B$2:B2)<=hitting+pitching)
    red:=COUNT(B$2:B2)<=hitting

    c3: named range "hitting"
    c4:named range "pitching"
    c5:named range "bench"
    Wonderful thank you!

+ 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] Conditional Formatting Based on Two Criteria (Using VBA)
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 07:19 PM
  2. [SOLVED] Conditional formatting based on two criteria
    By Brumbot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2013, 05:44 AM
  3. [SOLVED] Conditional Formatting based on 2 criteria
    By SantosJ in forum Excel General
    Replies: 2
    Last Post: 05-23-2012, 05:11 AM
  4. Using conditional formatting based on certain criteria
    By sophy_1402 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2011, 07:32 AM
  5. Conditional Formatting based on 2 Criteria
    By SteelDog in forum Excel General
    Replies: 3
    Last Post: 06-23-2008, 12:58 AM

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