calculating cost based on multiple criteria and extras

learning1984

New Member
Joined
Mar 2, 2016
Messages
14
Hi all,

I'm going to try and explain this as well as I can.

I have a spread sheet with equipment in column J, sweet type in column H, damage in column O of our damage register.

in a separate sheet named Data, I have a list of all the equipment in column A and whether they fit into 1 of 2 costing areas, either stage one, or stage 2. (in column B) 26 in total.
for example the mixer fits into stage 1, the chopper fits into stage one, the filmer fits into stage 2, the tagger fits into stage 2.

I then have a list of all our products, and the cost per item, in either stage 1 or stage 2. these are in columns H, J and K in the data sheet. 21 in total

ie humbugs, at stage 1 cost £0.01, at stage 2 they cost £0.02
fruit salad at stage one cost £0.02 at stage 2 they cost £0.025

I need to calculate the cost of breakdowns. so if the mixer broke down and we had 500 damage on humbugs, I need to firstly associate the mixer to stage 1, and then calculate the cost of humbugs in stage one, by the amount of damage.

im struggling writing a formula to calculate, if the equipment matches any of the stage 1 equipment's or the stage 2, and if it matches a particular product then calculate either the stage 1 cost or the stage 2 cost by the damage figure.

even writing this im all over the place. many apologies.

any help is greatly appreciated.

my next step will be to turn this formula into VBA, so that I can click onto a particular line in the damage register, then click a button, and this will perform the calculation and bring up a message box with the cost for that line entry. obviously im getting ahead of myself when im struggling with the original formula

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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