The file related to this article can be downloaded from Dynamic Pivot Tables We all make pivot tables and we also know that every time, the range of data which pivot uses goes beyond the current range, we need to change the data range. It becomes painful and also if you are creating dashboards, it…
Tips & Tricks 161 – When is Thanksgiving Day in a Year
Last time, we discussed about finding Labor Day in a given year. This time, it is is about Thanksgiving Day in a year. Thanksgiving day is 4th Thursday in a November. Hence, earliest possible day when 4th Thursday can happen is on 22-Nov.
VBA – A Function to Check whether a Given Number is Prime
Below is an optimized function to check on the primality of a number. This function takes input number as Double, hence can be used to check upto a number having 15 significant digits. Whereas Long can take up to a maximum of 10 significant digits and maximum number it can support is 2,147,483,648. First function…
Solution 62 – Produce the Sum for Merged Cells Headers
Below is a possible solution for the challenge – Challenge 62 – Produce the Sum for Merged Cells Headers Put following formula B14 and drag right and down =SUM(OFFSET($A$1,ROWS($1:1),MATCH(B$13,$1:$1,0)-1,,IFERROR(MATCH(C$13,$1:$1,0),COUNTA($2:$2)+1)-MATCH(B$13,$1:$1,0)))
Challenge 63 – Convert to Date Format
This time, you have been given a file containing Text dates into various formats. The challenge before you is to write a single formula to convert them into an appropriate date format. The challenge file can be downloaded from Challenge 63 – Convert to Date Format The solution to the above challenge will be published…
Tips & Tricks 160 – When is Labor Day in a Given Year
While 1st May is celebrated as Labour Day in most of the countries but in USA/Canada, it is celebrated on 1st Monday of September. Suppose the year is given in cell A1, you can use following formula to calculate the date for Labor Day =CEILING(DATE(A1,9,1)-2,7)+2 Note – This utilizes the knowledge gained in Article 34…
Article 45 – How to know if a Cell contains Time
We talked about Article 19 – How to Check if a cell contains a date. Now, in this article, I will talk about checking the cell for time. The way Excel stores dates as numbers, in the same way it stores time as numbers only. Only change is in range. The numbers get stored between…
Challenge 62 – Produce the Sum for Merged Cells Headers
Download the workbook related to this challenge – Sum for Merged Cells This time challenge is to produce the sum where header is merged cells. For the layout like below – You need to write a single formula which can be dragged right and down to generate the sum for below table The solution to…
Downloads 15 – Excel Formulas Bible
This is one single document which contains close to 100 formulas dealing with various situations. Useful for Intermediate and Advanced users. Download it from Excel – Formulas Bible
Solution – Challenge 61 – Generate Multiplication Table
Below is a possible solution to the challenge – Challenge 61 – Generate Multiplication Table Put following formula and drag right and down – =ROWS($1:1)*COLUMNS($A:A)