Hey guys,
I'm new to the forum and it's been a very long time since I used Excel. I've forgotten all the formulas that I learned during college. And that was for Excel 2003; now I'm using Excel 2007. So, hopefully you experts can help me out.
So here's the problem. I need to set up an invoice in Excel but I don't know what formula to use. I'll first describe my invoice and then I'll tell you the problem.
It's a basic invoice where you have customer's info and product's details and prices. So, when I choose a customer's name from a list in a cell, the address and phone of that customer will automatically appear. I don't have a problem at all with this part. And then there's the product details section where you enter a product type, size, color, price per unit, and total price. The price per unit also depends on the customer entered. Each customer has different pricing and I used a discount system for each customer. We basically have a universal price list for our products, but we have different discount percentage for each customer.
My invoice will look something like this:
Bob
123 Street
San Francisco, CA
--------------------------------------------------------------------------
Product Type | Size | Color | Quantity | Price per Unit | Total Price
--------------------------------------------------------------------------
ABC Spring Bed | 160 | 2 | 300 | 600|
ABC Spring Bed | 120 | 3 | 250 | 750|
ABC Spring Bed Set| 120 | 1 | 500 | 500|
XXX Spring Bed | 140 | 2 | 400 | 800|
XXX Spring Bed Set| 140 | 1 | 800 | 800|
My plan is to use 'LIST' so that I can choose a product type and product size from a list and I'll manually enter the quantity. But as soon as I enter those info, I'd like the price per unit and the total price to automatically appear. And here's the problem.
I have a data table which has information on the product type, size, and corresponding price per unit which I plan to use for the invoice. You can see the data table below. In the price per unit cell in the invoice, I put a VlookUp formula that looks up the data table below and give the corresponding price. The problem is, for each product there are many different sizes and each has different prices. And Vlookup can only lookup 1 criteria/lookup value. What do I have to write in the formula so that it can FIRST lookup a product type from the invoice and THEN lookup the size so that it can return the correct price. For example, I want to look up 'ABC Spring Bed' with size 90 from the data table. Obviously I can't just use vlookup since there are multiple 'ABC Spring Bed' entries. I know I can just combine the Product Type and size into 1 column so it reads something like 'ABC SPring Bed 90', 'ABC Spring Bed 120' and so on. But that's not what I want to do since that wouldn't look neat on the invoice.
So do I have to use other formula other than vlookup? Can anyone help me out.
I also have a data table which lists the customers' discount percentage, so each customer has different price per unit. How do I incorporate this as well in the invoice? The price that's written on the 'price per unit' on the invoice will be the universal price unit minus the discount.
Thanks a bunch!
-----------------------------------------------
Product Type | Size | Universal Price per unit
-----------------------------------------------
ABC Spring Bed | 90 | 120|
ABC Spring Bed | 120 | 250|
ABC Spring Bed | 160 | 300|
ABC Spring Bed Set | 120 | 500|
XXX Spring Bed | 140 | 400|
XXX SPring Bed | 180 | 750|
and so on..
----------------------------------------------
Customer | Discount percentage |
-----------------------------------------------
ABC | 45%|
BDF | 50|
XXY | 51|
Bookmarks