+ Reply to Thread
Results 1 to 4 of 4

Nested IF Statement and VLookUp and Greater than

  1. #1
    Registered User
    Join Date
    11-21-2014
    Location
    London, England
    MS-Off Ver
    MS 2010
    Posts
    4

    Question Nested IF Statement and VLookUp and Greater than

    Hi, I have some data on people and the amount of holiday they've taken. I'm trying to create a vlookup which show's the names of those who have taken more than 12 days of holiday.

    The fomula I'm using doesn't work, it just pulls out random names from the data set

    =VLOOKUP(IF(H3>=15,"Reached 15 days",IF(H3=13,"2 days left",IF(H3<12,"Min 3 days"))),A3:A15,1,TRUE)

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Nested IF Statement and VLookUp and Greater than

    Are you familiar with pivot tables? A pivot table and filter seem to fit this need very well.

    Can you post a sample dataset?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    11-21-2014
    Location
    London, England
    MS-Off Ver
    MS 2010
    Posts
    4

    Re: Nested IF Statement and VLookUp and Greater than

    Hi Mike,

    Yes the original data is on a pivot table but i need to extrapolate this information onto another sheet. I need to be able to view on my dashboard those who are close to their total allotment for the year

    Here is a sample of my data

    Sample excel.PNG

    I've admended the fomula to this:

    =IF(GETPIVOTDATA("Total sick days",'Pivot Table data2'!$A3,"Employee","Alexander, Sam")>=5, 'Pivot Table data2'!A3,"")

    However when i drag the formula it just pulls everyone's name rather than just those who have used up 5 or more holidays.

    Thanks

  4. #4
    Registered User
    Join Date
    11-21-2014
    Location
    London, England
    MS-Off Ver
    MS 2010
    Posts
    4

    Re: Nested IF Statement and VLookUp and Greater than

    Hi Mike,

    Yes the original data is on a pivot table but i need to extrapolate this information onto another sheet. I need to be able to view on my dashboard those who are close to their total allotment for the year

    I've attached a screenshot of a sample of my data

    Sample excel.PNG

    I've admended the fomula to this:

    =IF(GETPIVOTDATA("Total sick days",'Pivot Table data2'!$A3,"Employee","Alexander, Sam")>=5, 'Pivot Table data2'!A3,"")

    However when i drag the formula it just pulls everyone's name rather than just those who have used up 5 or more holidays.

+ 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. IF statement with vlookup nested
    By libertine86 in forum Excel General
    Replies: 5
    Last Post: 08-16-2012, 02:49 PM
  2. [SOLVED] Nested If statement and Vlookup
    By bhavish524 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-20-2012, 10:42 AM
  3. nested if statement using vlookup
    By mdot218 in forum Excel General
    Replies: 2
    Last Post: 01-27-2012, 02:39 PM
  4. nested vlookup with if statement
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2009, 12:08 PM
  5. [SOLVED] Nested IF statement with VLOOKUP
    By James Hamilton in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 02:50 AM

Tags for this Thread

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