+ Reply to Thread
Results 1 to 7 of 7

Use VLOOKUP and conditional formatting?

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Los Angeles
    MS-Off Ver
    17
    Posts
    2

    Use VLOOKUP and conditional formatting?

    Hello,

    I am new to the forum and would describe myself as a moderately-knowledgeable Excel user. Here's what I need to accomplish:

    I have two data sets, one is my top-100 SKUs, and the other is my backorder report. What I want to do is color-code the cells on the BO report that correspond to my top-100.

    Help?

    Thank you in advance!

  2. #2
    Registered User
    Join Date
    02-14-2017
    Location
    Hosle, Norway
    MS-Off Ver
    2013, 365, 2016
    Posts
    35

    Re: Use VLOOKUP and conditional formatting?

    Hi Bow to The Robots,

    I might have a solution for that. Here is how:

    1. Use a vlookup in the rearmost column of the BO report and make it return 1 if the item is on the top 100 list and nothing if the item is not on the list. Hide the column so your sheet will look better.

    2. Use conditional formatting to format the cells in the rows that has 1 in the hidden column.

    I write in norwegian, but I've tried to translate the vlookup-code below.

    Please Login or Register  to view this content.
    The conditional formatting is defined by a formula.

    Please Login or Register  to view this content.
    You might have to edit the rule in order to get rid of $ signs and "" signs.
    Last edited by Tbez; 02-14-2017 at 07:16 PM. Reason: I forgot to translate USANN to FALSE

  3. #3
    Registered User
    Join Date
    02-14-2017
    Location
    Los Angeles
    MS-Off Ver
    17
    Posts
    2

    Re: Use VLOOKUP and conditional formatting?

    Quote Originally Posted by Tbez View Post
    Hi Bow to The Robots,

    I might have a solution for that. Here is how:

    1. Use a vlookup in the rearmost column of the BO report and make it return 1 if the item is on the top 100 list and nothing if the item is not on the list. Hide the column so your sheet will look better.

    2. Use conditional formatting to format the cells in the rows that has 1 in the hidden column.

    I write in norwegian, but I've tried to translate the vlookup-code below.

    Please Login or Register  to view this content.
    The conditional formatting is defined by a formula.

    Please Login or Register  to view this content.
    You might have to edit the rule in order to get rid of $ signs and "" signs.
    Thanks, I'll try it!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Use VLOOKUP and conditional formatting?

    An easier way...
    use "Use Formula"

    =vlookup(B1,top-10-list-range,1,0)
    where B1 is a cell in your BO list

    format fill as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-14-2017
    Location
    Hosle, Norway
    MS-Off Ver
    2013, 365, 2016
    Posts
    35

    Re: Use VLOOKUP and conditional formatting?

    Hi FDibbins. Are you saying you can use vlookup directly in the conditional formatting window?

    If that is so, Excel just got even better I can't wait to try it out

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Use VLOOKUP and conditional formatting?

    Quote Originally Posted by Tbez View Post
    Hi FDibbins. Are you saying you can use vlookup directly in the conditional formatting window?

    If that is so, Excel just got even better I can't wait to try it out
    It will not return a value for you, if thats what you mean.

    CF and DV work only on TRUE/FALSE (1/0) answers, so you only need to structure the rule formula to return those

  7. #7
    Registered User
    Join Date
    02-14-2017
    Location
    Hosle, Norway
    MS-Off Ver
    2013, 365, 2016
    Posts
    35

    Re: Use VLOOKUP and conditional formatting?

    Thx FDibbins.

    I tried to help, but ended up being the one learning new stuff

    I hope you are getting this too Bow to The robots.

    I attached an example with the vlookup in the conditional formatting rule.

    Idk if I got this right, but I wrote the following formula

    Please Login or Register  to view this content.
    Worked like a charm.

+ 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. Conditional Formatting with Vlookup
    By kgkgkg9009 in forum Excel General
    Replies: 3
    Last Post: 09-16-2016, 07:03 PM
  2. [SOLVED] Conditional Formatting with OR and VLOOKUP
    By AdamDShearer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2016, 05:34 PM
  3. [SOLVED] Conditional Formatting using VLOOKUP
    By Knawl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-07-2014, 12:46 PM
  4. [SOLVED] VLOOKUP And Conditional Formatting
    By sigmundo76 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-10-2013, 01:01 AM
  5. Excel 2007 : conditional formatting after VLOOKUP value
    By Tino XXL in forum Excel General
    Replies: 3
    Last Post: 01-28-2011, 06:32 AM
  6. Conditional formatting using VLOOKUP
    By barongreenback in forum Excel General
    Replies: 3
    Last Post: 07-26-2010, 07:43 AM
  7. IF and VLOOKUP conditional formatting
    By penfold in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2008, 07: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