+ Reply to Thread
Results 1 to 5 of 5

conditional formating IF statement

  1. #1
    Registered User
    Join Date
    08-08-2007
    MS-Off Ver
    Excel 2010
    Posts
    53

    conditional formating IF statement

    Trying to get conditional formating on a column.
    if cell in column B starts with 5 and corresponding cell in column A is greater than 90 then make the cell in column B red
    i've got a normal formula down but its not usable for conditional formating.
    IF(AND(A1>90,--LEFT(B1)=5),"RR","")

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: conditional formating IF statement

    conditional format
    formula is
    =and(a1>90,--left(b1)=5)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-08-2007
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: conditional formating IF statement

    Thx! did the trick

  4. #4
    Registered User
    Join Date
    08-08-2007
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: conditional formating IF statement

    =and(a1>90,--left(b1)=5)

    regarding this formula for conditional formating. if i wanted to add an OR statement how would i go about it?

    if a1>90 & b1=5 then purple
    OR
    if a1>120 & b1=4 then purple.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: conditional formating IF statement

    =or(and(a1>90,--left(b1)=5),and(a1>120,--left(b1)=4))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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