+ Reply to Thread
Results 1 to 2 of 2

trying to construct price list that generates from database

  1. #1
    Registered User
    Join Date
    09-14-2009
    Location
    Queens, New York
    MS-Off Ver
    Excel 2003
    Posts
    1

    trying to construct price list that generates from database

    I am trying to create a price list such that when two identical cells turn up the price that is attached in the databse will generate. For example, say part of the price list looks like this
    A..............B.................C
    1 Town1.....Town2.....$5
    2 Town5.....Town3.....$8

    In the actual application, when one of those two scenarios were to happen I want column C to generate by itself. For instance,
    A.............B.............C
    Town5......Town3.....?-->this would remain blank

    looking for macro or something that would be able to generate column c using the pre-established price list. Ultimately I would want a subtotal to generate as well. Please let me know if you can be any help or advice. Thanks!
    Last edited by apotash01; 09-14-2009 at 02:54 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: trying to construct price list that generates from database

    You want the $8 to show up or blank? Not clear.

    If the $8, then

    =Sumproduct(--('Price List'!A1:A100=A2),--('Price List'!B1:B100=B2),C1:C100)

    where Price List sheet, cells A1:C100 contain your pricelist and A2, B2 contain search criteria, respectively
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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