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

CodeNameQty On HandQTY ProducedQTY Sold
LCCRaw Milk10
LEFPast. Milk35

<tbody>
</tbody>

Production Table

DateLot NumberCodeQty ProducedLabels
5/065628LCC7X
5/075629LCC20X
5/075630LEF34X

<tbody>
</tbody>

Sales Tables

DateClientCodeQty SoldSale Price
5/06Rescue RanchLCC10$4
5/07Rescue RanchLCC10$4
5/07OstaraLEF20$6

<tbody>
</tbody>

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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Thanks!

I didn't know how to get the sumif to go past the first value!

This was great help :)


-Gabriela
 
Upvote 0
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,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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