+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting, Vlookup or IF statement

  1. #1
    Registered User
    Join Date
    03-10-2018
    Location
    London
    MS-Off Ver
    2017
    Posts
    5

    Conditional formatting, Vlookup or IF statement

    Hi Guys, I've been stuck on something for a while, hoping somebody can help. I seem to have lost it but would really appreciate some help. I'll try to explain as best as I can.

    I have 2 sets of data on 2 separate tabs. For instance.

    Tab1: Name | InHere | Exempt | NotHere
    Tab2: Name | InHere| Exempt | NotHere

    InHere/Exempt/NotHere can either be 1 or 0, signifying the attendance.

    I filtered Tab1 with everybody who is NotHere (1=NotHere) back in 2017. In an attempt to move everybody from NotHere 1 to Inhere 1 or Exempt 1. Unfortunately only approx. 5% transpired.

    I now have data 2018 data on tab 2 which includes a load of other names + all the names in Tab1.
    I would simply like to check all those NotHere in tab 1 (NotHere=1 / Exempt=0 / InHere=0), which of them are now InHere or Exempt in Tab2 (NotHere=0 / Exempt=1 OR InHere=1) . And Highlight the ones that are still NotHere.

    I apologise if I am not good at explaining this, but I have tried as best as I could. Really would appreciate if somebody could help how to best run this logic.
    Happy to elaborate if need be.

    THanks so much in advance, Im using the latest version of excel
    Last edited by AliGW; 03-11-2018 at 06:11 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pleasee Help Me. Conditional formatting, Vlookup or IF statement

    Hi,

    Have you tried a CF along the lines of this.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It will return a TRUE if the vlookup can't find anything and a 1 or 0 depending on whether the value is he same or not.

    I couldn't follow where everything is so you may have to play around with it a bit.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-10-2018
    Location
    London
    MS-Off Ver
    2017
    Posts
    5

    Re: Pleasee Help Me. Conditional formatting, Vlookup or IF statement

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Have you tried a CF along the lines of this.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It will return a TRUE if the vlookup can't find anything and a 1 or 0 depending on whether the value is he same or not.

    I couldn't follow where everything is so you may have to play around with it a bit.
    First of all thank you for the prompt reply Richard. I've given that a crack several times, without much joy
    Let me elaborate and show you an example.
    So sheet 1 in 2017 and sheet 2 is 2018. Sheet 1 contains names 'Clients' who were either InHere / Exempt / NotHere.
    Sheet 2 contains the same purpose but includes names in 2017 as well as new names in 2018.

    I would like to check if those NotHere in 2017 (NotHere = 1) are either InHere or Exempt in 2018 (need to check if those NotHere = 1 in 2017 are either Exempt = 1 or InHere = 1 in 2018) and flag those that are in NotHere = 1 in 2018.

    Hope that makes some sense. I tried apply to CF you suggested, but as you can see it's giving all 'TRUE'.
    THanks again!



    image001.png
    image002.png
    image003.png

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pleasee Help Me. Conditional formatting, Vlookup or IF statement

    Hi,

    Would you upload the workbook, anonymised as necessary. It's always easier if we can see the request in context.

  5. #5
    Registered User
    Join Date
    03-10-2018
    Location
    London
    MS-Off Ver
    2017
    Posts
    5
    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Would you upload the workbook, anonymised as necessary. It's always easier if we can see the request in context.
    Sure, Im trying to attach it but its not allowing me at the moment. Is there another way? Email or private message maybe?

  6. #6
    Registered User
    Join Date
    03-10-2018
    Location
    London
    MS-Off Ver
    2017
    Posts
    5

    Re: Pleasee Help Me. Conditional formatting, Vlookup or IF statement

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Would you upload the workbook, anonymised as necessary. It's always easier if we can see the request in context.
    I think it is attached now Richard. Please could you kindly take a look.
    I've filtered sheet 2017 with NotHere = 1. All those ID's which were NotHere in 2017 I would like to check which of those are either InHere or Exempt in 2018.
    The ID's which have remained the same NotHere in 2017 and again NotHere in 2018 I would like to highlight too but not essential. (Client can often vary and own a different ID) So ID would be the unique identifier I guess.

    Thanks very much again Richard.

    Data.xlsx

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,862

    Re: Conditional formatting, Vlookup or IF statement

    On unfiltered data in 2017

    in F2

    =IF(SUMPRODUCT(('2018'!$C$2:$D$1000)*('2018'!$B$2:$B$1000=$B2)*($E$2:$E$1000=1)),"Yes","")

    copy down

    then filter on YES in F

  8. #8
    Registered User
    Join Date
    03-10-2018
    Location
    London
    MS-Off Ver
    2017
    Posts
    5

    Re: Conditional formatting, Vlookup or IF statement

    Quote Originally Posted by JohnTopley View Post
    On unfiltered data in 2017

    in F2

    =IF(SUMPRODUCT(('2018'!$C$2:$D$1000)*('2018'!$B$2:$B$1000=$B2)*($E$2:$E$1000=1)),"Yes","")

    copy down

    then filter on YES in F
    Thanks very very much John!! That worked a treat!! Super grateful.
    Thanks for your efforts too Richard. You guys have nailed it for me.

    Is there any links/tutortials that could direct me towards to help me understand this stuff?

+ 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 and the IF statement
    By Fester Bestertester in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2016, 02:49 PM
  2. Conditional Formatting with IF statement
    By Arpita_Excel in forum Excel General
    Replies: 2
    Last Post: 06-23-2015, 03:07 AM
  3. 'If' statement in Conditional Formatting
    By paperbucket in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2015, 02:04 PM
  4. [SOLVED] If statement in conditional formatting
    By kosherboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2014, 01:12 PM
  5. Conditional formatting using AND with a NOT statement
    By monty2008 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2014, 05:32 AM
  6. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  7. Conditional Formatting with an If statement
    By Shirley Munro in forum Excel General
    Replies: 3
    Last Post: 10-25-2007, 10:11 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