UNIHIVE

Study Hub UNIPORT AGR 204

AGR 204 · Computer Applications to Agriculture

Spreadsheet functions for farm records and budgets

SUM, AVERAGE, MIN, MAX, COUNT, IF, SUMIF and lookups, applied to feed records, enterprise budgets and gross margins.

Our notes

1 min read

Common functions

FunctionDoesExample
SUMAdds=SUM(C2:C30)
AVERAGEMean=AVERAGE(D2:D31)
MIN, MAXSmallest, largest=MAX(E2:E50)
COUNT, COUNTACounts numbers, non-empty cells=COUNT(B2:B100)
COUNTIF, SUMIFCount or add where a condition holds=SUMIF(A2:A50,"Feed",C2:C50)
IFChoose by a test=IF(F2<1.8,"Good","Check")
ROUNDRounds=ROUND(G2,2)
VLOOKUP / XLOOKUPFinds a value in a table=VLOOKUP(A2,Prices!A:B,2,FALSE)

Worked example 1: feed conversion ratio (FCR)

A broiler batch ate 4,200 kg of feed and gained 2,400 kg of live weight.
FCR = feed eaten ÷ weight gained = 4,200 ÷ 2,400 = 1.75 (=B2/C2). Lower is better.
=IF(D2<=1.8,"Good","Review feeding") shows "Good".
Check: 1.75 × 2,400 = 4,200 ✓.

Worked example 2: gross margin of a cassava plot (practice prices)

ItemAmount (₦)
Revenue: 12 t at ₦120,000/t=12*120000 → 1,440,000
Stems150,000
Fertiliser200,000
Labour450,000
Herbicide and other90,000
Total variable cost=SUM(B3:B6) → 890,000
Gross margin=B2-B7 → 550,000

Check: 150 + 200 + 450 + 90 = 890 thousand; 1,440 − 890 = 550 thousand ✓.

SUMIF on a cash book

Column A holds categories (Feed, Drugs, Labour), column C amounts. =SUMIF(A2:A200,"Feed",C2:C200) gives total feed spending without sorting.

"What if" analysis

Put prices and yields in their own input cells and refer to them; change the price of cassava and the gross margin updates. Goal Seek finds, for example, the yield needed for a gross margin of zero (the break-even yield): here 890,000 ÷ 120,000 ≈ 7.4 t.

Exams usually ask: write formulas for given tasks; compute FCR, mortality, gross margin in a spreadsheet; explain IF and SUMIF with examples.

Common mistake: numbers stored as text (typed with a unit, as "25 kg", or pasted from WhatsApp with spaces). SUM and AVERAGE skip them without warning, so totals come out too low: look for numbers sitting on the left of the cell.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All AGR 204 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.