How to "BUILD" Excel Formulas - 5 Advanced Examples
Creating Complex Excel Formulas
Introduction to Complex Formulas
- Writing complex formulas in Excel is compared to building with Lego; having the right components is essential, but knowing how to combine them is crucial for creating something beautiful.
- The video aims to explain how to create complex Excel formulas using basic functions like SUM, VLOOKUP, and IF.
Examples of Real-World Scenarios
- Five real-world scenarios will be covered: finding the best GPA student, identifying the best salesperson by territory, extracting last names from full names, calculating bonuses per department using nested IF formulas, and determining a "manager's manager."
Finding the Best GPA Student
Using XLOOKUP for Maximum GPA
- To find the student with the highest GPA among 40 students, a MAX function identifies the highest value while XLOOKUP retrieves the corresponding name.
- Instead of hardcoding values into XLOOKUP, it calculates maximum GPA dynamically by referencing an array.
Identifying Top Students
- For finding the second-highest GPA or top five students, a LARGE function can be used instead of MAX.
- An advanced method involves using SORTBY to sort students by their GPAs in descending order and then limiting results with INDEX and SEQUENCE functions.
Best Salesperson by Territory
Filtering Data for Specific Territories
- The data is organized in a table format which allows better formula writing. The goal is to find the best salesperson based on input territory (e.g., Nagpur).
- A FILTER function simplifies retrieving sales data specific to a territory before sorting it to identify top performers.
Calculating Sales Amount and Total Sales Percentage
- After identifying the best salesperson's name through INDEX after sorting filtered data, their total sales amount can be calculated using SUMIFS.
Extracting Last Names from Full Names
Flash Fill vs. Formula Approach
- Flash Fill can quickly extract last names without formulas but requires manual intervention if data changes.
Formula Method for Dynamic Extraction
- A formula-based approach involves counting spaces in full names using SUBSTITUTE and extracting text after locating the last space with FIND and MID functions.
Calculating Employee Salary Bonuses
Nested IF Conditions for Bonus Calculation
- The bonus structure includes various conditions based on gender, department, joining date, and salary thresholds.
- Using IFS function allows concise coding of multiple conditions that determine bonus percentages based on specified criteria.
Managers' Manager Mystery
Hierarchical Lookup Challenge
- This example involves hierarchical employee data where each employee has a manager. The task is to find each employee's manager's manager.
Implementing LOOKUP Functions
- Using XLOOKUP simplifies this process by looking up managers directly within structured data while handling cases where employees have no managers effectively.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.