Posts

Showing posts from February, 2024

Excel - Left Lookup

Image
From   Left Lookup in Excel (In Easy Steps) (excel-easy.com) Left Lookup   The  VLOOKUP function  only looks to the right. To look up a value in  any  column and return the corresponding value to the  left , simply use  INDEX  and  MATCH . 1. The MATCH function returns the position of a value in a given range. Explanation: 104 found at position 4 in the range $G$4:$G$7. 2. Use this result and the INDEX function to return the 4th value in the range $E$4:$E$7. 3. Drag the formula in cell B2 down to cell B11. Note: when we drag this formula down, the  absolute references  ($E$4:$E$7 and $G$4:$G$7) stay the same, while the relative reference (A2) changes to A3, A4, A5, etc. 4. If you have Excel 365 or Excel 2021, simply use the XLOOKUP function to perform a left lookup. Note: the XLOOKUP function, entered into cell B2, fills multiple cells. Wow! This behavior in Excel 365/2021 is called  spilling . Visit our page about the  XLOOKUP function  to learn more about this great new Excel functio

Excel - How to set default AutoFill setting

 From  How to set default AutoFill setting? - Microsoft Community How to set default AutoFill setting? I'm often filling in multiple of the same date in a row, and it would be useful If I didn't have to open up AutoFill options to change it to Copy Cells every time. (...) Press the CTRL-key and hold it down Drag the date down as usual Release the CTRL-key Andreas.  

MySQL Window Functions

Image
From  https://www.devart.com/dbforge/mysql/studio/mysql-window-functions.html#:~:text=A%20window%20function%20performs%20a,used%20to%20arrange%20rows%20together MySQL Window Functions Since MySQL is one of the most popular database systems in the software industry, a huge number of web applications use MySQL as their on-site or cloud-based database management system. In order to query databases and produce relevant results, it is crucial for developers and database users to expand their querying capabilities. This is where MySQL window functions come into play. What is a MySQL window function? A window function performs a calculation across a set of table rows that are somehow related to the current row. No window function can be defined without an OVER clause; and in the OVER clause, there are the following possibilities: The  PARTITION BY clause  is used to arrange rows together The ORDER BY clause is used to sort result sets in ascending or descending order Also note that the majori

MySQL - Ranking Functions

From  MySQL | Ranking Functions - GeeksforGeeks The ranking functions in MySQL are used to rank each row of a partition. The ranking functions are also part of MySQL windows functions list. These functions are always used with  OVER()  clause. The ranking functions always assign rank on basis of  ORDER BY  clause. The rank is assigned to rows in a sequential manner. The assignment of rank to rows always start with 1 for every new partition. There are 3 types of ranking functions supported in MySQL- dense_rank():  This function will assign rank to each row within a partition  without gaps . Basically, the ranks are assigned in a consecutive manner i.e if there is a tie between values then they will be assigned the same rank, and next rank value will be one greater than the previous rank assigned. rank():  This function will assign rank to each row within a partition  with gaps . Here, ranks are assigned in a non-consecutive manner i.e if there is a tie between values then they will be a