+ Reply to Thread
Results 1 to 3 of 3

Lookup, rank, if x = 1 turn cell green

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    Salt Lake City, UT
    MS-Off Ver
    2010
    Posts
    11

    Lookup, rank, if x = 1 turn cell green

    I have two different workbooks that I am working out of. I want to take the data from workbook one, rank it, read it, and change the cell color based on what other cell values were.
    I have not worked in VBA before, but have in other languages a bit.
    I have not been able to get this to work just using functions in the cell either.
    I'm thinking my code should go somewhat as follows.

    Lookup by truck number
    Rank by date
    If lead = 1 copper = 1 sodium = 1 and potassium is between 0 and 6
    Put in date and turn cell green
    If lead = 2 copper = 2 sodium = 2 and potassium is between 6 and 10
    Put in date, high sample (copper = 2) and turn yellow
    If lead = 3 or higher copper = 3 or higher sodium = 3 or higher and potassium is 10 or higher
    Put in date, high sample (copper = 3) and turn red
    If water or anti-freeze > 0
    Put in date, high sample (anit-freeze) and turn red


    Any direction would be a great help!

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Lookup, rank, if x = 1 turn cell green

    I think you'll need to upload a mock workbook with before and after scenarios. Before and after scenarios will be very important. Make sure there is no personal information, anywhere in the workbook. If you do that someone will be able to help you!
    Click the * to give Rep to a post you like.

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    Salt Lake City, UT
    MS-Off Ver
    2010
    Posts
    11

    Re: Lookup, rank, if x = 1 turn cell green

    Trucks.xlsxOil Samples.xlsx
    So in the trucks sheet under oil sample one i want it to say 6/24/2015 copper and sodium and be highlighted yellow.

+ 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. Replies: 6
    Last Post: 03-10-2014, 11:47 PM
  2. How to turn certain cells green
    By sharkman1912 in forum Excel General
    Replies: 4
    Last Post: 07-13-2012, 06:12 PM
  3. Replies: 0
    Last Post: 04-10-2012, 11:56 AM
  4. turn red or green
    By devilonline in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 11:31 AM
  5. Replies: 4
    Last Post: 03-16-2008, 08:24 PM

Tags for this Thread

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