11 Events: Events are actions performed by users which trigger Excel VBA to execute code. 12 Array: An array is a group of variables. In Excel VBA, you can refer to a specific variable (element) of an array by using the array name and the index number. 13 Function and Sub: In Excel VBA, a function can return a value while a sub cannot. Excel is an extremely powerful program. Most people use only a small subset of its features. This article teaches you 12 underused functions.
In this case, the formula first extracts the month as a number between 1-12, then divides this number by 3. The result is then rounded up to the nearest whole number using the ROUNDUP function.The ROUNDUP function...
Normally, the XLOOKUP function is configured to look for a value in a lookup array that exists on the worksheet. However, when the criteria used to match a value becomes more complex, you can use boolean logic to...
In this case, Excel extracts the month from the date in cell B6 as a number, and the month in the cell C6 as a number, then tests for equivalency using the equal sign. Both dates are in January, so the formula is...
This data set contains over 2900 records, and the formula above uses two named ranges:dates = B5:B2932amounts = E5:E2932Inside the SUMPRODUCT function, the MONTH function is used to extract the month number for...
The SEQUENCE function is a dynamic array function that can generate multiple results. Like other dynamic array functions, SEQUENCE outputs an array of results that 'spill' onto the worksheet in a 'spill range'....
In this example, we need to construct logic that filters data to include:account begins with 'x' AND region is 'east', and month is NOT April.The filtering logic of this formula (the include argument) is created by...
Excel 12 Month Calendar
In the example, B6 is the hard-coded start date and the formula in B7 is:=DATE(YEAR(B6),MONTH(B6)+1,DAY(B6))To solve this formula, Excel first extracts the year, month, and day values from the date in B6, then...
The MONTH function takes just one argument, the date from which to extract the month. In the example shown, the formula is:=MONTH(B4)where B4 contains the dateJanuary 5, 2016. The MONTH function returns the number...
Excel 12 Gauge Shotgun
The goal of this example is to sum amounts by fiscal year, when the fiscal year begins in July. The first approach is an self-contained formula based on the SUMPRODUCT function. The second method uses SUMIF with column...
This formula relies on the FILTER function to retrieve data based on a logical test created with the MONTH function. The array argument is provided as the named range 'data', which contains the full set of data without...
In the example, the formula in cell D6 contains this formula:=MONTH(B6)&YEAR(B6)=MONTH(C6)&YEAR(C6)In this case, Excel extracts the month from the date in cell B6 as numbers, then concatenates them...
In the example, B6 is the hard-coded start date and the formula in B7 is:=DATE(YEAR(B6)+1,MONTH(B6),DAY(B6))To solve this formula, Excel first extracts the year, month, and day values from the date in B6, then...
Excel 12 Month Calendar 2021
You would think you could use the COUNTIF function to count birthdays, but the trouble is COUNTIF only works with ranges, and won't let you use something like MONTH to extract just the month number from dates. So, we...
Do you want to convert the date into a month name?If you want to convert the date value to a text value, you can use the TEXT function with a custom number format like 'mmmm', or 'mmm'. In the example shown, the...
Excel 12 Hour Time Format
In this example, the goal is to return the fiscal year for any given date, where a fiscal year starts in July as seen in the worksheet. By convention a fiscal year is denoted by the year in which it ends. So, if a...