RANK functionThe RANK function returns the position of a specified value in a dataset.RANK function syntax=RANK(value; table_array; [order])Where:- value is the value whose ranking will be tested- table_array is the range where the search will be performed;- order is a TRUE or FALSE value for ASCENDING or DESCENDING respectively. FALSE will be considered if no value is entered.ExampleproductprofitRankTRANSPARENT PIPING BAG 30CM C/100UN100.001CELEBRATE CAKE STAND 5UN93.692PROFESSIONAL SILICONE MAT52.723WILTON 6-MUFFIN PAN42.404CELEBRATE TRANSPARENT PIPING BAG 45CM U33.585WILTON 12-CUPCAKE PAN27.836TIP # 6B OPEN STAR24.007DECORATIVE BRUSHES 92297523.148TRANSPARENT PIPING BAG 30CM (unit)21.6091. Ranking profit in descending order, what position does the product ROUNDED SMOOTHER occupy?2. Ranking profit in ascending order, what position does the product WILTON 12-CUPCAKE PAN occupy?Solution1. =RANK(B3; B1:B11; FALSE) = 52. =RANK(B9; B1:B11; TRUE) = 10INDEX function or ÍNDICEThe INDEX function returns the contents of a cell specified by row and column offset.INDEX function syntax=INDEX(table_array; row_num; [column_num])Where:- table_array is the range where the search will be performed;- row_num is the number of the row being searched;- column_num is the number of the column being searched;Details to note:- It is possible not to pass the column being searched as an argument; if you do not pass it, the entire row being searched will be returned- It's like playing BattleshipExampleproductprofitRankTRANSPARENT PIPING BAG 30CM C/100UN100.001CELEBRATE CAKE STAND 5UN93.692PROFESSIONAL SILICONE MAT52.723WILTON 6-MUFFIN PAN42.404CELEBRATE TRANSPARENT PIPING BAG 45CM U33.585WILTON 12-CUPCAKE PAN27.836TIP # 6B OPEN STAR24.007DECORATIVE BRUSHES 92297523.148TRANSPARENT PIPING BAG 30CM (unit)21.6091. What data is in column 2, row 3?2. What data is in column 3, row 1?3. What data is in column 3, row 4?Solution1. =INDEX(A1:C15; 3 ; 2) = 22. =INDEX(A1:C15; 1 ; 3) = "Lesson"3. =INDEX(A1:C15; 4 ; 3) = "Frequency distribution: collecting data in the field"MATCH function or CORRESPThe MATCH function returns the relative position of an item in the range that matches the specified value.MATCH function syntax=MATCH(search_key; range; [search_type])Where:- search_key is the value to be searched for. For example, "42", "Cats" or "I24";- range is the one-dimensional array to be searched.;- search_type: "1" (default) finds the largest value less than or equal to the "search_key" when the "range" is sorted in ascending order. "0" finds the exact value when the "range" is not sorted. "-1" finds the smallest value greater than or equal to the "search_key" when the "range" is sorted in descending order.ExampleproductprofitRankTRANSPARENT PIPING BAG 30CM C/100UN100.001CELEBRATE CAKE STAND 5UN93.692PROFESSIONAL SILICONE MAT52.723WILTON 6-MUFFIN PAN42.404CELEBRATE TRANSPARENT PIPING BAG 45CM U33.585WILTON 12-CUPCAKE PAN27.836TIP # 6B OPEN STAR24.007DECORATIVE BRUSHES 92297523.148TRANSPARENT PIPING BAG 30CM (unit)21.6091. In which row is the product named "PROFESSIONAL SILICONE MAT"?Solution1. =MATCH("PROFESSIONAL SILICONE MAT"; A1:A11;1) = 10INDEX + MATCH functions or ÍNDICE + CORRESPThe INDEX + MATCH combination provides the versatility that the VLOOKUP or HLOOKUP functions lacked.INDEX + MATCH combination syntax=INDEX(table_array;MATCH(search_key; range; [search_type]); column_num)ExampleproductprofitRankTRANSPARENT PIPING BAG 30CM C/100UN100.001CELEBRATE CAKE STAND 5UN93.692PROFESSIONAL SILICONE MAT52.723WILTON 6-MUFFIN PAN42.404CELEBRATE TRANSPARENT PIPING BAG 45CM U33.585WILTON 12-CUPCAKE PAN27.836TIP # 6B OPEN STAR24.007DECORATIVE BRUSHES 92297523.148TRANSPARENT PIPING BAG 30CM (unit)21.6091. What is the name of the product with profit R$ 27.83?2. What is the profit of the product named PROFESSIONAL SILICONE MAT?Solution1. =INDEX(A1:C11;MATCH("27.83"; B1:B11;1); 1)2. =INDEX(A1:C11;MATCH("PROFESSIONAL SILICONE MAT"; A1:A11;1); 2)ExercisesClick here to access the spreadsheet to solve the next exercises.1. What is the name of the product with code 102?2. What is the name of the product with the third highest profit?3. What is the name of the product that sold the second most in time 1?Student Table:RegistrationNameCourseGrade 1Grade 2Average1001João SilvaMathematics8.57.07.751002Maria OliveiraHistory9.08.58.751003Pedro SantosPhysics6.57.57.01004Ana CostaChemistry7.08.07.51005Carlos MendesBiology5.56.05.751006Luiza FernandesMathematics10.09.59.751007Rafaela AlmeidaHistory8.08.08.01008Bruno PereiraPhysics7.57.07.251009Fernanda LimaChemistry6.07.56.751010Gabriel SouzaBiology9.08.58.75Questions:4. What is the average of the student with registration 1004?5. What is the course of the student Luiza Fernandes?6. What is the highest grade 1 among students in the Mathematics course?7. How many students have an average greater than 8.0?Inventory Table:ProductJanuaryFebruaryMarchAprilRice500450480490Beans300280290310Sugar200220210230Coffee150160155165Oil100110105115Questions:8. What was the stock of Sugar in the month of March?9. What was the product with the lowest stock in the month of February?10. What was the variation in Coffee stock between January and April?11. What was the average stock of Beans over the four months?Employee Table:IDNamePositionSalaryDepartment001Ana PaulaAnalyst4500.00IT002Carlos EduardoManager8000.00Sales003Mariana SilvaDeveloper5500.00IT004João PedroAnalyst4200.00HR005Luiza CostaManager8500.00Marketing006Pedro HenriqueDeveloper6000.00IT007Fernanda LimaAnalyst4300.00Sales008Rafael SouzaManager8200.00HR009Bruna OliveiraDeveloper5800.00IT010Lucas MendesAnalyst4100.00MarketingQuestions:12. What is the salary of the employee with ID 003?13. What is the position of the employee Luiza Costa?14. What is the department with the highest average salary?15. How many employees have a salary above 5000.00?
— コメント 0
, 反応 1
最初にコメントする