Interactive spreadsheet tips: 5 best practices (Part-2)

Interactive spreadsheet tips: 5 best practices (Part-2)

1. Split up text information between columns.

What if you want to split out information that's in one cell into two different cells? For example, maybe you want to pull out someone's company name through their email address. Or perhaps you want to separate someone's full name into a first and last name for your email marketing templates.

Thanks to Excel, both are possible. First, highlight the column that you want to split up. Next, go to the Data tab and select "Text to Columns." A module will appear with additional information.

First, you need to select either "Delimited" or "Fixed Width."

  • "Delimited" means you want to break up the column based on characters such as commas, spaces, or tabs.
  • "Fixed Width" means you want to select the exact location on all the columns that you want the split to occur.

In the example case below, let's select "Delimited" so we can separate the full name into first name and last name.

Then, it's time to choose the Delimiters. This could be a tab, semi-colon, comma, space, or something else. ("Something else" could be the "@" sign used in an email address, for example.) In our example, let's choose the space. Excel will then show you a preview of what your new columns will look like.

When you're happy with the preview, press "Next." This page will allow you to select Advanced Formats if you choose to. When you're done, click "Finish."

2. Use formulas for simple calculations.

In addition to doing pretty complex calculations, 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.

You can also use parentheses to ensure certain calculations are done first. In the example below (10+10*10), the second and third 10 were multiplied together before adding the additional 10. However, if we made it (10+10)*10, the first and second 10 would be added together first.

3. Get the average of numbers in your cells.

If you want the average of a set of numbers, you can use the formula =AVERAGE(Cell1:Cell2). If you want to sum up a column of numbers, you can use the formula =SUM(Cell1:Cell2).

4. Use conditional formatting to make cells automatically change color based on data.

Conditional formatting allows you to change a cell's color based on the information within the cell. For example, if you want to flag certain numbers that are above average or in the top 10% of the data in your spreadsheet, you can do that. If you want to color code commonalities between different rows in Excel, you can do that. This will help you quickly see information that is important to you.

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.

5. Use the IF Excel formula to automate certain Excel functions.

Sometimes, we don't want to count the number of times a value appears. Instead, we want to input different information into a cell if there is a corresponding cell with that information.

For example, in the situation below, I want to award ten points to everyone who belongs in the Gryffindor house. Instead of manually typing in 10's next to each Gryffindor student's name, I can use the IF Excel formula to say that if the student is in Gryffindor, then they should get ten points.

The formula is: IF(logical_test, value_if_true, [value_if_false])

Example Shown Below: =IF(D2="Gryffindor","10","0")

In general terms, the formula would be IF(Logical Test, value of true, value of false). Let's dig into each of these variables.

  • Logical_Test: The logical test is the "IF" part of the statement. In this case, the logic is D2="Gryffindor" because we want to make sure that the cell corresponding with the student says "Gryffindor." Make sure to put Gryffindor in quotation marks here.
  • Value_if_True: This is what we want the cell to show if the value is true. In this case, we want the cell to show "10" to indicate that the student was awarded the 10 points. Only use quotation marks if you want the result to be text instead of a number.
  • Value_if_False: This is what we want the cell to show if the value is false. In this case, for any student not in Gryffindor, we want the cell to show "0". Only use quotation marks if you want the result to be text instead of a number.

Note: In the example above, I awarded 10 points to everyone in Gryffindor. If I later wanted to sum the total number of points, I wouldn't be able to because the 10's are in quotes, thus making them text and not a number that Excel can sum.

The real power of the IF function comes when you string multiple IF statements together, or nest them. This allows you to set multiple conditions, get more specific results, and ultimately organize your data into more manageable chunks.

Ranges are one way to segment your data for better analysis. For example, you can categorize data into values that are less than 10, 11 to 50, or 51 to 100. Here's how that looks in practice: 

=IF(B3<11,“10 or less”,IF(B3<51,“11 to 50”,IF(B3<100,“51 to 100”)))

It can take some trial-and-error, but once you have the hang of it, IF formulas will become your new Excel best friend.

Sheenu Gupta

Team Manager at Pest-Cure Incorporation

2 年

Thanks for posting

回复
MUSTAPHA BAH

Student at Stratford college of management

2 年

Thank you for the note! it’s really a good use to me I learned something new

Nikhil M.

→Credit Manager at CSL Finance ·Ex-Portfolio Manager at ICICI HFC ?Alumni of Chitkara University ?Full |Time| Investor

2 年

Good one ! Khyati

Prince Gautam

Mis Executive / Data Analyst

2 年

Great share

要查看或添加评论,请登录

Khyati Malhotra的更多文章

社区洞察

其他会员也浏览了