+ Reply to Thread
Results 1 to 8 of 8

Products and Prices

  1. #1
    Registered User
    Join Date
    09-03-2015
    Location
    Cheshire
    MS-Off Ver
    2013
    Posts
    4

    Products and Prices

    Hi, new here and couldn't find a thread that covers this, prob is but not found.

    I want to select a product from a drop down list (already created), this then inserts a price in a cell a few columns along.

    The worksheet is a record of quotes sent out, so the item selected from the list could be the same or different from previous ones.

    There is a separate worksheet, in the same workbook, containing the prices for each item.

    When a product is selected the location of the price would be in the same cell every time for that product.

    I'm sure there is a simple solution but I can't figure it out.

    Thanks

    Chris

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Products and Prices

    Can you upload an example worksheet so we can see how your data is laid out (Go Advanced>Manage Attachments)
    If you have a list of products and prices on sheet2 in cells A2:B100, you can use VLOOKUP

    with your dropdown in A1
    =VLOOKUP(A1, sheet2!$A$2:$B$100, 2, FALSE)

    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    633

    Re: Products and Prices

    try using VLOOKUP..

    say your dropdown is in Sheet1 A1 and the prices are in Shee2 A1:B10

    in sheet1:

    =IFERROR(VLOOKUP(A1,Sheet2!A1:B10,2,0),"")
    If I've helped U pls click on d *Add Reputation

  4. #4
    Registered User
    Join Date
    09-03-2015
    Location
    Cheshire
    MS-Off Ver
    2013
    Posts
    4

    Re: Products and Prices

    Chemist

    I've attached (I think)a cut down version of the worksheet.

    Sheet 1 is the sheet which I will be working from.

    The drop down menu is in column C, so having selected a product from the list, I then want the price/kg to be inserted into the same
    row but column D.

    Sheet 2 contains the price data.

    The problem I can't solve is getting Excel to look for the correct product and then to get that product price.

    Does that make sense?

    Chris
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Products and Prices

    In D2 copied down

    =IF(C2<>"", VLOOKUP(C2, sheet2!$A$5:$B$8, 2, FALSE)

    Does that work for you?

  6. #6
    Registered User
    Join Date
    09-03-2015
    Location
    Cheshire
    MS-Off Ver
    2013
    Posts
    4

    Re: Products and Prices

    Hi Chem

    Sorry for the delay in getting back to you and thank you for the response.

    I get #N/A in the cell I pasted the formula into.

    There was a bracket missing at the end which I added.

    I can see what you did but it does not seem to be able to pick up the price from col B in sheet 2.

    Any thoughts?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Products and Prices

    Why do you have your dropdown in C reading 1,2,3,4 when your products are A,B,C,D?
    Wouldn't it be easier to just refer to A,B,C,D?

  8. #8
    Registered User
    Join Date
    09-03-2015
    Location
    Cheshire
    MS-Off Ver
    2013
    Posts
    4

    Re: Products and Prices

    Nicely put!

    You are quite right and I was not thinking.

    Your suggestion works perfectly now.

    Many 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. Replies: 12
    Last Post: 07-20-2015, 10:20 PM
  2. Determining prices for products based on competition
    By rajivs27 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-31-2014, 12:50 PM
  3. Formula to work out how many products among various products!
    By MissConfussed in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-02-2013, 02:24 PM
  4. [SOLVED] Extracting latest prices from a price book with past and present prices
    By benoj2005 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2012, 04:08 AM
  5. Average prices for products throughout time
    By josepablocam in forum Excel General
    Replies: 4
    Last Post: 07-26-2010, 07:57 AM
  6. Sum products prices that are between two dates
    By Maddoktor in forum Excel General
    Replies: 1
    Last Post: 02-03-2006, 07:40 AM
  7. Replies: 2
    Last Post: 12-02-2005, 03:50 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