+ Reply to Thread
Results 1 to 6 of 6

Nested If with VLOOKUP's and AND function

  1. #1
    Biff
    Guest

    Re: Nested If with VLOOKUP's and AND function

    Hi!

    Try this:

    =IF(AND(VLOOKUP(E,A2:C11,2,0)=F5,VLOOKUP(E5,A2:C11,3,0)=G5),"No
    change","Change")

    Biff

    "GBO" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > I'm trying to compare from one month to the next if there have been any
    > salary changes for an employee. Three columns need to be checked; ID,
    > Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    > checks if the Base Sal has been changed or the Ben Sal has been
    > changed. If either has been changed then the field will display
    > "Salary Change", if not "No Change". I'm really close but it seems I
    > just can't get it to work. Thias is what I have thus far:
    >
    > This formual is based on the prvious months info in columns A (ID),B
    > (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    > G.
    >
    > IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    > Change","Salary Change")
    >
    > Any help would be much appreciated.
    >
    > Gerry
    >




  2. #2
    Biff
    Guest

    Re: Nested If with VLOOKUP's and AND function

    Hi!

    Try this:

    =IF(AND(VLOOKUP(E,A2:C11,2,0)=F5,VLOOKUP(E5,A2:C11,3,0)=G5),"No
    change","Change")

    Biff

    "GBO" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > I'm trying to compare from one month to the next if there have been any
    > salary changes for an employee. Three columns need to be checked; ID,
    > Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    > checks if the Base Sal has been changed or the Ben Sal has been
    > changed. If either has been changed then the field will display
    > "Salary Change", if not "No Change". I'm really close but it seems I
    > just can't get it to work. Thias is what I have thus far:
    >
    > This formual is based on the prvious months info in columns A (ID),B
    > (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    > G.
    >
    > IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    > Change","Salary Change")
    >
    > Any help would be much appreciated.
    >
    > Gerry
    >




  3. #3
    Biff
    Guest

    Re: Nested If with VLOOKUP's and AND function

    Hi!

    Try this:

    =IF(AND(VLOOKUP(E,A2:C11,2,0)=F5,VLOOKUP(E5,A2:C11,3,0)=G5),"No
    change","Change")

    Biff

    "GBO" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > I'm trying to compare from one month to the next if there have been any
    > salary changes for an employee. Three columns need to be checked; ID,
    > Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    > checks if the Base Sal has been changed or the Ben Sal has been
    > changed. If either has been changed then the field will display
    > "Salary Change", if not "No Change". I'm really close but it seems I
    > just can't get it to work. Thias is what I have thus far:
    >
    > This formual is based on the prvious months info in columns A (ID),B
    > (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    > G.
    >
    > IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    > Change","Salary Change")
    >
    > Any help would be much appreciated.
    >
    > Gerry
    >




  4. #4
    Biff
    Guest

    Re: Nested If with VLOOKUP's and AND function

    Hi!

    Try this:

    =IF(AND(VLOOKUP(E,A2:C11,2,0)=F5,VLOOKUP(E5,A2:C11,3,0)=G5),"No
    change","Change")

    Biff

    "GBO" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > I'm trying to compare from one month to the next if there have been any
    > salary changes for an employee. Three columns need to be checked; ID,
    > Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    > checks if the Base Sal has been changed or the Ben Sal has been
    > changed. If either has been changed then the field will display
    > "Salary Change", if not "No Change". I'm really close but it seems I
    > just can't get it to work. Thias is what I have thus far:
    >
    > This formual is based on the prvious months info in columns A (ID),B
    > (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    > G.
    >
    > IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    > Change","Salary Change")
    >
    > Any help would be much appreciated.
    >
    > Gerry
    >




  5. #5
    GBO
    Guest

    Nested If with VLOOKUP's and AND function

    Hi there,

    I'm trying to compare from one month to the next if there have been any
    salary changes for an employee. Three columns need to be checked; ID,
    Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    checks if the Base Sal has been changed or the Ben Sal has been
    changed. If either has been changed then the field will display
    "Salary Change", if not "No Change". I'm really close but it seems I
    just can't get it to work. Thias is what I have thus far:

    This formual is based on the prvious months info in columns A (ID),B
    (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    G.

    IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    Change","Salary Change")

    Any help would be much appreciated.

    Gerry


  6. #6
    Biff
    Guest

    Re: Nested If with VLOOKUP's and AND function

    Hi!

    Try this:

    =IF(AND(VLOOKUP(E,A2:C11,2,0)=F5,VLOOKUP(E5,A2:C11,3,0)=G5),"No
    change","Change")

    Biff

    "GBO" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > I'm trying to compare from one month to the next if there have been any
    > salary changes for an employee. Three columns need to be checked; ID,
    > Base Sal, and Ben Sal. Once the VLOOKUP finds the same ID, then it
    > checks if the Base Sal has been changed or the Ben Sal has been
    > changed. If either has been changed then the field will display
    > "Salary Change", if not "No Change". I'm really close but it seems I
    > just can't get it to work. Thias is what I have thus far:
    >
    > This formual is based on the prvious months info in columns A (ID),B
    > (Base Sal), anc C (Ben Sal), and this months info in columns E,F, and
    > G.
    >
    > IF(AND(ISNA(VLOOKUP(E5,A$2:C$11,2,FALSE))=F5,ISNA(VLOOKUP(E5,A$2:C$11,3,FALSE))=G5),"No
    > Change","Salary Change")
    >
    > Any help would be much appreciated.
    >
    > Gerry
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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