+ Reply to Thread
Results 1 to 5 of 5

Vlookup in 2 different cells

  1. #1
    Registered User
    Join Date
    03-06-2017
    Location
    montreal
    MS-Off Ver
    2010
    Posts
    19

    Vlookup in 2 different cells

    Hi,
    im trying to do the following:

    i have sheet2 that has a pricelist with 3 colums A1, B1 and C1. A1 is the name, B1 is the price and C1 is an extra.

    on Sheet1 i have a dropdown list that picks up the a range of cells from colum A on sheet 2. Then i use Vlookup to pick the price from sheet2 associated to the item i pick on the drop down list.

    all this works fine except, cell C1 that has an extra price, i only want it to display it if i type yes in cell D1.
    how would i do that?

    I attached the file to have a better idea.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Vlookup in 2 different cells

    Try:

    =IF(D2="YES",IFERROR(VLOOKUP(A2,Sheet2!A2:C4,3,0),0),"")

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Vlookup in 2 different cells

    try
    =IF(D2="yes",IFERROR(VLOOKUP(A2,Sheet2!A2:C4,3,0),0),"")

    in C2
    or if you want a zero
    =IF(D2="yes",IFERROR(VLOOKUP(A2,Sheet2!A2:C4,3,0),0),0)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    03-06-2017
    Location
    montreal
    MS-Off Ver
    2010
    Posts
    19

    Re: Vlookup in 2 different cells

    WOW! great. thank you!

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Vlookup in 2 different cells

    Please mark the thread as Solved if that took care of your problem. Thanks.

+ 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 different cells/tab
    By rayted in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2018, 06:53 AM
  2. [SOLVED] Sum of multiple VLOOKUP cells in the row with some cells are blank
    By thup_98 in forum Excel General
    Replies: 3
    Last Post: 12-23-2015, 04:23 AM
  3. [SOLVED] How to use VLOOKUP to look at 2 seperate cells and compare the same cells in the datarange
    By Shannon561 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2014, 05:59 AM
  4. add cells with vlookup
    By kcube17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 01:55 AM
  5. [SOLVED] VLOOKUP 2 cells into 1
    By Solidstan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2014, 01:42 PM
  6. [SOLVED] vlookup to convert row of cells into column of cells (transpose)
    By kosherboy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-13-2014, 06:07 PM
  7. Vlookup - from 2 cells
    By faisal.ta in forum Excel General
    Replies: 4
    Last Post: 05-02-2012, 06:22 PM

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