Column Count by Summing Values in Row

Ravin

Board Regular
Joined
Aug 24, 2012
Messages
67
Hi all,

I am struggling with a complicated count that involves summing a row of data.

I have raw data of product transactions, that details the total transactions across a defined period
The data then details how many customers bought 1 of the product, 2 of the product etc
It is displayed in rows as below


Product Identifier Total Transactions Pareto MPQ Quantity Bought in a Transaction
1 2 3 4 5 6 7 8 9 10 11 12
Product A 101 2040 E 7 5 6 8 9 12 300 1500 200 0 0 0 0
Product B 102 1611 D 7 5 6 2 5 15 452 654 6 56 5 5 400
Product C 103 4515 C 10 1 5 2 46 5 5 5 546 1300 1500 1100 0
Product D 104 2009 B 1 2000 1 1 1 1 0 1 1 1 1 1 0
Product E 105 18497 A 3 1 8000 10000 200 100 50 52 32 31 30 1 0

what I am trying to do is define a rule that says you should always have x of a product to satisfy a service level for your customers

i.e. to satisfy 100% of product a customers I need to have 9 in stock at all times

but 90% of customers I could have 8 in stock

the rules are

Pareto Service Level
A 90%
B >70% and <90%
C >65% and <=70%
D >60% and <=65%
E <=60%
ALL 100%


what I'd like to do is populate a grid with

A B C D E All
product A 10 8 5 3 1 12

This tells me for Pareto A type products i need to hold 10, but if I set it to 8 I need to change the pareto to B or 100% of customers I need to always have 12

I recognise that in some instances I would have the same value, for A and B. also that I may have multiple values for a given threshold, but in these instances I want to choose the higher value

Can anyone help

R
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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