+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting based on value of another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-12-2009
    Location
    Southampton, England
    MS-Off Ver
    Office 2010
    Posts
    9

    Conditional Formatting based on value of another cell

    I have one column which I want to Conditional Format to traffic light colours based on the value of another cell.

    I've no problem with <= or >= a certain value - but I want to pick up values between 2 numbers and can't find a formula that works i.e. I want to format any values between 0 and 0.51 as amber/orange - I've tried:

    =AND(M6>"0.1",M6<"0.51")

    but it doesn't work.

    Any ideas?

    Many thanks in advance.

    Paul

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting based on value of another cell

    Leave out the " marks

    =AND(M6>"0.1",M6<"0.51") You're comparing M6 with text.

    =AND(M6>0.1,M6<0.51) now M6 is compared with numbers

    try it and get back if you still have problems.

    cheers

  3. #3
    Registered User
    Join Date
    11-12-2009
    Location
    Southampton, England
    MS-Off Ver
    Office 2010
    Posts
    9

    Re: Conditional Formatting based on value of another cell

    Perfect - thanks Teylyn!

+ 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