AGR 204 · Computer Applications to Agriculture
Our notes
1 min readCommon functions
| Function | Does | Example |
|---|---|---|
| SUM | Adds | =SUM(C2:C30) |
| AVERAGE | Mean | =AVERAGE(D2:D31) |
| MIN, MAX | Smallest, largest | =MAX(E2:E50) |
| COUNT, COUNTA | Counts numbers, non-empty cells | =COUNT(B2:B100) |
| COUNTIF, SUMIF | Count or add where a condition holds | =SUMIF(A2:A50,"Feed",C2:C50) |
| IF | Choose by a test | =IF(F2<1.8,"Good","Check") |
| ROUND | Rounds | =ROUND(G2,2) |
| VLOOKUP / XLOOKUP | Finds 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)
| Item | Amount (₦) |
|---|---|
| Revenue: 12 t at ₦120,000/t | =12*120000 → 1,440,000 |
| Stems | 150,000 |
| Fertiliser | 200,000 |
| Labour | 450,000 |
| Herbicide and other | 90,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
-
Spreadsheet
(opens en.wikipedia.org in a new tab)
Wikipedia, Spreadsheet, CC BY-SA 4.0 · licence
-
Pivot table
(opens en.wikipedia.org in a new tab)
Wikipedia, Pivot table, CC BY-SA 4.0 · licence
Watch
-
Best pick Intro to Farm business management and records
16 min · ≈ 72 MB · about ₦40
(opens youtube.com in a new tab)
-
Spreadsheet Crop & Livestock Budgets Help Video
18 min · ≈ 81 MB · about ₦45
(opens youtube.com in a new tab)
-
Spreadsheet for Dairy Farm Management – Livestock Budget
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
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.