1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Colour cell depending on entry in another worksheet

Discussion in 'Business Applications' started by Moll45, Nov 3, 2014.

Thread Status:
Not open for further replies.
Advertisement
  1. Moll45

    Moll45 Thread Starter

    Joined:
    Jun 2, 2003
    Messages:
    94
    Hi everyone,

    I would really appreciate some help with this problem, I've been working on it for over a week now trying different things – and I,m no further advanced.

    I have 2 worksheets, 1 - Stock; 1 – Layout. Stock = Stock that is recorded on the sheet, this starts out as New and then progresses to either despatched or cancelled.

    What I would like to happen is that everytime a record of stock is entered/amended then the corresponding location cell (A001; Z020 etc.) in the “layout” worksheet is coloured to reflect the entry in the stock sheet i.e. new = green; despatched = orange or cancelled = red, but I've reached the stage where I can't even think straight.

    Can anyone help me please?

    Thanks,

    Moll
     

    Attached Files:

  2. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    64,910
    First Name:
    Wayne
    add three rules in conditional formatting

    =H3="new"
    =H3="despatched"
    =H3="cancelled"

    and apply to range
    H3:F???
    depending on the number of rows

    see attached
     

    Attached Files:

  3. Moll45

    Moll45 Thread Starter

    Joined:
    Jun 2, 2003
    Messages:
    94
    Thank you Wayne.

    I'm going to have a play about with this now - couldn't get the hang of setting up conditional formatting from scratch over two sheets for some reason - my old brain not what it was, but now I can dissect this and understand it better.

    thanks again Wayne ..... I love this site - help given so generously :eek:)
     
  4. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    64,910
    First Name:
    Wayne
    what version of excel - Conditional formatting does not work across 2 sheets in some versions

    if you wanted to highlight your Layout sheet
    then use a vlookup

    see attached with modification for Layout sheet to also be coloured
     

    Attached Files:

  5. Moll45

    Moll45 Thread Starter

    Joined:
    Jun 2, 2003
    Messages:
    94
    Hi Wayne,

    I'm using Excel 2013.

    The modified file is perfect - can you tell me what you did to achieve this as it's exactly what I want.

    Thank you so much !

    Moll:D
     
  6. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    64,910
    First Name:
    Wayne
    I used a formula for Conditional formatting
    =VLOOKUP(A1,Stock!$F$3:$J$200,3,FALSE)="new"

    and added new rules for the other conditions

    and applied to a range of
    =$A$1:$U$26

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>

    $A$1:$U$26


    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:


    =VLOOKUP(A1,Stock!$F$3:$J$200,3,FALSE)="new"


    Format… [Number, Font, Border, Fill] - Selected Green fill
    choose the format you would like to apply when the condition is true
    OK >> OK

    THEN repeated for a new rule for the other two conditions
     
  7. Moll45

    Moll45 Thread Starter

    Joined:
    Jun 2, 2003
    Messages:
    94
    Thanks for the explanation Wayne.... not saying I understand it now (!) but I know I will eventually.

    Thanks again,

    Moll :D
     
  8. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    64,910
    First Name:
    Wayne
    your welcome,

    if you have any questions , happy to go through again - any bit you dont understand
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1136641

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice