+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP using 2 cells to determine the answer.

  1. #1
    Registered User
    Join Date
    02-04-2015
    Location
    New York
    MS-Off Ver
    2007
    Posts
    10

    VLOOKUP using 2 cells to determine the answer.

    Lets see if I can example this.

    I need excel to look up Width X Height using my chart to give me the price.

    So here's my chart
    Width Height Price
    1 1 30
    2 1 60
    1 2 60
    3 1 90
    2 2 120
    4 1 120
    3 2 180
    4 2 240

    Now in excel I have Width as its own cell, Height as its own Cell and the price as its own cell. Is there a formula for VLOOKUP to use two different cells at the same time?

    For Example using cells:
    A3 is my width, width is 2
    B3 is my height, height is 1
    C3 is my price, so according to my chart above my price is 60

    Can VLOOKUP determine my price based on cell A3 and B3?

    Hopefully I explained that well enough.

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: VLOOKUP using 2 cells to determine the answer.

    See attached spreadsheet.

    VLOOKUP using 2 cells to determine the answer.xlsx

    Pete

  3. #3
    Registered User
    Join Date
    02-04-2015
    Location
    New York
    MS-Off Ver
    2007
    Posts
    10

    Re: VLOOKUP using 2 cells to determine the answer.

    Greatly Appreciated, thank you

  4. #4
    Registered User
    Join Date
    04-28-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    4

    Re: VLOOKUP using 2 cells to determine the answer.

    Hiya,

    Can the 'Get Price' be given if say the input was 1.5? ie round that up to next available full number? (2)

    Thanks!

  5. #5
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: VLOOKUP using 2 cells to determine the answer.

    You might try adding the =CEILING function around fields that might contain other than a whole number. See if that works for you.

    Pete

  6. #6
    Registered User
    Join Date
    04-05-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    56
    Quote Originally Posted by pmcdee88 View Post
    Hiya,

    Can the 'Get Price' be given if say the input was 1.5? ie round that up to next available full number? (2)

    Thanks!
    Format the cell as 0 decimals

    Btw wouldnt it be better to use drop down as the hight and width and vlookup for the price

+ 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 not woeking for me for this answer
    By justme152 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-29-2013, 03:29 AM
  2. msgbox for negative answer and how to determine the number of significant digits
    By bmr8002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2012, 08:56 PM
  3. Vlookup incorrect answer
    By toclare84 in forum Excel General
    Replies: 9
    Last Post: 08-27-2010, 07:33 AM
  4. formula answer with vlookup
    By wasim.qureshi in forum Excel General
    Replies: 1
    Last Post: 10-12-2009, 09:03 AM
  5. vlookup search for more then one answer
    By Gemse in forum Excel General
    Replies: 2
    Last Post: 07-04-2005, 09:05 AM

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