Sum for multi variable data validation

jjalyss

New Member
Joined
May 9, 2011
Messages
3
I have created a spreadsheet to track apparel orders. In one column I have the products in a drop down menu, and can select multiple products from the list in one cell separated by a comma.

Eg. red shirt, blue shirt, green shirt

I would like to know how i could generate a sum for each product

eg: green shirt: 5
blue shirt: 7

I'd also like to know how to add a column next to products with a sum of the pricing for each product per row
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

Welcome to MrExcel.

To get a reply that may result in a solution I think that you will have to provide some sample data.

1. What is the range that you have your "shirts" in?
2. Is each "shirt" colour in a separate cell?

Here's some sample data so that you understand what you need to provide...

Excel Workbook
ABCDEFG
1Shirt TypeValuered shirt, green shirt, blue shirtred shirtgreen shirtblue shirt
2Red Shirt10.00Count432
3Green Shirt5.00Value40.0015.0012.00
4Polkadot Shirt0.02
5Loud Shirt20.00
6Orange Shirt0.01Polkadot Shirt, Red shirt, Loud shirtPolkadot ShirtRed shirtLoud shirt
7Blue Shirt6.00Count142
8Red Shirt10.00Value0.0240.0040.00
9Green Shirt5.00
10Blue Shirt6.00
11Red Shirt10.00
12Orange Shirt0.01
13Loud Shirt20.00
14Red Shirt10.00
15Green Shirt5.00
Sheet1


Is that something like you have/want?

Ak
 
Upvote 0
So I have it set up like columns A and B with product name and price. Then on a separate sheet I have something like:

Column A: Customer Name
Column B: Products (here I can place multiple variables)

Then I just need an area where it will sum column B based on the Product quantity, and then the price.
 
Upvote 0
Hi,

Some sample data would be really helpful, rather than "Then on a separate sheet I have something like".....

Is this something like you require?....


Excel Workbook
AB
1Product NamePrice
2Blue Shirt6.00
3Green Shirt5.00
4Loud Shirt20.00
5Orange Shirt0.01
6Polkadot Shirt0.02
7Red Shirt10.00
Sheet1



Excel Workbook
ABCDEF
1Customer NameProducts*ProductsCountValue
2BillRed Shirt, Green Shirt, Blue Shirt*Blue Shirt954.00
3BobBlue Shirt, Loud Shirt, Orange Shirt*Green Shirt525.00
4TomGreen Shirt, Blue Shirt*Loud Shirt240.00
5JoRed Shirt*Orange Shirt40.04
6JoeOrange Shirt, Red Shirt, Polkadot Shirt, Blue Shirt*Polkadot Shirt30.06
7TimGreen Shirt * , Blue Shirt,,Loud Shirt*Red Shirt880.00
8DanRed Shirt****
9JillOrange Shirt, Red Shirt, Polkadot Shirt, Blue Shirt****
10TedGreen Shirt *, Blue Shirt****
11John* * * * Red Shirt****
12BenOrange Shirt, Red Shirt, Polkadot Shirt, Blue Shirt****
13DenGreen Shirt-Blue Shirt * *Red Shirt****
Sheet2


Is that the result you require?

Ak
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top