+ Reply to Thread
Results 1 to 3 of 3

Need help to Colour Cell using IF Statements are True

  1. #1
    Registered User
    Join Date
    11-07-2021
    Location
    pakistan
    MS-Off Ver
    2022
    Posts
    7

    Need help to Colour Cell using IF Statements are True

    Hi,

    I am beginner in excel. Need help

    So how can i fill the cell with a different colour. Based on the input

    my input

    Example : If A5 = 1, D5 = 6 : Cell D5 Should get fill with Yellow
    If value changes A5 = 2, D5 = 6 : Cell D5 should remain white
    If A5 =3, D5 = 7, Cell D5 should be fill with RED colour

    I know the conditional format . but It only returns True and False.(not wokring)

    Capture.JPG

    Thanks
    Last edited by avarics; 03-29-2022 at 07:28 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    East Asia
    MS-Off Ver
    Office 365
    Posts
    311

    Re: Need help to Colour Cell using IF Statements are True

    Select Cell D5 then go to Home>Conditional Formatting>New Rule

    You then want to add these as new rules
    1) 'Use a formula to determine which cells to format' > enter the formula '=AND(A5=1, D5=6)' > Format the cell with Yellow Fill
    2) 'Use a formula to determine which cells to format' > enter the formula '=AND(A5=2, D5=6)' > Format the cell with White Fill
    3) 'Use a formula to determine which cells to format' > enter the formula '=AND(A5=3, D5=7)' > Format the cell with Red Fill
    <<< Please click * to thank valued contributors

  3. #3
    Registered User
    Join Date
    11-07-2021
    Location
    pakistan
    MS-Off Ver
    2022
    Posts
    7

    Re: Need help to Colour Cell using IF Statements are True

    Thanks. It was a long process. So I changed the Inital value of D5 = g and so on. So if the D5="g" it will be green. So on

+ 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] IF statements if the value is True it changes the cell colour?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  2. IF statements if the value is True it changes the cell colour?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 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