+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting with nested VLOOKUP function?

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Conditional Formatting with nested VLOOKUP function?

    I've been asked to apply conditional formatting to a series of arrays (one for every month of the year).

    Each array is defined by a list of the same 10 wells on the left header column and each day of them month on the top header row.

    Currently, there are three conditional formatting rules applied to each cell within the array: color the cell gray if condition 1 is met, red if condition 2 is met and green if condition 3 is met.

    Currently, each of the 310 cells needs to be individually programmed with three conditional formatting rules to compare the look up the well ID and date then compare the conditions to another table where the three conditions are defined. I want to update it so I don't have to write 310 * 3 conditional formatting rules to complete each month's array.

    Anyone have any ideas?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting with nested VLOOKUP function?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Conditional Formatting with nested VLOOKUP function?

    I think I've uploaded a file, but this interface leaves a lot to be desired.

    Programming Test Case.xlsx

  4. #4
    Registered User
    Join Date
    01-15-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Conditional Formatting with nested VLOOKUP function?

    If you change the pull down menu options in the PW09-XXX tabs, it should change the colors of the months in the "2014 - Tables"
    tab. That is, with the exception of June, which is my test case.
    Last edited by Niedermee; 08-07-2014 at 07:07 PM.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting with nested VLOOKUP function?

    unfortunately i cant see any cf in your sheet at all
    but your first step would be really to use real dates formatted to show how you want rather than the text strings you have now on the separate sheets
    and the 1,2,3.... you have on the 2014 tables just makes everything easier to match
    but working with what you have
    you can do the first one in for jan 1 cell b3
    copy the format to 1 month for each month
    then open cf and edit the month name in the formula for each condition
    then you can copy the formats across the whole month
    Attached Files Attached Files
    Last edited by martindwilson; 08-08-2014 at 08:12 PM.

  6. #6
    Registered User
    Join Date
    01-15-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Thumbs up Re: Conditional Formatting with nested VLOOKUP function?

    I understand what your saying about formatting the dates, and agree. They way the original author has the dates all cut up, I figured I would replace the days of the month with the real date and simply customize the date format to reflect the day only. Your use of index and match works quite nicely. An associate taught me that one last year, but I've not used it since.

    Thanks for your help. It works wonderfully.

+ 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: 2
    Last Post: 04-03-2012, 08:51 AM
  2. Conditional Formatting with nested IFs
    By yousafkhan1976 in forum Excel General
    Replies: 4
    Last Post: 03-15-2011, 09:37 PM
  3. Conditional formatting nested IF/AND statement
    By ladygray in forum Excel General
    Replies: 13
    Last Post: 06-16-2010, 09:58 AM
  4. Conditional Formatting Nested IF's
    By Sleeper in forum Excel General
    Replies: 3
    Last Post: 09-16-2009, 04:46 PM
  5. [SOLVED] Nested functions in conditional formatting formulae
    By Joseph in forum Excel General
    Replies: 3
    Last Post: 10-20-2005, 07:05 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