+ Reply to Thread
Results 1 to 9 of 9

Price List look-up function

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    Edmonton
    MS-Off Ver
    Excel 2010
    Posts
    4

    Price List look-up function

    Hello,

    I am not sure if I can do this without VBA; considering I have not used VBA in about a year, I'd rather exhaust my options before going back into it (as I know this might involve a lot of headaches).

    In short, I'm trying to develop a faster way to compare the price of various items. The current process first involves looking at a sheet with a list of various measurements. Each measurement is then grouped to a particular code (5, 10, etc.):

    As an example, I am looking for the price of something with measurements 1.083.

    Example of measurement list:
    Size 5S 10S 20S STD
    1" .065 0.083 .133 .25
    2" .065 .109 .155 .260


    Then, I compare the code and size to a price list to find the matching price:
    Size 5S 10S 20S STD
    1" $20 $25 $30 $40
    2" $22 $32 $42 $52

    I would like to make this a lot faster by simply typing the sizes into a cell (or over two cells) and getting the matching price --> cross referencing the paper documents is very time consuming.
    As an example, the bold/black is what I fill in; the red/itallic is what Excel pulls:
    Over 1 cell
    Size Code Price
    1.083 10S $25

    Over 2 cells
    Size Size2 Code Price
    1" .083 10S $25

    How can I do this?

    Thank you,

    Citizen
    Last edited by citizenzen; 11-30-2012 at 06:06 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Price List look-up function

    Are they all in the same sheet - different sheets - different books?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    Edmonton
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Price List look-up function

    They are on the same sheet right now. If easier, I I'd move them to a different worksheet. Ideally, I'd like to keep everything in the same workbook.
    Last edited by citizenzen; 11-30-2012 at 06:18 PM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Price List look-up function

    Hi,

    Does the attached help?
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Price List look-up function

    For this code you'll need to define the ranges that correspond to your actual sheet (marked in red):

    Please Login or Register  to view this content.
    Last edited by xladept; 11-30-2012 at 09:35 PM.

  6. #6
    Registered User
    Join Date
    11-30-2012
    Location
    Edmonton
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Price List look-up function

    I'm not sure where I am going wrong when I apply the logic behind the above 2 methods to my template.

    I would like to show the schedule, but I can't upload it. After trying to upload the excel attachment, I keep getting an error message with the upload.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Price List look-up function

    I had no trouble uploading Mr. Buttrey's attachment - have you tried my code?

  8. #8
    Registered User
    Join Date
    11-30-2012
    Location
    Edmonton
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Price List look-up function

    Here is an example of the schedule I'm trying to apply the above to, it's just not pulling accurately and I do not know how to fix it.

    What makes the function more difficult is the additional information that I did not illustrate in my original post:
    1. >size=12, there is an "if" E or I.
    2. Pricing is only available for 7 codes, which means the there is a range/between criterion to qualify a code
    Attached Files Attached Files
    Last edited by citizenzen; 12-17-2012 at 05:46 PM.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Price List look-up function

    Probably the simplest way is to ensure that the Price sheet is consistent and has an I and E price row for every size, (so sizes 2,3,4,6,8,10 & 12 would have zero value rows).

    Then just modify the formula in F6 on the D! sheet with an if test. i.e.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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