+ Reply to Thread
Results 1 to 5 of 5

Conditional Format Puzzle for me

  1. #1
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Conditional Format Puzzle for me

    I've hit a snag in trying to apply this conditional format that I'm not sure where I'm screwing up.

    Column E has different names "Bob", "Roy", "Tom" all selectable from a drop down box.

    Column P has a value just standard numbers, 5, 6, 7

    Each name has a different range to complete so Bob has to get between 5 and 10, Roy has to get between 4 and 8 and Tom has to get between7 and 11. However I want the cells in Column P to turn red if they are not between those numbers.

    I tried several things including having the default format for Column P be red and then add three conditional formats like this =AND(E6="Bob",P6>4,P6<11) then the format code would turn it black and of course I made a code for Roy and Tom with their values plugged in. However I can get it to work.

    Any Ideas where I am going wrong? Plus I'm adding this from $P$6:$P$7012 so it may be something I'm doing wrong there.


    Thank you for any help or advice

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Conditional Format Puzzle for me

    It would help if you attached a sample Excel workbook, so we can see exactly how your data is laid out.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Note that the Paperclip icon does not work.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Conditional Format Puzzle for me

    Sorry, here is a quick mock up. Again I would like it to turn red if it is not within that range for the person named in column E.


    Thank you for your assistance
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Conditional Format Puzzle for me

    I've added From and To values in columns U and V against each name, then highlighted the cells from P6 to P14 and clicked on Conditional Formatting | New Rule | Use a formula... , and then put this formula in the dialogue box:

    =AND(ISNUMBER(MATCH($E6,$T$5:$T$7,0)),$P6>=VLOOKUP($E6,$T$5:$V$7,2,0),$P6<=VLOOKUP($E6,$T$5:$V$7,3,0))

    Then I clicked on the Format button and chose a red Fill colour with a white bolded foreground colour (on Font tab), then clicked OK twice to exit the dialogue box.

    All you need to do is change the Applies to range when using CF | Manage Rules

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Conditional Format Puzzle for me

    Wonderful fix Pete, You saved me a lot of typing

+ 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: 7
    Last Post: 03-24-2015, 07:44 AM
  2. Replies: 3
    Last Post: 02-24-2015, 02:58 AM
  3. [SOLVED] Conditional formatting puzzle. Figure out two different criterions
    By mrjinx007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-07-2013, 07:28 AM
  4. Little formula puzzle I've come across
    By RpTheHotrod in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-11-2013, 12:57 PM
  5. Replies: 3
    Last Post: 05-15-2013, 12:16 AM
  6. Replies: 0
    Last Post: 05-20-2011, 02:33 PM
  7. Can you help!!!!! New Puzzle
    By Krefty in forum Excel General
    Replies: 0
    Last Post: 06-13-2005, 04: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