+ Reply to Thread
Results 1 to 5 of 5

IF Functions, VLOOKUP?

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    IF Functions, VLOOKUP?

    Hi All!

    I have attached a copy of the spreadsheet i am working on. I need a formula that works as below to go into the difference column.

    Basically I need a formula to look at the two staff number columns and then if they are the same to look at the two FTE columns, if these are the same then the difference will be 0 if there are changes I would like to know what the change was whether a positive or a negative depending if the FTE is lower or higher than the previous month. In some cases staff numbers in the first staff number column A will not be in the staff number column C which is okay i just need to know once again the difference in the FTE.

    If a staff number in column A is no longer in staff number column C then the employee has probably resigned so if their FTE was 1 the difference will be -1.
    If a staff number in column C is now there and is not in column A then the employee is probably new so if their FTE is 1 the difference will be +1.

    I hope this makes sense!

    Help!

    Thanks

    FTE Formula Workbook.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: IF Functions, VLOOKUP?

    Not sure I fully understand what you want, but give this a try in E4, copied down...
    =D4-IFERROR(VLOOKUP(C4,$A$4:$B$1670,2,0),1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: IF Functions, VLOOKUP?

    Hiya,

    I think this mostly works but there were a couple of things i hope i have explained well enough?

    It does'nt work if there is nothing in cell B and there is something in cell D. If a new number appears in cell C that wasnt in cell A the FTE in cell D needs to appear in the difference.

    Also if there is information in the columns A & B and nothing in the columns C & D but the information in columns A & B has been picked up formula wise in a line number earlier then it is being picked up in the difference column as a negative but should be as it has been picked up prior. For example if you copied cells C1685:D1685 and pasted into cell A1689 the difference is -1 but this difference has already been picked up from cell A1667 so we have already recorded the was 0 difference between B & D and don't want to repeat that score but its possible this could occur.

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: IF Functions, VLOOKUP?

    It is possible for the A & B columns to have a longer listing of information in the cells than C & D columns so this is when that second issue would occur.

    Hope i make sense! Thanks for the help!

  5. #5
    Registered User
    Join Date
    02-06-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Unhappy Re: IF Functions, VLOOKUP?

    I have done some modification to try and explain what's not working, if any help available that would be amazing! Thanks
    Attached Files Attached Files

+ 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. [SOLVED] Vlookup with If Functions
    By vegobu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-01-2013, 09:59 PM
  2. Multiple IF Functions or VLOOKUP functions
    By yinka00000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2012, 11:29 PM
  3. vlookup functions within if functions.
    By sjhill60 in forum Excel General
    Replies: 1
    Last Post: 10-13-2011, 11:10 PM
  4. VLOOKUP and IF Functions?
    By laxsox in forum Excel General
    Replies: 3
    Last Post: 08-16-2011, 06:34 AM
  5. VLookup functions
    By bfis20 in forum Excel General
    Replies: 4
    Last Post: 07-31-2009, 05:33 PM

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