+ Reply to Thread
Results 1 to 2 of 2

Nested IF function

  1. #1
    Registered User
    Join Date
    01-23-2005
    Posts
    9

    Exclamation Nested IF function

    I need help nesting an IF function inside another IF function. Say I have four columns. Name(John), Status(FT), Yrs Employed(3), and Vacation Leave(?).
    Vacation Leave is based on the status, only FT employees qualify and the number of Years employed.
    17 days for full-time employees who have worked more than 5 years.
    12 days for FT employees who have worked more than 1 year, 7 days for FT employees who have worked for less than 1 year. 0 for everyone else. Somebody help me please.

  2. #2
    pinmaster
    Guest
    Hi
    Create a small table somewhere in your workbook with this format:
    Col(a) Col(B)
    0 7
    1 12
    5 17
    and name it say "data" (Insert/Name/Define) then use this formula in D2
    =IF(B2="FT",VLOOKUP(C2,data,2,1),"")
    or
    =IF(B2="FT",VLOOKUP(C2,data,2,1),0)

    Hope that helps!
    JG

+ 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