+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP Formula For Price Sheet

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    seattle
    MS-Off Ver
    Excel 2003
    Posts
    3

    VLOOKUP Formula For Price Sheet

    I've tried to figure this out for the last hour but I can't seem to figure it out, as I'm not too knowledgeable in excel. Any help is greatly appreciated.

    The task: create price sheet that calculates pricing based on 2 criteria - quantity, and production time.

    There are two worksheets. #1 is the main calculator, #2 is the price sheet, broken down with time (in hours) on the left column B, the quantity across the top in row 1. There are then boxes with different prices based on both the hours and quantity of products.

    On worksheet 1, I have specified quantity in C6, and time in C8. How do I pull a price in to F8 that calculates based off the time and quantity filled out on sheet 1?

    Please help!

    Thank you!!
    Last edited by destinybrandon; 01-29-2010 at 12:55 PM.

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

    Re: VLOOKUP Formula For Price Sheet

    Something like:

    =INDEX(Sheet2!$A$1:$X$10,Match($C8,Sheet2!A$1:$A$10,0),Match($C6,Sheet2!$A$1:$X$1,0))

    where Sheet2, A1:X10 contains your table price sheet....

    Adjust ranges as necessary. Note: the first Match() looks up column B, the Second MATCH() looks up Row 1...

    .. Note also, the lookup is for exact matches....
    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.

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    seattle
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VLOOKUP Formula For Price Sheet

    what if there weren't exact matches? for example, the hours column is simple, ranging from 1-8. the quantity row however, is: 1, 12, 24, 48, 72, 144, and 288. how would i specify it so that it places the quantity number from sheet 1 into the correct price bracket on sheet 2?

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: VLOOKUP Formula For Price Sheet

    Match can give you the next value if an exact match is not found

    =INDEX(Sheet2!$A$1:$X$10,Match($C8,Sheet2!A$1:$A$10,0),Match($C6,Sheet2!$A$1:$X$1,1))

    if your columns have values like
    0.....10.....20.....30.....40.....50

    then MATCH(15,<column range>,1) will return 1, since 15 is between 10 and 20 and thus is matched to the second column.

    You may have to rearrange your column headers a bit for this to work. If you need help, post a data sample.

  5. #5
    Registered User
    Join Date
    01-28-2010
    Location
    seattle
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VLOOKUP Formula For Price Sheet

    thanks everyone! got it!!

+ 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