+ Reply to Thread
Results 1 to 8 of 8

Conditional fomatting based on adjacent cell value

  1. #1
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Conditional fomatting based on adjacent cell value

    Hi everyone,

    Can't seem to work this one out.

    I've a 3 columns:

    D8:D250
    E8:E250
    F8:F250

    What I want to do is do some conditional formatting where each cell in the column F will change depending on the adjacent cell values in columns D&E.

    For example:

    If the adjacent cell in say D = "A" and the adjacent cell in E = "Y" then the value in the cell in E needs to be 100
    If the adjacent cell in D = "B" and the adjacent cell in E = "Y" then the vale of the cell in E needs to be 50

    Than I want to apply that to every cell in column F

    Any ideas?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Conditional fomatting based on adjacent cell value

    if you want them in a single color until the above criteria are fulfilled then: =OR(AND(D8="A", E8="Y"),AND(D8="B", E8="Y")) select the column and apply the CF rule.
    Click the * to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Re: Conditional fomatting based on adjacent cell value

    Hi,

    I don't want a colour I want it to return a value if the above is true

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Conditional fomatting based on adjacent cell value

    What I want to do is do some conditional formatting
    You said conditional formatting. The above formula is for conditional formatting. The bellow is for values:
    =IF(AND(D8="A", E8="Y"),100,if(AND(D8="B", E8="Y")),50,""))

  5. #5
    Registered User
    Join Date
    11-07-2019
    Location
    Nevada, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Conditional fomatting based on adjacent cell value

    I was hoping to find an answer here regarding multiple color formatting based on the value of an adjacent cell.
    I have a column with an IF statement (I2:I22) which returns values 1,4,7 or 2,5 or 3,6,8 and based on the return value I want to color the cell in the adjacent column (H) green, yellow, or red respectively.
    I wrote an OR statement in the CF and it works for that cell (H2), but if I try to drag down (H3:H22) it only looks back to the original cell(I2).
    I've tried copy and paste, format painter, and paste special without any luck.
    Any suggestions?

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,823

    Re: Conditional fomatting based on adjacent cell value

    Are these 2 different posts? You went from wanting conditional formatting, to not wanting conditional formatting (or a color), to wanting a color and now in different columns. Your uploaded file has nothing in columns I or H. You reference a CF you wrote, but there is no CF in the file you updated.

    When you create the CF, have the column of cells selected so it applies it to all cells.

    In the formula bar of the CF, try this:
    =OR(I2=3,I2=6,I2=8)

    and format Red.

    Continue with the other CFs.

    I think this is what you want. Let us know.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,359

    Re: Conditional fomatting based on adjacent cell value

    Quote Originally Posted by sbuice View Post
    I was hoping to find an answer here regarding multiple color formatting based on the value of an adjacent cell.
    I...
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    11-07-2019
    Location
    Nevada, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Conditional fomatting based on adjacent cell value

    My apologies for the confusion. I assumed since the answer I was looking for was the title of the thread it would be ok to post here. I will start a new thread in the future. Thanks.

+ 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. Conditional fomatting based on AND(), INDEX() and MATCH() function?
    By KForsman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2015, 06:04 PM
  2. Replies: 1
    Last Post: 04-05-2014, 03:07 AM
  3. Help with Conditional Formating based on adjacent cell not being blank
    By noplacelikehome in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2014, 05:47 PM
  4. Conditional Formatting based on Adjacent Cell
    By MacroPolo in forum Excel General
    Replies: 3
    Last Post: 06-23-2012, 01:41 AM
  5. conditional formating based on text in adjacent cell
    By buckshot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2011, 07:44 AM
  6. Conditional Formatting Based on Adjacent Cell
    By Yourgurlwantsme in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2010, 05:31 PM
  7. [SOLVED] How to do a conditional formatting based on an adjacent cell
    By Confused in forum Excel General
    Replies: 2
    Last Post: 01-10-2005, 06:06 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