Excel formulas: the 15 essentials with examples, and a ready table made with AI
An Excel formula starts with “=” and calculates with the numbers in your cells: =SUM(B2:B10) adds everything from B2 to B10. Fifteen formulas cover most everyday work: totals and averages, conditions (IF), counting with a condition (COUNTIF) and lookups (VLOOKUP, XLOOKUP). Ask OrujovAI for a table and it hands you a ready Excel file with the formulas working.
How to write a formula: 5 rules
Know these and you can write and change every formula below yourself:
- Every formula starts with “=”: =B2+C2 adds two cells. Without the “=”, Excel keeps what you typed as plain text.
- A cell address is the column letter plus the row number: B2 is column B, row 2. B2:B10 means every cell from B2 to B10, and is called a range.
- Arguments go in brackets, separated by commas: =IF(B2>=50,"Pass","Fail"). If your computer uses Azerbaijani or Russian regional settings, Excel wants semicolons instead: =IF(B2>=50;"Pass";"Fail").
- Function names follow Excel's language: SUM, IF and VLOOKUP in English Excel, СУММ, ЕСЛИ and ВПР in Russian Excel. A name that doesn't match gives the #NAME? error.
- The $ sign locks an address: drag =B2*$E$1 down and B2 becomes B3, B4, while $E$1 stays put. To drag a formula, pull the small square at the bottom right of the cell.
The 15 formulas you'll need most
Change the addresses in the examples to match your own table.
- SUM: adds numbers. =SUM(C2:C31) totals a month of sales.
- AVERAGE: the mean. =AVERAGE(B2:B26) gives the class average.
- MIN and MAX: the smallest and the largest number. =MAX(B2:B26) is the top score.
- COUNT and COUNTA: count the cells with numbers, and the cells that aren't empty. =COUNTA(A2:A200) tells you how many names are on the list.
- IF: writes one of two answers depending on a condition. =IF(B2>=50,"Pass","Fail").
- IFS: checks several conditions in order. =IFS(B2>=90,"Excellent",B2>=70,"Good",B2>=50,"Pass",B2<50,"Fail"). Available from Excel 2019 and in Microsoft 365.
- SUMIF: adds the rows that meet a condition. =SUMIF(A2:A200,"Baku",C2:C200) totals only the sales in Baku.
- COUNTIF: counts the cells that meet a condition. =COUNTIF(B2:B26,">=50") counts how many students passed.
- VLOOKUP: looks something up in a table. =VLOOKUP(F2,A2:C200,3,FALSE) finds the code in F2 in column A and returns the third column of that row. FALSE means an exact match, so don't leave it out.
- XLOOKUP: the modern replacement for VLOOKUP, searching in any direction. =XLOOKUP(F2,A2:A200,C2:C200,"Not found"). Available from Excel 2021 and in Microsoft 365.
- INDEX and MATCH: a flexible lookup that works in every version. =INDEX(C2:C200,MATCH(F2,A2:A200,0)).
- IFERROR: shows your own text instead of an error. =IFERROR(VLOOKUP(F2,A2:C200,3,FALSE),"None").
- ROUND: rounds a number. =ROUND(C2*18%,2) works out 18% VAT, Azerbaijan's rate, to the qəpik.
- CONCAT: joins text. =CONCAT(A2," ",B2) puts a first name and a surname in one cell. In Excel 2016 and older, =A2&" "&B2 does the same.
- TODAY: today's date. =TODAY()-D2 shows how many days have passed since the date in D2.
Example: a sales table with VAT
See how several formulas work together in one table. Columns: A product, B quantity, C price (₼). The data runs from row 2 to row 11.
- D2: =B2*C2, the amount before VAT.
- E2: =ROUND(D2*18%,2), 18% VAT.
- F2: =D2+E2, the total with VAT. Then select D2:F2 and drag it down to row 11.
- F12: =SUM(F2:F11), the total of all sales.
- F13: =COUNTIF(F2:F11,">1000"), the number of sales over 1,000 ₼.
- F14: =INDEX(A2:A11,MATCH(MAX(B2:B11),B2:B11,0)), the product that sold the most.
Write formulas with AI and get a ready Excel file
You don't have to memorise formulas: say what you need in plain words. For example: “count the scores of 50 and above in column B” or “find the code from column A on the second sheet and bring back its price”. OrujovAI writes the formula, explains each part, and can show the version for Russian Excel too.
Need a whole table? Describe the columns and what to calculate, then add “give it to me as an Excel file”. The chat prepares an .xlsx file in which totals, averages, conditions and lookups are real formulas, so the results update when you change a number. The file opens in Excel, Google Sheets and Numbers.
- Open orujovai.com/chat.
- Describe the table: which columns, how many rows, what to calculate.
- Finish with “give it to me as an Excel file”.
- Download and open the file: the formulas work, so replace the sample numbers with yours.
- Need a change? Say it in the same chat, for example “add a discount column”, and you get an updated file.
Common errors and how to fix them
The error code tells you what went wrong:
- #DIV/0!: dividing by zero or by an empty cell. Check the divisor, or write =IFERROR(B2/C2,0).
- #N/A: VLOOKUP or XLOOKUP didn't find what it was looking for. Often there's an extra space in the code: clean it with =TRIM(A2).
- #VALUE!: maths on text. A number was typed as text, for example “1 200” with a space. Remove the space or set the cell to the Number format.
- #NAME?: the function name is misspelled or doesn't match Excel's language. Russian Excel needs СУММ, not SUM.
- #REF!: a cell or column the formula pointed to was deleted. Rebuild the formula.
- You see the formula instead of the result: the cell is formatted as Text, or there's a space before the “=”. Set the format to General and enter the formula again.
Questions
Which Excel formulas are used most?
Day to day you'll mostly need SUM, AVERAGE, IF, COUNTIF, SUMIF and VLOOKUP or XLOOKUP. Add MIN, MAX, ROUND and IFERROR and you can build most office spreadsheets yourself.
What's the difference between VLOOKUP and XLOOKUP?
VLOOKUP works in every version of Excel, but it only looks to the right and needs the number of the result column, and for an exact match you must end it with FALSE. XLOOKUP is newer (from Excel 2021 and in Microsoft 365): it searches in any direction, looks for an exact match by default and takes your own text for when nothing is found.
Why doesn't my formula work in Russian Excel?
Russian Excel uses Russian function names and separates arguments with semicolons: =СУММ(B2:B10) instead of =SUM(B2:B10), and =ЕСЛИ(B2>=50;"Yes";"No") instead of =IF(B2>=50,"Yes","No"). Saved files translate themselves: a workbook made in English Excel shows Russian names when you open it in Russian Excel.
Can AI write Excel formulas?
Yes. Tell OrujovAI what you want to calculate and it writes the formula and explains it. Ask for an Excel file and you get a ready .xlsx with working formulas, so the results update when you change the numbers.
Do these formulas work in Google Sheets?
Nearly all of them do, XLOOKUP and IFS included. The exception is CONCAT: in Google Sheets it joins only two values, so use =A2&" "&B2 there. As in Excel, whether arguments are separated by commas or semicolons depends on the sheet's regional settings.