+ Reply to Thread
Results 1 to 4 of 4

Format cell based on adjacent cell / apply to column

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    25

    Format cell based on adjacent cell / apply to column

    Good day everyone, I am trying to apply color coding to cells within a column based on the content in the adjoining cell.

    Basically, if the cells under the header "Actual Runtime" are -3 of the value in the adjoining cell under the header "Sched Runtime" then the cell turns yellow.
    If the cells under the header "Actual Runtime" are +3 of the value in the adjoining cell under the header "Sched Runtime" then the cell turns Red.
    If the cells under the header "Actual Runtime" are within -3 - +3 of the value in the adjoining cell under the header "Sched Runtime" then the cell turns green.

    I was able to create this on a cell by cell basis. However, I have multiple workbooks, and I would like a more effective and efficent way to apply this formatting.

    I am attaching the workbook for clarification purposes

    Thank you in advance of any assistance you may offer.
    Attached Files Attached Files

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

    Re: Format cell based on adjacent cell / apply to column

    Select the Actual Runtime ranges starting from C6, then go to Home|Conditional Formatting, New Rule

    Use a formula to determine which cells to format, then enter formula:

    =C6=D6-3

    click Format, choose Yellow

    click Ok,

    Click New Rule, repeat above with

    =C6=D6+3 and Red

    repeat again with

    =AND(C6>D6-3,C6<D6+3) and Green
    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.

  3. #3
    Registered User
    Join Date
    09-15-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Format cell based on adjacent cell / apply to column

    Didn't work. Any other suggestions.

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

    Re: Format cell based on adjacent cell / apply to column

    Is this what you are looking for?
    Attached Files Attached Files

+ 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. Macro that will clear contents of cell based on format of text in adjacent cell
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2012, 01:56 AM
  2. [SOLVED] Apply Column Text as Named Range to Each Adjacent Cell
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2012, 04:34 PM
  3. Replies: 1
    Last Post: 04-26-2010, 04:53 AM
  4. Format cell based on adjacent cells values
    By the majestic ferny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2005, 02:35 PM
  5. Apply cell shading based on adjacent cells in EXCEL
    By garywr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2005, 09: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