your image

The Ultimate Guide to Using Microsoft Excel

HubSpot
hubspot
Related Topic
:- Microsoft excel

Excel Formulas

At this point, you’ve familiarized yourself with Excel’s interface and are already flying around your spreadsheets faster than Harry Potter on his Nimbus 2000. Let’s dive into the core use case for the software: Excel formulas. Excel can help you do simple arithmetic like adding, subtracting, multiplying, or dividing any of your data.

  • To add, use the + sign.
  • To subtract, use the - sign.
  • To multiply, use the * sign.
  • To divide, use the / sign.
  • To use exponents, use the ^ sign.

Remember, all formulas in Excel must begin with an equal sign (=). Use parentheses to ensure certain calculations are done first. For example, consider how =10+10*10 is different than =(10+10)*10.

 

In addition to manually typing in simple calculations, you can refer to Excel’s built-in formulas. Some of the most common include:

  • Average: =AVERAGE(cell range)
  • Sum: =SUM(cell range)
  • Count: =COUNT(cell range)

Also note that series of specific cells are separated by a comma (,), while cell ranges are notated with a colon (:). For example, you could have =SUM(4,4) or =SUM(A4,B4) or =SUM(A4:B4).

Conditional Formatting

Conditional formatting allows you to change a cell's color based on the information within the cell. For instance, if you want to flag certain numbers that are above average or in the top 10% of the data in your spreadsheet.

To get started, highlight the group of cells you want to use conditional formatting on. Then, choose "Conditional Formatting" from the Home menu and select your logic from the dropdown. (You can also create your own rule if you want something different.) A window will pop up that prompts you to provide more information about your formatting rule. Select "OK" when you're done, and you should see your results automatically appear.

 

Dollar Signs

Have you ever seen a dollar sign in an Excel formula? When used in a formula, it isn't representing an American dollar; instead, it makes sure that the exact column and row are held the same even if you copy the same formula in adjacent rows.

You see, a cell reference — when you refer to cell A5 from cell C5, for example — is relative by default. In that case, you're actually referring to a cell that's five columns to the left (C minus A) and in the same row (5). This is called a relative formula. When you copy a relative formula from one cell to another, it'll adjust the values in the formula based on where it's moved. But sometimes, we want those values to stay the same no matter whether they're moved around or not. We can do that by making the formula in the cell into what's called an absolute formula.

To change the relative formula (=A5+C5) into an absolute formula, we'd precede the row and column values by dollar signs, like this: (=$A$5+$C$5).

Combine Cells Using “&”

Databases tend to split out data to make it as exact as possible. For example, instead of having a data that shows a person's full name, a database might have the data as a first name and then a last name in separate columns. Or, it may have a person's location separated by city, state, and zip code. In Excel, you can combine cells with different data into one cell by using the "&" sign in your function.

Our example below uses this formula: =A2&" "&B2

Let's go through the formula together using an example. Pretend we want to combine first names and last names into full names in a single column. To do this, we'd first put our cursor in the blank cell where we want the full name to appear. Next, we'd highlight one cell that contains a first name, type in an "&" sign, and then highlight a cell with the corresponding last name.

But you're not finished. If all you type in is =A2&B2, then there will not be a space between the person's first name and last name. To add that necessary space, use the function =A2&" "&B2. The quotation marks around the space tell Excel to put a space in between the first and last name.

 

Comments