Excel Practice Test

โ–ถ

Learning how to do an Excel sum based on another column is one of the fastest ways to turn a messy list into clear answers. Imagine you are planning a trip and comparing Excellence Playa Mujeres against two other adults-only options. Your spreadsheet holds hundreds of rows of costs, and you only want the total for one resort. Instead of filtering and adding by hand, a single formula reads one column, checks a condition, and adds the matching numbers from a second column automatically.

Learning how to do an Excel sum based on another column is one of the fastest ways to turn a messy list into clear answers. Imagine you are planning a trip and comparing Excellence Playa Mujeres against two other adults-only options. Your spreadsheet holds hundreds of rows of costs, and you only want the total for one resort. Instead of filtering and adding by hand, a single formula reads one column, checks a condition, and adds the matching numbers from a second column automatically.

The function that does this is SUMIF, and a good excel sumif formula example shows its logic in one line. SUMIF takes three arguments: the range to test, the criteria to match, and the range to add. For instance, =SUMIF(A2:A200,"Excellence Playa Mujeres",C2:C200) tests every cell in column A, and whenever it finds that resort name it adds the number from the same row of column C. The result updates instantly whenever your data changes.

Why does this matter beyond vacation planning? Almost every real spreadsheet has one column that describes something and another that measures it. Sales by region, hours by employee, expenses by category, and scores by student all follow the same pattern. Once you understand conditional summing, you stop copying numbers into calculators and start building reports that refresh themselves. Employers frequently test this skill, and it appears on nearly every Excel certification practice exam, from beginner to advanced levels.

This guide walks through the full toolkit. You will start with plain SUMIF, then move to SUMIFS for several conditions, then see how wildcards, comparison operators, and dates extend both functions. We also compare alternatives such as SUMPRODUCT, pivot tables, and the lookup approach behind VLOOKUP in Excel, so you can pick the right tool for each job. Every example uses a realistic trip budget, which keeps the numbers concrete and easy to verify with your own data.

You do not need advanced skills to follow along. If you can click a cell, type an equals sign, and select a range, you can build every formula here. Along the way you will also see housekeeping tricks that make a summary sheet cleaner, such as how to create a drop down list in Excel for the criteria cell, how to freeze a row so headers stay visible, and when merging cells helps or hurts your formulas.

By the end, you should be able to sum any column based on text, number, or date conditions, diagnose the usual errors, and explain your formula to a colleague. Practice matters more than reading, so build the sample table yourself, type each formula, and compare your totals with the expected results. Then test yourself with the free practice questions linked below to confirm that the syntax is firmly in your memory before an exam or a real job task.

Excel Conditional Sums by the Numbers

๐Ÿ“‹
3
SUMIF Arguments
๐Ÿ”„
127
SUMIFS Condition Pairs
โœ๏ธ
255
Criteria Character Limit
โฑ๏ธ
2007
Year SUMIFS Arrived
๐Ÿ“Š
1,048,576
Rows per Worksheet
Practice Excel Sum Based on Another Column Questions

How to Sum Based on Another Column in Excel, Step by Step

๐Ÿ“‹

Give every column a clear header, remove blank rows, and keep text consistent. Put the resort or category in column A and the amount in column C. Clean, uniform data prevents most formula problems before you type anything.

๐ŸŽฏ

Type the value you want to match, such as Excellence El Carmen, into a separate cell like E2. Referencing a cell instead of typing the text inside the formula makes the calculation reusable and far easier to change later.

โœ๏ธ

Enter =SUMIF($A$2:$A$100,E2,$C$2:$C$100) in the cell beside it. Excel checks each row in column A against E2 and adds the matching amounts from column C. Press Enter and read the total.

๐Ÿ”„

When you need two or more rules, switch to SUMIFS. Place the sum range first, then add each range and criteria pair. For example, add an expense type column so you total only Food costs for one resort.

โœ…

Drag the formula down a list of categories, then check one total manually by filtering the source column and reading the status bar sum. If both numbers agree, your formula is built correctly.

SUMIF Syntax Explained With a Resort Budget Example

Start with a simple table. Column A lists the resort, column B lists the expense type, and column C lists the cost in US dollars. Rows include Excellence Playa Mujeres at $2,850 for a week, Excellence El Carmen at $2,640, Excellence Coral Playa Mujeres at $3,120, and several smaller expenses for each property. The goal is a summary that shows the total spent per resort without sorting or filtering the original data.

The syntax is =SUMIF(range, criteria, [sum_range]). The range is the column Excel inspects, such as A2:A100. The criteria is what must match, written as text in quotes, a number, an expression like ">500", or a cell reference. The sum_range is the column that gets added, such as C2:C100. If you omit sum_range, Excel adds the cells in the first range itself, which works only when that range holds numbers.

Always keep the range and sum_range the same size. If A2:A100 is tested but C2:C150 is summed, Excel resizes the sum range from its top-left cell, which can quietly produce wrong answers. Using whole-column references like A:A and C:C avoids a mismatch and automatically includes new rows, though very large workbooks may calculate slightly slower. Many professionals instead convert the data to an Excel Table so references expand with the data and stay aligned.

Putting the criteria in a cell makes the formula reusable. Suppose E2 contains Excellence Coral Playa Mujeres. The formula =SUMIF($A$2:$A$100,E2,$C$2:$C$100) returns that resort's total, and dragging it down a list of resort names fills the whole summary. The dollar signs lock the ranges so they do not shift as you copy. This single habit, referencing a criteria cell, separates a quick calculation from a reliable report you can hand to someone else.

You can make that criteria cell safer with a dropdown. Select E2, open Data Validation, choose List, and point it at your resort names. Anyone using the sheet can then pick a resort instead of typing it, which eliminates the misspellings that cause zero totals. This is the standard answer to how to create a drop down list in Excel, and it pairs naturally with SUMIF because the formula recalculates the instant the selection changes.

SUMIF is also not case sensitive, so Excellence Resorts and EXCELLENCE RESORTS match the same rows. It does treat extra spaces as part of the text, though, which is a common trap when data is pasted from websites. If a total looks too low, check for trailing spaces with the LEN function or clean the column using TRIM. Fixing data quality first usually resolves a problem more quickly than rewriting the formula itself.

EXCEL Practice Test: Video 1 Answers (25 Questions)
Work through 25 video-based questions covering core Excel skills and formulas with answers.
Free Excel Basic and Advance Questions and Answers
Test beginner and advanced Excel knowledge, from simple sums to conditional formulas.

Excel SUMIF vs SUMIFS vs VLOOKUP Excel Methods

๐Ÿ“‹ SUMIF

Use SUMIF when you have exactly one condition. It is the simplest option and the easiest to audit because the three arguments read left to right: where to look, what to match, and what to add. For example, =SUMIF(A2:A100,"Excellence Resorts",C2:C100) totals every row tagged with that brand. Beginners should master this version first, since the logic transfers directly to every other conditional function.

SUMIF also accepts wildcards and operators. An asterisk matches any number of characters, so "Excellence*" totals every resort whose name begins with that word. A question mark matches a single character. Operators such as ">=500" or "<>Food" let you sum amounts above a threshold or exclude a category. Operators must sit inside quotes, and joining one to a cell uses the ampersand, like ">"&F2.

๐Ÿ“‹ SUMIFS

SUMIFS handles two or more conditions, and its argument order differs: the sum_range comes first. The formula =SUMIFS(C2:C100,A2:A100,E2,B2:B100,"Food") adds costs only where the resort matches E2 and the expense type is Food. Every extra condition adds a pair of arguments, up to 127 pairs, and all conditions must be true at once, so SUMIFS behaves like AND logic across the supplied ranges.

For OR logic, add two SUMIFS results together, or use an array constant inside SUM. For example, =SUM(SUMIFS(C:C,A:A,{"Excellence El Carmen","Excellence Playa Mujeres"})) totals both resorts in one cell. Date ranges work with two criteria on the same column, such as ">="&G1 and "<="&G2, which makes monthly or quarterly summaries easy to build without any helper columns or manual filtering.

๐Ÿ“‹ VLOOKUP and Pivots

People often ask whether VLOOKUP in Excel can sum by another column. Not directly. VLOOKUP returns the first match it finds, so it retrieves a single value rather than adding many rows. It is perfect for pulling a nightly rate from a price table, but not for totaling. Pair it with SUMIF by first using VLOOKUP to attach a category to each row, then summing by that helper column.

Pivot tables are the better alternative when you need many totals at once. Select your data, insert a PivotTable, drag Resort to Rows and Cost to Values, and Excel produces a sum for every resort instantly. Pivots do not update until you refresh them, whereas SUMIF recalculates live. Choose formulas for dashboards that must stay current, and choose pivots for exploration where flexibility matters more than automation.

Is SUMIF Better Than a Pivot Table for Summing by Another Column?

Pros

  • Recalculates instantly when source data changes
  • Fits inside any cell, so it works in dashboards and reports
  • Easy to read once you know the three arguments
  • Works in every modern version of Excel
  • Accepts cell references, wildcards, and operators for flexible criteria
  • Needs no refresh step or separate pivot sheet

Cons

  • Only one condition, so you need SUMIFS for more
  • Each total needs its own formula, which is slower to build for many categories
  • Typos in criteria silently return zero
  • Mismatched range sizes can give wrong answers
  • Case-insensitive matching cannot be changed without other functions
  • Very large whole-column formulas can slow big workbooks
Free Excel Formulas Questions and Answers
Practice SUM, IF, SUMIF, and other formula questions with explained answers.
Free Excel Functions Questions and Answers
Check your knowledge of lookup, logical, and conditional functions in Excel.

Checklist: Build an Excel Sum Based on Another Column

Give every column a clear header in row 1.
Remove blank rows and stray totals from the data range.
Confirm amounts are true numbers, not text.
Trim extra spaces from the criteria column.
Type the criteria in its own cell, such as E2.
Add a dropdown list to that cell with Data Validation.
Write the SUMIF with absolute references like $A$2:$A$100.
Use SUMIFS when you need a second or third condition.
Freeze the top row so headers stay visible while scrolling.
Check one total by filtering and reading the status bar.
SUMIF and SUMIFS Are Not Interchangeable

In SUMIF the sum_range comes last and is optional. In SUMIFS the sum_range comes first and is required. Swapping the order rarely causes an error, it just returns a wrong number, so double-check every time you convert one formula into the other.

Common SUMIF Errors and How to Fix Them

The most common complaint is that SUMIF returns zero even though matching rows clearly exist. In most cases the numbers are stored as text. You can spot them by the small green triangle in the corner of the cell or by left alignment. Select the column, click the warning icon, and choose Convert to Number. Alternatively, multiply the column by one with Paste Special. Once the values are true numbers, the formula totals them correctly.

A #VALUE! error usually has one of three causes. The criteria string may exceed 255 characters, the formula may reference a closed external workbook, or a SUMIFS range may be a different size from the others. SUMIFS is strict here: every range must have identical rows and columns. SUMIF is more forgiving but still unreliable when sizes differ. Compare the row numbers in each range, and the error normally disappears right away.

Wrong totals without any error message are more dangerous. They typically come from partial ranges, such as summing A2:A90 when data extends to row 120, or from criteria typed with a typo. A quick audit method is to filter the source column for your criteria and read the total in the status bar at the bottom of the window. If that number differs from your formula result, the formula needs attention.

Hidden characters cause many mysterious mismatches. Data copied from web pages often contains non-breaking spaces that TRIM does not remove. Use =SUBSTITUTE(A2,CHAR(160),"") to strip them, or wrap CLEAN around the cell to remove non-printing characters. Create a helper column with the cleaned text, then point SUMIF at that helper column. It is a small extra step, but it saves hours of hunting through a long list for the culprit.

Merged cells deserve a warning. When you learn how to merge cells in Excel, it feels handy for report titles, but merging inside a data table breaks conditional sums. Only the top-left cell of a merged block holds a value, so the other rows look blank to SUMIF and get skipped. Unmerge the range, fill the values down, and consider Center Across Selection for visual alignment instead, which keeps every cell intact.

Date conditions are another trap. If dates are typed as text, comparisons such as ">="&G1 fail silently. Use DATEVALUE to convert them, or re-enter them in a recognized format. When auditing long sheets, learn how to freeze a row so your header stays visible while you scroll: choose View, Freeze Panes, then Freeze Top Row. Seeing the header while you check criteria prevents the classic mistake of summing the wrong column.

Real-World Examples: Budgets, Sales Reports, and Study Trackers

Consider a monthly travel fund. Column A holds the resort, column B the month, and column C the cost. A manager wants to know how much was spent at Excellence El Carmen during March. The formula =SUMIFS(C:C,A:A,"Excellence El Carmen",B:B,"March") answers in one cell. Duplicate it for each resort and month, and you have a grid that works as a full budget dashboard, refreshing the moment a new expense row is added.

Sales reports follow the same pattern. A table might list salesperson, region, and revenue. To total revenue for the West region, use SUMIF with the region column as the range. To find West region revenue from sales above $1,000, switch to SUMIFS and add a second condition on the revenue column. Teams commonly place these formulas on a summary tab that managers open every Monday morning to review results.

Learners can use the same idea for study tracking. Suppose you log hours by topic while preparing for a certification at an institute of creative excellence or any other training provider. Column A holds the topic, column B the hours. =SUMIF(A:A,"Formulas",B:B) shows how long you have spent on formulas. Comparing topic totals reveals neglected areas, and you can rebalance your schedule before test day using real data.

Personal finance works nicely too. Track books purchased for self-development, such as an inner excellence book, alongside gym fees and online courses, and tag each with a category like Learning. A single SUMIF reveals your annual learning spend. Add a second condition for the year and you can compare 2025 against 2026. Seeing categories as numbers often changes habits more effectively than a vague feeling about where the money went.

For team projects, use SUMIF to total hours by assignee or task status. If you maintain a project tracker, sum the budget for tasks marked In Progress, then separately for Completed. This gives a live picture of committed versus delivered cost. Combined with conditional formatting, a red cell can appear when a category exceeds its budget. Stakeholders do not need to understand the formula; they simply see an accurate and current number.

When results matter, protect the summary sheet. Place formulas on one tab and raw data on another, lock the formula cells, and let colleagues edit only the input tab. Document each formula with a short note beside it explaining the criteria. Six months later, you or a coworker will be glad the logic is written down, and audits of the workbook become far less stressful for everyone involved in the process.

Test Your Excel SUMIFS Skills With Free Questions

Practical Tips to Master Conditional Sums Before Your Exam

Practice beats memorization. Build a small table of at least 30 rows with a text column and a number column, then write ten different SUMIF formulas against it: exact match, wildcard match, greater than, less than, not equal, blank cells, and cell-referenced criteria. Check each result by filtering manually. Doing this once cements the argument order far better than rereading notes, and it reveals your personal weak spots quickly so you can target them.

Memorize the argument order difference. SUMIF puts the sum_range last and makes it optional, while SUMIFS puts the sum_range first and requires it. Exams love this distinction, and so do real workplaces, where swapped arguments return plausible but wrong numbers. A simple memory aid: in SUMIFS, the S stands for sum first. Say it aloud while typing until the habit becomes automatic and you no longer need to stop and think.

Use keyboard shortcuts to speed up. Press F4 to cycle through absolute and relative references, Ctrl+Shift+Down to select a column of data, and Alt+= to insert an AutoSum. Pressing F2 on a cell enters edit mode and colors each range, which helps you verify that the ranges line up. Faster editing means more repetitions in the same study session, and repetitions are what build lasting fluency with formulas.

Learn to read formulas, not just write them. Exam questions often show a formula and ask what it returns, or show a wrong result and ask for the fix. Practice by tracing a formula row by row: which rows meet the criteria, which values get added, and what the total is. Use the Evaluate Formula tool on the Formulas tab to step through calculations and see each intermediate result.

Pair SUMIF with its siblings. COUNTIF counts matching rows, AVERAGEIF averages them, and MAXIFS and MINIFS return the largest and smallest matching values. They share nearly the same syntax, so learning one teaches the rest. When you are comfortable, combine them: total spent divided by number of transactions gives an average, and you can check it against AVERAGEIF to confirm your logic is correct before relying on it.

Finally, schedule short, consistent sessions. Twenty minutes a day for two weeks outperforms one four-hour cram session. Alternate between building formulas on your own data and answering timed multiple-choice questions. Review every wrong answer until you can explain it. Keep a personal cheat sheet with your most useful patterns, and when a new task arrives at work, apply the formulas to real data immediately so the skill sticks.

Free Excel MCQ Questions and Answers
Multiple-choice Excel questions to check formula knowledge quickly and spot weak areas.
Free Excel Questions and Answers
Certification-style Excel practice questions with answers to prepare for your next exam.

Excel Questions and Answers

How do I sum one column based on another column in Excel?

Use SUMIF. The formula =SUMIF(A2:A100,"Food",C2:C100) checks column A for the word Food and adds the matching numbers from column C. Replace the quoted text with a cell reference to make it reusable. For several conditions, use SUMIFS, which places the sum range first and then each range and criteria pair.

What is the difference between SUMIF and SUMIFS?

SUMIF supports a single condition and lists the sum range last. SUMIFS supports up to 127 conditions and lists the sum range first. SUMIFS requires every range to be the same size, and all conditions must be true for a row to be included. Use SUMIF for simple cases and SUMIFS whenever you need two or more rules.

Why does my SUMIF formula return zero?

The usual causes are numbers stored as text, extra spaces in the criteria column, or a typo in the criteria. Check for the green triangle in cells, convert the column to numbers, and clean spaces with TRIM. Also confirm the criteria matches exactly, since SUMIF ignores case but not spaces or spelling differences.

Can SUMIF use wildcards?

Yes. An asterisk matches any number of characters and a question mark matches exactly one. For example, "Excellence*" sums every row beginning with Excellence. To match an actual asterisk or question mark, place a tilde before it. Wildcards work only with text criteria, not with numbers or true dates.

How do I sum values greater than a number?

Put the operator and number in quotes, such as =SUMIF(C2:C100,">500"). This adds every value above 500. To use a cell for the threshold, join it with an ampersand, like ">"&F2. In that case the range and sum range can be the same, so the third argument is optional.

Can VLOOKUP sum values based on another column?

No. VLOOKUP returns only the first match it finds, so it cannot add several rows. Use SUMIF or SUMIFS for totals. You can combine them by using VLOOKUP to add a category label to each row in a helper column, then summing by that helper column with SUMIF.

How do I sum by two conditions at once?

Use SUMIFS. For example, =SUMIFS(C2:C100,A2:A100,"Excellence El Carmen",B2:B100,"Food") totals Food costs for that resort only. Each additional condition is another range and criteria pair. All conditions must be met in the same row, which makes SUMIFS act like an AND test.

How do I sum between two dates?

Use SUMIFS with two conditions on the date column: =SUMIFS(C:C,B:B,">="&G1,B:B,"<="&G2). Put the start date in G1 and the end date in G2. Make sure the dates are real Excel dates, not text, or the comparison will fail without showing an error message.

Why do merged cells cause problems with SUMIF?

In a merged block only the top-left cell holds a value, and the other cells are empty. SUMIF reads those empty cells as blank and skips them, so totals come out too low. Unmerge the cells and fill the value down, or use Center Across Selection for a similar look without merging.

Is a pivot table or SUMIF better for summing by category?

SUMIF is better when you need live, automatic updates inside a report or dashboard. A pivot table is better when you want to explore many categories quickly without writing formulas. Pivot tables need a manual refresh after the data changes, while SUMIF recalculates immediately whenever the source values change.
โ–ถ Start Quiz