HOW-TO 058 · Microsoft Excel and Google Sheets Basics

How to use SUMIF and COUNTIF formulas

You want totals and counts by department or category. The method below walks you through the work without assuming you know the software.

Before you start

FILE OPTIONAL: your Excel sheet. If you have it, select + or the paperclip, choose Upload file and wait until its name appears. Otherwise start a new chat and describe what you need. Never upload confidential material to an unapproved tool.

YOUR READY-TO-USE PROMPT

Copy this into your AI tool

I need to use SUMIF and COUNTIF formulas. I am a beginner, so explain unfamiliar terms in plain English. Ask me one simple question at a time. Wait for my reply before asking the next. Find out the data columns, the criteria, and the sample rows. If there is a file, first confirm you can read it and ask for any missing information. When you have enough details, complete the task this way: Write Excel SUMIF and COUNTIF formulas for the data columns I share using the criteria we discuss. Use the sample rows we discuss to demonstrate the exact range and condition, explain absolute references, and show how to copy the formula for additional categories. Include a SUMIFS example if more than one condition applies. Use only what I provide or sources you can actually verify. Do not make up facts, figures, names or approvals. If you cannot create the requested file or perform a tool action, tell me exactly how to complete that part myself. After you show the result, let me request a shorter or clearer version. If you can make the .xlsx file, provide it; otherwise show exact Excel cell references and formulas I can copy.
Paste it into an AI application and answer its questions.
Example, follow-up prompt and final checks

Example conversation

AI might ask: Do you have the material you want me to work with?

You might reply: Yes, I can attach it now.

Example result

=SUMIF($A:$A,"Transport",$C:$C) and =COUNTIF($A:$A,"Transport").

Improve your result

If an .xlsx file is available, download it and open it in Excel. Otherwise follow the cell-by-cell instructions.

Add a formula for counting entries in a date range.

Before you use it

Manually verify at least one category total.