Help with formula

capriella

New Member
Joined
May 8, 2018
Messages
2
Hi,

I need help figuring out the formula for the following case, I need to keep track of my inventory so I have a base inventory to wich I need to add the quantity of what is produced in a day and substract the amount of what is sold that same day.

Inventory table

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[TD]Qty On Hand[/TD]
[TD]QTY Produced[/TD]
[TD]QTY Sold[/TD]
[/TR]
[TR]
[TD]LCC[/TD]
[TD]Raw Milk[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LEF[/TD]
[TD]Past. Milk[/TD]
[TD]35[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Production Table

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Lot Number[/TD]
[TD]Code[/TD]
[TD]Qty Produced[/TD]
[TD]Labels[/TD]
[/TR]
[TR]
[TD]5/06[/TD]
[TD]5628[/TD]
[TD]LCC[/TD]
[TD]7[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]5/07[/TD]
[TD]5629[/TD]
[TD]LCC[/TD]
[TD]20[/TD]
[TD]X[/TD]
[/TR]
[TR]
[TD]5/07[/TD]
[TD]5630[/TD]
[TD]LEF[/TD]
[TD]34[/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]

Sales Tables

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Client[/TD]
[TD]Code[/TD]
[TD]Qty Sold[/TD]
[TD]Sale Price[/TD]
[/TR]
[TR]
[TD]5/06[/TD]
[TD]Rescue Ranch[/TD]
[TD]LCC[/TD]
[TD]10[/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]5/07[/TD]
[TD]Rescue Ranch[/TD]
[TD]LCC[/TD]
[TD]10[/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]5/07[/TD]
[TD]Ostara[/TD]
[TD]LEF[/TD]
[TD]20[/TD]
[TD]$6[/TD]
[/TR]
</tbody>[/TABLE]

The Quantity On Hand is my current starting inventory. I need to search for the product codes in the other tables and add the values for qty produced and qty sold to fill in the remaining rows and the be able to add and substract these values to the Qty On hand value.

For example:

if the code in inventory is equal to the code in production, add the values of all equal products and print the total in the qty produced row on the inventory table.

if the code is inventory is equal to the code in production add the values of all equal products and print the total in the qty sold row on the inventory table.

Afterwards I will add and substract these values to the Qty On Hand amount.

I Appreciate your help!

Regards,

-Gabriela
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
put the formula in, hit enter. drag the lower right corner down to cover all needed cells.

I will post again with more detailed instructions.

Also - if you have formula tips on, when you hit =sumif( it will begin to tell you waht you'r elooking for. In this case, the first =sumif(WHAT_COLUMN_TO_IDENTIFY, VALUE_TO_IDENTIFY, RANGE_TO_SUM)

HTH,

Jon
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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