+ Reply to Thread
Results 1 to 2 of 2

Using a VLOOKUP and IF statement inside an IF statement

  1. #1
    Registered User
    Join Date
    10-08-2011
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using a VLOOKUP and IF statement inside an IF statement

    I'm trying to use an if statement to do a vlookup to verify data on a different worksheet and then use another if statement to perform an equation based on the verification. Here is what I have tried and I get either #NA, #Name, or #Value errors. The reason for this is the separate overtime hours from regular hours only if the person is hourly, not salary. I'm trying the formula in the Thursday worksheet in the Overtime Hours column (BC).

    =if(vlookup("hourly", Employees,3,false),if(BB5>8,BB5-8),0)
    =if(vlookup("hourly", Employees,3,false),if(BB5>8,BB5-8,0)
    =if(vlookup(C3:C12,Employees,3,)="hourly",BB5-8,0)
    =if(BB5>8(vlookup("hourly",Employees,3,false), BB5-8,0)

    I've also tried all of these with "salaried" in the equation instead of "hourly". Any help would be greatly appreciated. I've been working on this for 2 days
    Attached Files Attached Files
    Last edited by Isis3; 10-11-2011 at 03:37 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,151

    Re: Using a VLOOKUP and IF statement inside an IF statement

    Maybe:

    =IF(VLOOKUP($A5,Employees,3,False)="hours",IF(BB5>8,BB5-8,0))


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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