Advanced formula, basic MRP, Not sure if possible on excel.

natheplas

Board Regular
Joined
Aug 28, 2016
Messages
97
Hi All,
I've been tasked with making a very basic MRP and hope someone can help me automate it a bit.

Our products only go down one level, so I think it's doable, but the way I have made it is very
cumbersome and wondered if there is a formula I could use to help automate it. What I am currently entering takes hours.

I need to have a sum that looks at the productcode which is a component code. (240SSD)

AB
1Component CodeRequired Oct-2017
2240 SSD??Required Sum??

<tbody>
</tbody>


The sum then looks at another work sheet to see what finished product that component goes into.


Component CodeFinished ProductComponent Quantity in Finished Product
240 SSDLaptop1
240 SSDGaming PC2
240SSDMini PC1

<tbody>
</tbody>


Then it multiplies the component quantity in finished product * sales order demand (for that month) for the finished product.


Finished Product CodeOct 2017 SalesNov 2017 Sales
Laptop12
Gaming PC105
Mini PC510

<tbody>
</tbody>


So the final formula is something like

=(SHEETA!C2*SHEETB!B2)+(SHEETA!C3*SHEETB!B3)+(SHEETA!C4*SHEETB!C4)


This works for now, but it requires me going through and selecting each cell which takes hours, then if products are added or i miss one
there could easily be an error and I wouldn't know about.

Its a tall order, but if anyone knows a way I can join this up and automate it using an advanced vlook up or sumifs etc, that would be huge!

Thanks

Natheplas





<colgroup><col><col><col><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi All,
I've been tasked with making a very basic MRP and hope someone can help me automate it a bit.

Our products only go down one level, so I think it's doable, but the way I have made it is very
cumbersome and wondered if there is a formula I could use to help automate it. What I am currently entering takes hours.

I need to have a sum that looks at the productcode which is a component code. (240SSD)

AB
1Component CodeRequired Oct-2017
2240 SSD??Required Sum??

<tbody>
</tbody>


The sum then looks at another work sheet to see what finished product that component goes into.


Component CodeFinished ProductComponent Quantity in Finished Product
240 SSDLaptop1
240 SSDGaming PC2
240SSDMini PC1

<tbody>
</tbody>


Then it multiplies the component quantity in finished product * sales order demand (for that month) for the finished product.


Finished Product CodeOct 2017 SalesNov 2017 Sales
Laptop12
Gaming PC105
Mini PC510

<tbody>
</tbody>


So the final formula is something like

=(SHEETA!C2*SHEETB!B2)+(SHEETA!C3*SHEETB!B3)+(SHEETA!C4*SHEETB!C4)


This works for now, but it requires me going through and selecting each cell which takes hours, then if products are added or i miss one
there could easily be an error and I wouldn't know about.

Its a tall order, but if anyone knows a way I can join this up and automate it using an advanced vlook up or sumifs etc, that would be huge!

Thanks

Natheplas




<tbody>
</tbody>


B2=SUMPRODUCT(SheetB!$B$2:$B$4,OFFSET(SheetA!$C$1,MATCH($A2,SheetA!$A$2:$A$20,0),0,3,1))

this formula assumes that the data in Sheet A is grouped by Component Code and that the Products are listed in the same order as in Sheet B
 
Upvote 0
Hi jarjarbingie,

Thank you for the formula, but I'm just getting a '#VALUE!' is there anything you can do to see where I'm going wrong?

Can you send excels on this or copy parts of the worksheets over?

Now I know it can be automated, I would love to learn how.

Thanks.
 
Upvote 0
Hi,

Is there anyone that can help me with this please?

I'll send over anything people need or explain in more detail what I need the formula to do and how my current set up is.

Need some help going through why the above formula does not work and if it can be edited or a new formula that does work.
 
Upvote 0
Maybe this...

In the example below i've put all the tables in the same worksheet - adjust the ranges accordingly

Important: the values (headers) in B1 and C1 must be identical to those in J1:K1


A
B
C
D
E
F
G
H
I
J
K
1
Component Code​
Oct 2017​
Nov 2017​
Component Code​
Finished Product​
Qty in Finished Product​
Product Code​
Oct 2017​
Nov 2017​
2
240 SSD​
26​
22​
240 SSD​
Laptop​
1​
Laptop​
1​
2​
3
240 SSD​
Gaming PC​
2​
Gaming PC​
10​
5​
4
240 SSD​
Mini PC​
1​
Mini PC​
5​
10​
5

<tbody>
</tbody>


Array formula in B2 copied across to C2
=SUM(SUMIF($I$2:$I$10,IF($E$2:$E$10=$A2,$F$2:$F$10),INDEX($J$2:$Z$10,0,MATCH(B$1,$J$1:$Z$1,0)))*IF($E$2:$E$10=$A2,$G$2:$G$10))

confirmed with Ctrl+Shift+Enter, not just Enter

Hope this helps

M.
 
Last edited:
Upvote 0
Hi M,

Thank you for coming back to me.

=SUM(SUMIF('[Jens Mini MRP (version 2).xlsb]Report'!$A$8,IF(Table_Query_from_*****_Ltd3[STOCK_CODE]=ACTUAL!A11,Table_Query_from_*****_Ltd3[ASSEMBLY_CODE]),INDEX('Jens Mini MRP (version 2).xlsb'!Table3[Oct SO Demand],0,MATCH(Table1[[#Headers],[Oct SO Demand]],'Jens Mini MRP (version 2).xlsb'!Table3[[#Headers],[Oct SO Demand]],0)))*IF(Table_Query_from_*****_Ltd3[STOCK_CODE]=ACTUAL!A11,Table_Query_from_*****3[COMPONENT_QTY]))

When I used the formula your provided I get '22' for the first cell I tried it in. This is partly right as 22 is equal to finished product sales demand * component quantity, however, it is not picking up the lines underneath. It should be 22 + 90.

I also don't know how to apply this formula to the other cells. With a ctrl+shift+enter can you drag it down or do you have to do it a certain way for it to work?

I'm the closest I've been now, I just need it to look at the other rows on sheet 2 (E-G) and add them to the total, then work out how to apply that formula to all the cells in the column.

Thank you for your help! Hoping you can show me how to get to the finished line.

Natheplas
 
Upvote 0
Hi M,

I figured it out - I misunderstood part of your formula. It worked! Thank you so much for your help with this, I would of been totally stuck otherwise.

Regards,

Natheplas
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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