473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Calculate Average Cost

134 100+
Hi,
Although this question may not directly link to Access, but I think it a common question to those developer.so hope you could suggest a solution.

How do I get the average cost for Item sold, so I could calculate the Profit.-

Same Product item could bought from different suppliers, different suppliers have different cost price or buying price.

There is only 1 standard selling price, In order to calculate the profit, I would take selling price - Cost price. Since cost price are not fixed as we purchase from different suppliers at different price, So I though the solution is to use Average cost. So what is the best implementation, best practices or formula.
Dec 24 '07 #1
7 10173
jaxjagfan
254 Expert 100+
Hi,
Although this question may not directly link to Access, but I think it a common question to those developer.so hope you could suggest a solution.

How do I get the average cost for Item sold, so I could calculate the Profit.-

Same Product item could bought from different suppliers, different suppliers have different cost price or buying price.

There is only 1 standard selling price, In order to calculate the profit, I would take selling price - Cost price. Since cost price are not fixed as we purchase from different suppliers at different price, So I though the solution is to use Average cost. So what is the best implementation, best practices or formula.
Sum(Cost x Qty) = TotalCost
Sum(SellPrice x Qty) = TotalSales
TotalCost - TotalSales = TotalProfit (Less Expenses/Taxes)

Average(Cost x Qty) = AvgCostPerUnit
Average(SellPrice x Qty) = AvgSalesPerUnit (SellPrice is a constant)
AvgCostPerUnit - AvgSalesPerUnit = AvgProfitPerUnit

TotalProfit takes into consideration units still onhand (if any). It's best not to use Average when trying to calculate total profit. If you buy 20 units from supplier A then divide the expenses/taxes across the 20 units to get a True Cost Per Unit: (Cost + (Expense/Qty)) = TrueCostPerUnit.
Sum(TrueCostPerUnit x Qty) = TrueTotalCost

I work closely with Actuarials/Financial Analysts/Managers and have done a lot of different financial reporting. It all depends on what the end user wants to see.

I would need to know a little more on your data structures to more definitive.
Dec 26 '07 #2
jamesnkk
134 100+
I have a Selling Price table call it TblSellPrice that consist of

Part No - KN-12345
QTY ............. SELL PRICE
1 ................. $1.20
5000 ............ $1.00

During invoice entry if I enter qty= 3,000, it will retrieve selling price @$1.20
This got no problem.

I have another Cost Price table call it TblCostPrice that consist of

Part No - KN-12345
Vendor ....................Qty......Cost price

ABC SUPPLIER.......1000..... 0.90
............................... 5000..... 0.70

BBB SUPPLIER......1000..... 0.85
...............................5000.... .0.65


But to capture the Average cost price for qty=3000 there are 2
scenario if I have make any purchase order from supplier, this mean stock received will store into another table - TblPORecd

Part no........Qty Recd......Cost price... Amt.......Supplier
KN-12345.....1000............ 0.90...........$900........abc supplier
KN-12345.....5000............ 0.65..........$3250....... bbb supplier

Quote me if I am wrong, I would take 4150/6000 to get average cost=$0.69
Since I only sell 3,000, so I think I might be wrong over here.

On the 2nd scenario, if there no stock purchase, no transaction goes into
TblPORecd, I would not be able to calculate my average cost using the above
step. I would then refer to the above Table - TblCostPrice

ABC SUPPLIER 1000 0.90 = $900
BBB SUPPLIER 1000 0.85 = $850

Average cost = 1750/2000 = $0.875.

Please advise .
Dec 27 '07 #3
jaxjagfan
254 Expert 100+
I have a Selling Price table call it TblSellPrice that consist of

Part No - KN-12345
QTY ............. SELL PRICE
1 ................. $1.20
5000 ............ $1.00

During invoice entry if I enter qty= 3,000, it will retrieve selling price @$1.20
This got no problem.

I have another Cost Price table call it TblCostPrice that consist of

Part No - KN-12345
Vendor ....................Qty......Cost price

ABC SUPPLIER.......1000..... 0.90
............................... 5000..... 0.70

BBB SUPPLIER......1000..... 0.85
...............................5000.... .0.65


But to capture the Average cost price for qty=3000 there are 2
scenario if I have make any purchase order from supplier, this mean stock received will store into another table - TblPORecd

Part no........Qty Recd......Cost price... Amt.......Supplier
KN-12345.....1000............ 0.90...........$900........abc supplier
KN-12345.....5000............ 0.65..........$3250....... bbb supplier

Quote me if I am wrong, I would take 4150/6000 to get average cost=$0.69
Since I only sell 3,000, so I think I might be wrong over here.

On the 2nd scenario, if there no stock purchase, no transaction goes into
TblPORecd, I would not be able to calculate my average cost using the above
step. I would then refer to the above Table - TblCostPrice

ABC SUPPLIER 1000 0.90 = $900
BBB SUPPLIER 1000 0.85 = $850

Average cost = 1750/2000 = $0.875.

Please advise .
Yes, you are correct on the average. $0.69 would be your average "order" cost. Since only 3,000 ordered by customer ($1.20 ea.) then AvgProfit would be 1.20 - .69 = $.51 per unit. (AvgOrderProfit: 3000 x .51 = $1530)

TotalProfit would be 3600 (CustomerOrder) - 4150 (StockOrdered) = -550.

On the 2nd scenerio: .875 would be your average "supplier" cost. This would be a different reporting value than average order cost.
Dec 27 '07 #4
jamesnkk
134 100+
Yes, you are correct on the average. $0.69 would be your average "order" cost. Since only 3,000 ordered by customer ($1.20 ea.) then AvgProfit would be 1.20 - .69 = $.51 per unit. (AvgOrderProfit: 3000 x .51 = $1530)

TotalProfit would be 3600 (CustomerOrder) - 4150 (StockOrdered) = -550.

On the 2nd scenerio: .875 would be your average "supplier" cost. This would be a different reporting value than average order cost.
Thank for your prompt reply and solution, Refer to scenerio-2 , is it true that
I can also take the lowest price from the 2 suppliers as the average cost ?

Sorry another question should I capture the average cost & order average price
during purchase order from customer, the reason is that customer may give me a PO, but it will not deliver immediately..Or capture only when issue invoice ?
Dec 27 '07 #5
jaxjagfan
254 Expert 100+
Thank for your prompt reply and solution, Refer to 2 scenerio , is it true that
I can also take the lowest price from the 2 suppliers as the average cost ?

Sorry another question should I capture the average cost & order average price
during purchase order from customer, the reason is that customer may give me a PO, but it will not deliver immediately..Or only when issue invoice ?
To question 1:
No, then you are giving a "false" impression of costs being low. It may cause mgmt to lower selling price and eliminate profit. Do an average across all suppliers or an average of the highest 3 or average of lowest 3 (be cautious with the last one). It is better to go high than low in that scererio.

To question 2: (Income - Expense = Profit)
a. TotalInvoice, AvgCostPerUnit and other supplier related values are driven by Invoice data. Invoice = Expense.

b. TotalOrder, AvgOrderPrice, AvgSellPrice, and other customer driven values are driven by Order data. Order = Income
Dec 27 '07 #6
jamesnkk
134 100+
To question 1:
No, then you are giving a "false" impression of costs being low. It may cause mgmt to lower selling price and eliminate profit. Do an average across all suppliers or an average of the highest 3 or average of lowest 3 (be cautious with the last one). It is better to go high than low in that scererio.

To question 2: (Income - Expense = Profit)
a. TotalInvoice, AvgCostPerUnit and other supplier related values are driven by Invoice data. Invoice = Expense.

b. TotalOrder, AvgOrderPrice, AvgSellPrice, and other customer driven values are driven by Order data. Order = Income
Thank you for enlighten me, have a nice day.
Dec 27 '07 #7
jamesnkk
134 100+
To question 1:
No, then you are giving a "false" impression of costs being low. It may cause mgmt to lower selling price and eliminate profit. Do an average across all suppliers or an average of the highest 3 or average of lowest 3 (be cautious with the last one). It is better to go high than low in that scererio.

To question 2: (Income - Expense = Profit)
a. TotalInvoice, AvgCostPerUnit and other supplier related values are driven by Invoice data. Invoice = Expense.

b. TotalOrder, AvgOrderPrice, AvgSellPrice, and other customer driven values are driven by Order data. Order = Income
Step -1
To summarized what I have understand, If there is no stock purchase
from supplier, I would compute the supplier average cost using the
Supplier table - tblcostPrice as posted above.

Step-2
If I buy stock from supplier, this mean I have issue PO to Supplier,
I would then compute the supplier average cost using table - tblPORecd in my
earlier post, this mean sum up the qty, and total up the amt = amt/total qty.
The qty refer to qty receive not order right ?, (this mean if I order 5000 qty,
but supplier deliver partial qty 3000).

If I am not wrong, in the 2 scenario we discussed, it assume there is no stock.
What if there is stock balance for the part nos that appear in Scenario 1 and
2 ? would the calculation be different ?
Dec 29 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rolan | last post by:
I know what I want to do regarding the average cost for inventory, but need some assistance to sort out some of the details to finalize an inventory table and query. Essentially, the information is...
2
by: Steve | last post by:
Hi all How would I find out the average date when given a bunch of dates? For example, I want to find the average length in time from the following dates:...
4
by: gaga | last post by:
hi guys, a part of my program requires me to calculate an average of items that are sold. the easiest way to do that would be writing a function, but im having trouble making up the parameters. if...
1
by: Sedigh | last post by:
Hi Everybody, I need to write a macro on my Excel sheet to calculate the average of cells for me. This is the code I have written but the average function is not working. Can you please let me...
3
by: gator6688 | last post by:
I have to write a program that asks for a cost-per-item, number of items purchased, and a discount rate. Then it should calculate the total cost, tax due, and amount due. I have to use the...
3
by: paeh | last post by:
hello..can anyone help me. I am beginner in programming. I need to make a system that can calculate moving average. my system process will be executed according to certain schedule such as daily,...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
1
by: Michel | last post by:
Hello, I need to calculate moving averages of weekly data during the last year. After some search, I believe that the best approach will be to get a dataset from the SQL Server database, browse...
40
by: sazd1 | last post by:
Hi Student2 I am working on similar kind of thing for stock calculation but could not find any solution to my problem even after putting my problem to different forums. I saw your post that you...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.