iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Three Excel function groups can replace many repetitive spreadsheet tasks: use XLOOKUP to retrieve a matching value, SUMIFS or COUNTIFS to total or count records that meet conditions, and FILTER to return matching rows. They solve different problems, so choosing the right one matters more than trying to make one formula do everything. The title says “3 functions,” but the middle group contains two related functions: SUMIFS and COUNTIFS.
Which function should you use?
| Function | Use it when you need to | What it returns |
|---|---|---|
| XLOOKUP | Find a key in one range and retrieve related information from another | A corresponding value for the first match |
| SUMIFS | Add values from rows that meet one or more conditions | A total |
| COUNTIFS | Count entries that meet one or more conditions | A count |
| FILTER | Extract the rows or values that meet a condition | A potentially changing array of results |
Think of the tasks as retrieve, summarize, and extract. For instance, find an employee’s department with XLOOKUP, total qualifying orders with SUMIFS, count qualifying orders with COUNTIFS, or display all qualifying order rows with FILTER.
How do you look up a value in Excel?
Use XLOOKUP for a matching value
Suppose employee IDs are in A2:A100 and department names are in D2:D100. To return the department for the ID entered in F2, use:
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11=XLOOKUP(F2, A2:A100, D2:D100)
The arguments are the value to find, the range to search, and the range containing the result. Microsoft Support describes XLOOKUP as searching a range or array and returning the item corresponding to the first match it finds. Because the lookup and return ranges are separate, the result range can be to either side of the lookup range; you do not have to specify a column number.
#1 Best Overall
- Over 215 Microsoft Windows Excel Shortcuts
- Two-Sided Durable Laminiated Sheet
- Designed for Excel on a Windows Computer
You can also provide an optional value for a missing match, match behavior, or search direction. For example, this formula displays a message if the ID is not found:
=XLOOKUP(F2, A2:A100, D2:D100, "ID not found")
Check your Excel version before using the function: Microsoft states that XLOOKUP is not available in Excel 2016 or Excel 2019. Those versions may open a workbook containing an XLOOKUP formula created in a newer version, but that does not mean they can create and calculate the formula themselves. See Microsoft’s XLOOKUP function documentation for syntax and optional arguments.
How do you sum or count rows that meet multiple conditions?
Use SUMIFS to add matching values
SUMIFS adds values only for records that satisfy the criteria you specify. Imagine a table with order amounts in D2:D500, regions in A2:A500, and sales channels in B2:B500. This formula totals online orders in the West region:
Free tools Windows power users keep installed
One-click scans. No signup required.
=SUMIFS(D2:D500, A2:A500, "West", B2:B500, "Online")
Rank #2
- Instant Copilot. Unlock new possibilities with the dedicated Copilot key, which gives you instant access to experiences that can enhance your productivity¹.
- Enhance your experience With the new microphone mute key and snipping key
- Full keyboard experience. Features a full mechanical keyset, backlit keys, and a large trackpad for precise navigation and control. Optimal key spacing allows fast, fluid typing.
- Slim and compact Performs like a traditional, full-size keyboard.
- Clicks in place instantly Use in combination with the Surface Pro (11th Edition), Pro 9 and Pro 8* kickstand for a perfect laptop experience anywhere.
The first argument is the sum range. Each following pair identifies a criteria range and the condition it must meet. To add a threshold—for example, include only orders over 100—add another criteria pair:
=SUMIFS(D2:D500, A2:A500, "West", B2:B500, "Online", D2:D500, ">100")
Use COUNTIFS to count matching records
COUNTIFS applies the same paired-range-and-criteria approach, but counts records rather than adding amounts. To count online orders in the West region with amounts over 100, use:
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minute=COUNTIFS(A2:A500, "West", B2:B500, "Online", D2:D500, ">100")
Rank #3
- EXCEL SHORTCUTS. ZERO SEARCHING. – Our bestselling reference mat puts an extensive collection of commonly used commands, formulas and helpful tricks directly beneath your fingertips so you can find answers fast, work smarter and stay in the flow.
- YOUR DESK. SMARTER. – Clearly organized sections for navigation, selection, formatting, data and functions make it easy to find the right Excel command exactly when you need it.
- LEARN, WORK & RESET – Built-in desk-exercise diagrams give you 10 quick ways to stretch, recharge and return to work feeling sharper.
- ROOM TO WORK & CREATE – The extended 31.5 x 11.8-inch Pixiecube desk mat fits a laptop or keyboard and mouse, while the soft 2 mm surface adds comfort and protects your desktop.
- BUILT FOR REAL-WORLD WORKDAYS – A rugged stitched edge helps prevent fraying, and the water-resistant, stain-resistant surface protects against scratches, spills and everyday wear—because smarter desks should work harder.
Keep each criteria range aligned to the same rows in the table. A mismatched range can make the formula invalid or cause it to evaluate the wrong records. For a threshold stored in a cell such as F2, join the comparison operator to the cell reference: ">"&F2. Microsoft lists SUMIFS and COUNTIFS among Excel’s functions, describing their respective roles as summing and counting cells that meet multiple criteria.
How do you filter data with a formula?
Use FILTER to return matching rows
FILTER returns the parts of an array that meet a TRUE/FALSE condition. If A2:D500 contains an order table and column A contains the region, this formula returns every row for the West region:
=FILTER(A2:D500, A2:A500="West", "No matching orders")
The first argument is the data to return, the second is the include condition, and the optional third argument supplies a result when nothing matches. Microsoft Support says FILTER lets you filter a range of data based on criteria you define. Its FILTER function documentation covers the syntax and examples.
Rank #4
- Efficient Media Controls: The Wired Keyboard 600, designed by Microsoft, features a Media Center with four hot keys for easy control of play/pause, volume up, volume down, and mute functions.
- Quiet and Responsive Keys: Enjoy a comfortable typing experience with quiet, thin-profile keys that are both responsive and efficient.
- Convenient Shortcuts: Quickly access common tasks with dedicated shortcut keys, including a calculator hot key and a Windows start screen key.
- Spill-Resistant Design: Work confidently with a spill-resistant design that protects your keyboard from accidental messes.
- Plug-and-Play Simplicity: No software needed—just connect the keyboard to your PC and start using it right away, with a full number pad for efficient data entry.
Combine conditions for AND or OR
For multiple conditions that must all be true, multiply the TRUE/FALSE tests. This returns West-region orders with amounts over 100:
=FILTER(A2:D500, (A2:A500="West")*(D2:D500>100), "No matching orders")
For records that can meet either condition, add the tests. This returns orders from the West or East:
=FILTER(A2:D500, (A2:A500="West")+(A2:A500="East"), "No matching orders")
Best Value
- 💻 ✔️ EVERY ESSENTIAL SHORTCUT - With the SYNERLOGIC Reference Keyboard Shortcut Sticker, you have the most important shortcuts conveniently placed right in front of you. Easily learn new shortcuts and always be able to quickly lookup commands without the need to “Google” it.
- 💻✔️ Work FASTER and SMARTER - Quick tips at your fingertips! This tool makes it easy to learn how to use your computer much faster and makes your workflow increase exponentially. It’s perfect for any age or skill level, students or seniors, at home, or in the office.
- 💻 ✔️ New adhesive – stronger hold. It may leave a light residue when removed, but this wipes off easily with a soft cloth and warm, soapy water. Fewer air bubbles – for the smoothest finish, don’t peel off the entire backing at once. Instead, fold back a small section, line it up, and press gradually as you peel more. The “peel-and-stick-all-at-once” method only works for thin decals, not for stickers like ours.
- 💻 ✔️ Compatible and fits any brand laptop or desktop running Windows 10 or 11 Operating System.
- 💻 ✔️ Original Design and Production by Synerlogic Electronics, San Diego, CA, Boca Raton, FL and Bay City, MI, United States 2020. All rights reserved, any commercial reproduction without permission is punishable by all applicable laws.
Leave space for the results
FILTER can return multiple rows or columns, and Excel spills those results into neighboring cells. Keep the cells where the results need to appear clear; existing content in the output area can prevent the array from displaying properly. If no records match and the formula omits its third argument, Excel returns #CALC!, so include an if_empty value when an empty result is possible.
Linked dynamic arrays between workbooks have an additional constraint: Microsoft says the source and destination workbooks need to remain open for this scenario. Refreshing a linked formula after closing the source workbook can result in #REF!. More detail is available in Microsoft’s dynamic array and spilled array guidance.
Pick the formula that matches the job
- Need one related value? Use XLOOKUP when you have a key and want a corresponding result.
- Need a total? Use SUMIFS when only values meeting your conditions should be added.
- Need a record count? Use COUNTIFS when you want to know how many entries meet your conditions.
- Need the matching records themselves? Use FILTER when you want a live list of rows or values that meet a condition.
These formulas can reduce repeated manual lookup, sorting, filtering, or summarizing, but the amount of time saved depends on the workbook and the task. The cited Microsoft documentation explains how the functions work; it does not establish a typical time-saving figure.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

