SEC | S20W2 | Data Analysis with Google Sheets: (Advanced Excel formulas, and pivot tables.)

in #spreadsheet-s20w22 months ago (edited)

steemit-engagement-challenge-cover.jpeg

Greetings Steemit friends


  • Explain what you understand by Advanced Excel Formulas, and show us where advanced formulas such as the lookup function, and logical function are found in Excel with clear screenshots.

Advanced Excel Formulas, from the term advance, is an upgrade of the simple formulas we can find on Microsoft Excel. Advanced means the formula is made of multiple functions to obtain its objective. As I mentioned, advanced formulas af are more complex than the normal simple functions. Advanced formulas have proven to be more efficient in handling huge amounts of data collected.

Lookup function

The lookup function searches related data from a table and displays it more efficiently. The lookup function is best for data analysis and reporting accurate results while limiting common human errors. There are five lookup functions: Vertical Lookup, Horizontal Lookup, INDEX, MATCH, LOOKUP, and XLOOKUP. Lookup functions work best with an array of data.

Where to access the lookup function

Launch the Microsoft Excel package
On the menu, you click formulas, next after the page layout tab.

Screenshot 2024-09-21 133241-1a.jpg

On the ribbon, you have two options.
Click Insert functions, a longer process, or click Lookup & references.

Screenshot 2024-09-21 133241-1b.jpg

By clicking Insert functions, a new tab will pop up. You used the drop-down to look for the Lookup function. Move down to select your desired lookup function and click okay.

Screenshot 2024-09-21 133241-1c.jpg

Clicking the lookup & reference is more direct, as lookup functions are listed waiting to be selected.

Screenshot 2024-09-21 133241-1d.jpg

Logical Functions

Logical Functions are conditional operations amid getting a Boolean data type result. The result is in two ways, either true or false. Some of the conditional statements in logical functions are IF, AND, OR, NOT, SWITCH, etc.

Launch the Microsoft Excel package
On the menu, you click formulas, next after the page layout tab.
Click Insert functions, a longer process, or click Lookup & references.

Screenshot 2024-09-21 141451-2a.jpg

Screenshot 2024-09-21 141451-2b.jpg

Screenshot 2024-09-21 141451-2c.jpg

Write the IF Function formula to calculate the total, average score, and grade of students given in the table below.


To get the total scores for all subjects, we will be making use of a simple SUM function. I have created a new column Total. Click in the first cell, to apply the function.

Screenshot 2024-09-21 145817-Q2a.jpg

=SUM(B2:E2)

Screenshot 2024-09-21 145817-Q2c.jpg

To calculate the average, we use the simple AVERAGE function. The steps are not different from that of the SUM.

Screenshot 2024-09-21 145817-Q2d.jpg

=AVERAGE(B2:E2)

Screenshot 2024-09-21 145817-Q2e.jpg

Screenshot 2024-09-21 145817-Q2f.jpg

Calculating the grade required us to check if the value is true or false to give a specific grade. For this reason, a logical function is needed for me to be able to achieve a more efficient and accurate grade for each student. So we will make use of logical operators like >, <, =, >=, <=, or <> in our if statement based on the average score of each student.

I will have more than one IF function separated by a comma, and each will check if the average score is greater than or equal to an assigned value. Then the grade will be outputted.

Method 1

=IF(AVERAGE(B2:E2) >= 90, "A",
IF(AVERAGE(B2:E2) >= 80, "B",
IF(AVERAGE(B2:E2) >= 70, "C",
IF(AVERAGE(B2:E2) >= 60, "D", "F"))))

Screenshot 2024-09-21 145817-Q2av-a.jpg

Method 2

=IF(G2 >= 90, "A",
IF(G2 >= 80, "B",
IF(G2 >= 70, "C",
IF(G2 >= 60, "D", "F"))))

Screenshot 2024-09-21 145817-Q2av-b.jpg

Both methods will give the same results; note method 1 makes use of the average function. Method 2 is making used of the results achieved in G2.

Screenshot 2024-09-21 145817-Q2av-c.jpg

Screenshot 2024-09-21 145817-Q2av-d.jpg


Briefly discuss four IF function Operators that you have learned and tell us their functions and when we are to use them.


IF Function formula is a logical function as mentioned above. It is used if the Function is to have results in a True state or a False state. This can only be achieved with logical operators in the If function.

Greater Than (>): the greater than operator tells the function to check the values greater than another. In Excel, we can work with cells, or functions to compare their resulting values. When can we use it? We can use it to set a bar to validate the status of a student. I will use the average of the students in the table above to determine which student remarked.

Screenshot 2024-09-21 185547Q-3a.jpg

=IF(G2 > 60, "Pass", "Fail")

Screenshot 2024-09-21 185547Q-3b.jpg

Less Than (<): The less-than operator is the opposite of the greater-than operator. The same principle applies to setting a threshold to differentiate a certain value from a particular target. 50 is our threshold to tell us which student had below average in maths.

Screenshot 2024-09-21 185547Q-3c.jpg

=IF(B2 < 50, "Below Average", "Above Average")

Screenshot 2024-09-21 185547Q-3d.jpg

Equal To (=): The equal operation is used to check two values that are the same. This operator is used to check the exact values of a score.

Screenshot 2024-09-21 185547Q-3e.jpg

=IF(G2 = 100, "Excellent", "Not Bad")

Screenshot 2024-09-21 185547Q-3f.jpg

Not Equal To (<>): the not equal operator is used to check two values that do not match. This operator can be used to check errors on a sheet.

Screenshot 2024-09-21 185547Q-3g.jpg

=IF(B2 <> 0, "Marks Enter", "Marks Not Enter")

Screenshot 2024-09-21 185547Q-3h.jpg

Here, I was trying to the check the students whose marks were entered or who had a zero in Maths.


Based on the given data below: Create a pivot table that shows (see) total sales by product, by dragging the product to the Rows areas, Region to the Column area, and Sales to the Values area. Please we want to see the steps you take in adding your pivot table.


Since our available data is not huge, I will go ahead to demonstrate how to create a Pivot table on the same sheet.

Screenshot 2024-09-21 230243-last-1.jpg

Click Insert and highlight all the cells containing the data.

Screenshot 2024-09-21 230243-last-2.jpg

Click Pivot table, and the new tab pops up

On the new tab, we can accurately input the data range needed. This in case we cannot highlight all cells necessary for the for the pivot table.

On this new tab, we have the possibility of creating our pivot on a new sheet. I mentioned I would be creating the pivot on the same sheet as the sheet holding the information.

The next requirement is the location on the same sheet, I input H2 and click Ok.

Screenshot 2024-09-21 230243-last-3.jpg

This time a sidebar is introduced holding data labels. to complete our task of creating the pivot table. On the sidebar, drag the label Products to the rows, drag Region to the column, and drag Sales to the value.

Screenshot 2024-09-21 230243-last-4.jpg

Our pivot table auto-generated using the date from the original table.

Screenshot 2024-09-21 230243-last-5.jpg

Sort:  
Loading...
CONGRATULATIONS!!

Your post has been supported by TEAM SHINING STARS. We support quality posts, good comments anywhere, and any tags.


1000152665.gif

Curated by : @wilmer1988

Coin Marketplace

STEEM 0.20
TRX 0.19
JST 0.034
BTC 91295.19
ETH 3130.58
USDT 1.00
SBD 2.89