+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP combined with if function

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP combined with if function

    Hello! I have 2 spreadsheets that I am working on that I need to use the same type of formula.

    in the First sheet I have a price list table set up
    in second sheet I have a customer list

    What I need to do is I need to find the fixed price.
    I was trying to use if and vlookup but I must be doing something wrong.

    If cell C2 is 2007 look up item in B2 in the pl (price list table) and enter contents of the cell*E2 or if C3 is 2008 same thing and 2009 same thing.

    Please help. I attached the sheet. Thanks for your help!
    Attached Files Attached Files
    Last edited by Tina B; 02-24-2009 at 10:28 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VLOOKUP combined with if function

    If I've understood

    CUSTOMER!D2:
    =VLOOKUP($B2,'Price list'!$A$1:$D$7,MATCH($C2,'Price list'!$A$1:$D$1,0),0)
    copy down

  3. #3
    Registered User
    Join Date
    01-30-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLOOKUP combined with if function

    WOW That was a quick response. Thanks so much for your help. Just one more thing. How would I add to that formula to multiply the result, by contents in cell E2 in the customer sheet?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP combined with if function

    Try:

    =INDEX(PL,MATCH(B2,'Price list'!$A$1:$A$7,0),MATCH(C2,'Price list'!$A$1:$D$1,0))
    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP combined with if function

    Just add *E2 to the end:

    =INDEX(PL,MATCH(B2,'Price list'!$A$1:$A$7,0),MATCH(C2,'Price list'!$A$1:$D$1,0))*E2

  6. #6
    Registered User
    Join Date
    01-30-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLOOKUP combined with if function

    You guys are amazing! Thanks for everything.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP combined with if function

    You are most welcome.

    Can you please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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