+ Reply to Thread
Results 1 to 10 of 10

IF and VLOOKUP FORMULA

  1. #1
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    215

    IF and VLOOKUP FORMULA

    I would be grateful if someone could help me combine an IF and LOOKUP formula in the attached spreasheet.

    I have written in CELLS in N4 and N5 what I need to calculate Permanent and Contractor costs

    Thanks a million
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: IF and VLOOKUP FORMULA

    hi Excel-Access, try:
    =IF(E4="permanant",VLOOKUP(H4,$A$35:$B$42,2,0),I4*J4)*M4

    ps: should be "permanent" though

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF and VLOOKUP FORMULA

    HI Excel-Access,

    Use below formula:-

    =IF($E4="Permanant",VLOOKUP($H4,$A$35:$B$46,2,0)*$M4,$I4*$J4*$M4)
    see attached:-

    Regards,
    DILIPandey


    <click on below 'star' if this helps>
    Attached Files Attached Files
    Last edited by dilipandey; 12-07-2012 at 10:30 AM. Reason: formula & workbook revised :)
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: IF and VLOOKUP FORMULA

    formula for fte.xlsx

    Beat me to it

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF and VLOOKUP FORMULA

    =IF(E4="Permanant",INDEX($B$35:$B$42,MATCH(H4,$A$35:$A$42,0)))*M4
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: IF and VLOOKUP FORMULA

    @dilipandey
    I dont know if that would work as there are 3 options...

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF and VLOOKUP FORMULA

    @LegendRubber

    yeah... realised after posting.. now corrected

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    215

    Re: IF and VLOOKUP FORMULA

    Thank you for this.

    I do need the formula to be modified slightly to say that if E4 - Contractor, then it should pick a different formula IF E5 = CONTRACTOR, TAKE I5 MULTIPLY BY J5, MULTIPLY BY M5

    Currently N5 formula is wrong. Can you help?

  9. #9
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    215

    Re: IF and VLOOKUP FORMULA

    Thank you very to all who have responded - most grateful.

    The formula is not correct

    I do need the formula to be modified slightly to say that if E4 - Contractor, then it should pick a different formula IF E5 = CONTRACTOR, TAKE I5 MULTIPLY BY J5, MULTIPLY BY M5

    Currently N5 formula is wrong. Can you help?

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF and VLOOKUP FORMULA

    Adding on to Fotis' formula

    =IF(E4="Permanant",INDEX($B$35:$B$42,MATCH(H4,$A$35:$A$42,0))*M4,IF(E4="Contractor",I4*J4*M4,""))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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