+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting based on Colour Priority

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    27

    Conditional Formatting based on Colour Priority

    Hi all,

    I was wondering if it was possible to prioritise colours, or at least text, to take the lowest (or most critical/important) value if it appears in a row 1st, before moving up to the next tier and checking for that in each row and so on.

    In the attached spreadsheet I've made an example using Supermarket Store Stock & Store Locations. There is a key in the spreadsheet to explain the colouration, however a simple explanation is that if a store is marked as 'Green' then no stock is required - 'Yellow' would mean possible re-stock required while 'Red' is critical re-stock required.

    What I would like the forumla to do, if possible, is first check the row for any Reds - if found, the 'Overall Stock Status' field would be Red. If no Reds were found, then it would check for Yellows in that row - again, if even one Yellow was found then the Overall Stock Status would be Yellow, and so on.

    If anyone could help me out with this I'd really appreciate it - please let me know if you need further clarification.

    Many thanks,

    Tom
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Conditional Formatting based on Colour Priority

    Hello
    Hope I've understood you correctly and if so, select cells H3 down to H9 and apply three conditional format formulas in the order of Red; Yellow; and Green. For example for 'Red':

    Please Login or Register  to view this content.
    Then apply for the other colours, changing 'Red' to 'Yellow' etc.. in the above formula. As I said, make sure in the Conditional Formatting Rules Manager they are in the correct order.

    Hope this helps.
    DBY

  3. #3
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Conditional Formatting based on Colour Priority

    Attachment 255790

    i.e, if in the range there is any entry red then the result is red, next level is if in the range there is any entry Yellow then result is Yellow and none of condition matches then result is green.

    Below is formula I have used
    =IF(COUNTIF(B3:G3,"Red") >= 1, "Red",IF(COUNTIF(B3:G3,"Yellow") >= 1,"Yellow","Green"))

    _________________________________________________________________________________________

    if you feel this has helped you, please add me to reputation.

  4. #4
    Registered User
    Join Date
    06-04-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Conditional Formatting based on Colour Priority

    Thank you both very much for your help - both methods work perfectly.

    Very much appreciated!

+ 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 upon another cells colour
    By bellevue in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2012, 04:27 AM
  2. Conditional Formatting - Set colour based on date past
    By jdm3098 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2011, 10:41 AM
  3. conditional formatting based on cell colour
    By nervous_pilchard in forum Excel General
    Replies: 0
    Last Post: 07-12-2011, 05:29 AM
  4. Replies: 3
    Last Post: 01-18-2011, 10:31 AM
  5. Replies: 5
    Last Post: 10-03-2009, 04:31 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