How to "BUILD" Excel Formulas - 5 Advanced Examples

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.

Video description

Want to become an Excel PRO? Then you must build your formula skills. In this in-depth video, I share how I solve 5 real world problems with advanced Excel formulas. Watch my build and learn. EVERYTHING WILL BE AWESOME!!! The formulas are, 1) Best Student name by GPA 2) Best sales person in a location 3) Extracting last name from text 4) Multiple IF Condition 5) Manager's manager mystery Video timestamps⏱👉 =================== 0:00 - Introduction to complex formulas 1:28 - (1) Best GPA student name formula 2:37 - Second highest GPA student 3:27 - Top 5 students with GPA - LARGE formula approach 4:07 - Top 5 students with INDEX & SEQUENCE trick 5:48 - (2) Best salesperson by territory 8:14 - Calculating the amount & proportion for best salesperson 9:31 - (3) Extracting last name 9:54 - Last name without formula 10:52 - Last name with formula 14:32 - (4) Employee salary bonus with complex IF conditions 18:48 - (5) Manager's manager mystery formula 20:38 - Fixing errors with the formula Sample file 📗👉 ============= Please download the example workbook from here - https://chandoo.org/wp/wp-content/uploads/2021/12/complex-excel-formulas-5-real-world-examples.xlsx Companion Article - https://chandoo.org/wp/how-to-write-complex-excel-formulas/ For more Advanced Formula questions & examples, see this page - https://chandoo.org/wp/formula-forensics-homepage/ 💥Watch next 📽👉 ================ 10 Advanced IF formulas - https://youtu.be/-yFpzIRifK4 10 Advanced SUMIF formulas - https://youtu.be/YEt-aYbDTrs 5 Advanced VLOOKUP Tricks - https://youtu.be/240fbiyFFKI Top 10 formulas for any situation - https://youtu.be/Q-XGJbHG8Vo 💻Want to LEARN Excel in one go? GET MY COURSE =========================================== If you want to learn Excel from basics to advanced uses, understand how to process data, create amazing graphs and reports, then please go for my Excel School program. This course is trusted by more than 10,000 people to date. In this concise & in-depth course, you will learn: ✅Power Query ✅Excel tables & references ✅Important formulas for data analysis ✅Pivot tables, pivot charts & slicers ✅Excel charts ✅Advanced charts ✅Interactive charts ✅Data validation, shortcuts & productivity ➕(OPTIONAL) Excel dashboards Visit https://chandoo.org/wp/excel-school-program/ today to sign up. ~ Have an AWESOME day my friend. 😀🌼🌞 #ExcelFormulas #LEGO