Can I accurately calculate these costs in the data provided

Hwatsonnn

Board Regular
Joined
Nov 14, 2018
Messages
58
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Feed Cost/Day AverageYearly Average Per Day
IDON DateOFF DateDays ONFeed CostJan € 1.10 € 1.36
Feb € 1.24
110/01/201820/07/2018191 € 259.76Mar € 1.32
210/01/201820/07/2018191 € 259.76Apr € 1.45
312/02/201814/08/2018183 € 248.88May € 1.56
412/02/201807/08/2018176 € 239.36Jun € 1.25
Jul € 1.32
505/04/201814/11/2018223 € 303.28Aug € 1.45
610/04/201820/11/2018224 € 304.64Sep € 1.38
706/08/201825/12/2018141 € 191.76Oct € 1.30
Nov € 1.27
Dec € 1.68

<tbody>
</tbody>

Currently my feed cost is calculated by multiplying days by the yearly average.
I was wondering whether I could accurately work out feed costs by only accounting for the feed costs in which the animal was consuming when on site.
E.g ID 3 Consumption between February and August.
 
Last edited by a moderator:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Not sure if I am missing something however, if the "Feed cost " is an accurate one then this figure multiplied by no of days would give true "Feed cost " you seek i.e. ID3 =SUM183*1.56 gives $285.48

I assume the "yearly average per day" has been obtained by dividing total cost previous 12 months by 365 .
 
Upvote 0
Not sure if I am missing something however, if the "Feed cost " is an accurate one then this figure multiplied by no of days would give true "Feed cost " you seek i.e. ID3 =SUM183*1.56 gives $285.48

I assume the "yearly average per day" has been obtained by dividing total cost previous 12 months by 365 .

My Yearly Average is the sum of each months' average divided by 12.
I explained poorly, lets say for ID 1, it consumed feed between January and July. The true average for cost over those months would be $1.32. By adding those 7 month averages up, and dividing them by 7. If I used the yearly average I would be putting $1.36 a day as the cost. I was just wondering if this could be put into a formula to make my programme more accurate.
Thank you for replying.
 
Upvote 0
How did you arrive at the "True Cost" of $1.32 ?
If this is the actual cost why use a yearly average to calculate "Feed cost".
 
Upvote 0
here you go man, see formulas below and attached screen shot



DAYS ON FORMULA

Code:
=IF(A2="","",DATEDIF(B2,C2,"d")+1)


FEED COST FORMULA

Code:
=IF(A2="","",SUM(H2*$G$2,I2*$G$3,J2*$G$4,K2*$G$5,L2*$G$6,M2*$G$7,N2*$G$8,O2*$G$9,P2*$G$10,Q2*$G$11,R2*$G$12,S2*$G$13))


DAYS PER MONTH FORMULA (FOR 3 CELLS SO YOU CAN SEE WHAT CHANGES WHEN IT MOVES)


CELL H2

Code:
=IF(A2="","",SUMPRODUCT(--(TEXT(ROW(INDIRECT(B2&":"&IF(C2="",TODAY(),C2))),"mmm")=H$1)))

CELL H3

Code:
=IF(A3="","",SUMPRODUCT(--(TEXT(ROW(INDIRECT(B3&":"&IF(C3="",TODAY(),C3))),"mmm")=H$1)))

CELL I2

Code:
=IF(A2="","",SUMPRODUCT(--(TEXT(ROW(INDIRECT(B2&":"&IF(C2="",TODAY(),C2))),"mmm")=I$1)))


SCREENSHOT

https://consulerellc-my.sharepoint....BKuGwj7uc5H3MBIrhy3xgNBYjdWaCXyNd9vA?e=mlX6FK
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,693
Members
449,117
Latest member
Aaagu

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