+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting using multiple sheets and search function in multiple rows & column

  1. #1
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Conditional formatting using multiple sheets and search function in multiple rows & column

    I've got some complicated conditional formatting to do. As I have software that adds data to one of the sheets I am only looking for a conditional formatting solution as to not brick the sheet for the future. Below I will explain whats on the sheet, what i'd like to have help with achieving and finally what I have thought about, tried and subsequently failed. To anybody reading this thanks.



    Here I will describe whats on the workbook. To better understand you can look at the example sheet I have attached.

    LogsThis is the sheet I am afraid of editing. Operations are added here. Column B shows what operator has performed an operation. Column D shows what equipment said operator used.

    EquipmentThis sheet I am not afraid of editing as long as additions are added from column S and beyond. Here is a list of equipment. Column A has the equipment identifier. Column R shows what the minimum driving license level that is required to use said equipment.

    OperatorsThis sheet I am not afraid of editing as long as additions are added from column J and beyond. Here is a list of operators. Column A has the ID of an operator. Column E shows what level license they have. Columns J-Q shows the license qualifications.



    Here I will describe what I want to get done.

    I want to add a conditional formatting which turns the cell red if the operator in question (column B) is not licensed to operate the equipment (column D). It is not as simple as performing a VLOOKUP on what the Operators license is and what the requirement for the equipment is. We need to keep in mind that a license might qualify you for several types of equipment.

    Example 1: In row 4 in the "Logs" sheet we have "Alfons" which operated "Hyster E". "Alfons" has an "A4" license (shown in the "Operators" sheet) and "Hyster E" requires a minimum of a "B2" license (shown in the "Equipment" sheet). Then in the "Logs" sheet I would want the cell B4 ("Alfons") to be filled red as he operated equipment outside of his license range.

    Example 2: In row 2 in the "Logs" sheet we have "Ashley" which operated "Hyster A". "Ashley" has a "B2" license (shown in the "Operators" sheet) and "Hyster A" requires a minimum of a "A3" license (shown in the "Equipment" sheet). Then in the "Logs" sheet I would want the cell B2 ("Ashley") to not be filled as she operated equipment within her license range. Although "Ashley" doesnt have an "A3" license but her "B2" license qualifies her for operating "A3" equipment.



    What have I tried?

    I have tried using VLOOKUP to find the required license for the equipment and then using a mix of HLOOKUP and VLOOKUP to find in the grid J-Q in the "Operators" sheet if the license is TRUE or FALSE. I couldnt make it work properly.



    If you have read this far thank you very much for spending the time reading this. I hope it has been clear enough to understand with the excel attachment.
    Attached Files Attached Files
    Last edited by Unlimited007; 05-30-2020 at 01:29 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Conditional formatting using multiple sheets and search function in multiple rows & co

    sheet criteria
    HTML Code: 
    Logs B4 CF =

    =Vlookup(Vlookup(B4,Operators!$A$2:$E$8,5,0),criteria!$A$1:$B$5,2,0)<=VLookup(Vlookup(D4,Equipment!$A$2:$R$8,18,0),criteria!$A$1:$B$5,2,0)

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Re: Conditional formatting using multiple sheets and search function in multiple rows & co

    Thanks again Oeldere, you're my hero. It worked wonders.

+ 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. [SOLVED] Formatting using multiple sheets and search function.
    By Unlimited007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-30-2020, 02:11 AM
  2. [SOLVED] conditional formatting based on other cell (over multiple Rows & Column)
    By pipsmultan in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-08-2015, 03:50 AM
  3. Replies: 7
    Last Post: 05-05-2015, 09:13 AM
  4. Search Function with multiple sheets
    By scotsman88 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2014, 11:22 AM
  5. [SOLVED] Search for multiple rows from multiple sheets by criteria & show result in userform
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2014, 11:29 AM
  6. Replies: 5
    Last Post: 12-28-2012, 02:06 PM
  7. Search for Multiple String Values on Multiple Sheets and Copy Rows to New Sheet
    By rrtikker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 12:21 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