4.2.10: Creating An Agricultural Database Exercise (Excel)
- Page ID
- 38023
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Creating an Agricultural Database in Excel: Comprehensive Exercise
Objective: This exercise will guide you through creating an agricultural database in Microsoft Excel, including inputting data, modifying tables, and generating simple queries and reports.
Step-by-Step Instructions
1. Create the Database Structure
1.1 Open Microsoft Excel:
- Start Excel and open a new blank workbook.
1.2 Define the Database Structure:
- Create a table to track various aspects of agricultural data. For this exercise, we will use a table for crop management.
1.3 Enter Column Headers:
- In the first row of your spreadsheet, enter the following column headers:
- A1:
Crop ID
- B1:
Crop Name
- C1:
Planting Date
- D1:
Harvest Date
- E1:
Field Location
- F1:
Quantity (Bushels)
- G1:
Notes
- A1:
2. Input Data
2.1 Format as Table:
- Highlight the range A1(including headers) and several rows below.
- Go to the “Insert” tab and click “Table.” Ensure “My table has headers” is checked and click “OK.”
2.2 Enter Sample Data:
- Input the following data into your table:
Crop ID | Crop Name | Planting Date | Harvest Date | Field Location | Quantity (Bushels) | Notes |
---|---|---|---|---|---|---|
001 | Corn | 2024-04-15 | 2024-08-15 | North Field | 120 | Organic variety |
002 | Soybean | 2024-05-01 | 2024-09-01 | South Field | 85 | High yield |
003 | Wheat | 2024-03-10 | 2024-07-10 | East Field | 200 | Winter wheat |
3. Modify Tables
3.1 Add New Columns:
- Click on any cell in the table and select “Table Design” from the ribbon.
- Click “Resize Table” to adjust the table range if needed.
- To add a new column, right-click on the header of an existing column (e.g., Column H) and select “Insert.”
3.2 Example New Column:
- Add a column header
Crop Type
in H1 and fill in values such as “Grain” or “Legume” for each crop.
4. Perform Queries
4.1 Use Filters:
- Click on the filter dropdown arrows in the header row.
- For example, to filter crops by “Field Location,” click the dropdown in Column E and select “North Field” to see only crops planted in that location.
4.2 Use Conditional Formatting:
- Highlight cells in Column F with a Quantity greater than 100.
- Select Column F, go to “Home” > “Conditional Formatting” > “Highlight Cell Rules” > “Greater Than,” and enter 100. Choose a format and click “OK.”
5. Generate Reports
5.1 Create a Summary Report:
- Add a new worksheet by clicking the “+” icon at the bottom.
- In the new worksheet, create a summary report of total quantities per crop type.
- Use the “SUMIF” function to calculate totals. For example:
- In cell A1:
=SUMIF(Table1[Crop Type], "Grain", Table1[Quantity (Bushels)])
- In cell A1:
5.2 Create a Pivot Table:
- Select any cell in your table, go to “Insert” > “PivotTable.”
- Place the PivotTable in a new worksheet.
- Drag “Crop Name” to the Rows area and “Quantity (Bushels)” to the Values area to see a summary of quantities by crop.
5.3 Design a Chart:
- Highlight the data you want to chart (e.g., Crop Name and Quantity).
- Go to “Insert” > “Charts” and select a chart type (e.g., Column Chart) to visually represent your data.
Exercise Summary
In this exercise, you created an agricultural database using Excel, including:
- Database Structure: Defined columns and formatted as a table.
- Data Input: Entered and formatted sample crop data.
- Table Modification: Added new columns and adjusted table settings.
- Queries: Applied filters, conditional formatting, and used functions for data analysis.
- Reports: Generated summary reports, created PivotTables, and designed charts for visual data representation.
This comprehensive exercise provides a solid foundation for using Excel to manage and analyze agricultural data effectively.