+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting - 2 sheets using Vlookup or Index/Match or SumProduct?

  1. #1
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Conditional Formatting - 2 sheets using Vlookup or Index/Match or SumProduct?

    I'm working with Excel 2010. I have two sheets. I have a value
    in column D on Sheet1. I need to look up that value in Sheet2, column
    A. If that value is there on Sheet2, I need to look at the offset
    value in that row that is in column C (still on Sheet2). IF that
    value is 'Need', then I need the color of the cell on Sheet1 to change
    to Red. I hope that's clear enough.

    So, basically it would be a VLookup with an Offset after it finds the
    value. Here are a couple things that I've already tried that haven't worked:

    I first tried this:

    =Vlookup($D2,NamedRange,4,False)="Need"
    (where D2 is on Sheet1, 'NamedRange' is on Sheet2 and is 4 columns
    wide and 'Need' may be in the 4th column)

    I also tried this:

    =INDEX(Sheet1!$D:$D, MATCH($D$2,Sheet2!$A:$A))="NEED"
    (although, I realize the Match doesn't include Column D where the
    'Need' value would be)

    And I tried this too:

    =VLOOKUP(D2,EventDescription,MATCH("Need",$D$D,0),FALSE)

    I believe there is some combination of Vlookup, or Index/Match or maybe even SumProduct that
    will do this, but I've just not been able to make the combination. I'd
    appreciate any help with this. Thanks!
    Last edited by JBeaucaire; 01-10-2016 at 01:28 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting - 2 sheets using Vlookup or Index/Match or SumProduct?

    Your first formula should work.

    When you put that same formula in a cell, do you see the TRUE/FALSE result? Once you get your formula doing that in a cell, you can transfer it into a CF rule.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Conditional Formatting - 2 sheets using Vlookup or Index/Match or SumProduct?

    Yes, it should be OK. I mocked it up for you and used ths:

    =VLOOKUP($D$2,Sheet2!$A$1:$C$20,3,FALSE)="Need"

    works fine...

    Hang on though... In one place you talk about "Need" being in column C and in another about it being in the fourth column (i.e. D). Which is it??
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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: 1
    Last Post: 06-18-2015, 08:45 AM
  2. Conditional formatting using Index/Match
    By sj123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2014, 03:19 PM
  3. [SOLVED] vlookup with multiple criteria (SUMPRODUCT or index/match question)
    By justinhampton81 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2013, 11:56 PM
  4. [SOLVED] Conditional formatting based on VLOOKUP/INDEX:MATCH
    By strud in forum Excel General
    Replies: 2
    Last Post: 06-13-2013, 07:02 AM
  5. Conditional Formatting with INDEX/MATCH
    By Shanster695 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2013, 02:39 PM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. Sumproduct, vlookup, index match function
    By jrammb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2010, 04: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