

For example, let’s say a retailer has a table containing sales data for all their stores. The conditions can be applied to adjacent ranges or the range that contains the values. You can specify one or more conditions that filter the data before calculating the max or min. The classic MAX and MIN functions calculate the maximum or minimum value in a range, but what if you need to apply conditions to filter your data? This is precisely what MAXIFS and MINIFS allow. If you’re familiar with COUNTIFS, SUMIFS and AVERAGEIFS, then MAXIFS and MINIFS don’t need much explanation. Filter and calculate data with MAXIFS and MINIFS If you want to know more, go to the online help for IFS and SWITCH. The same result could be calculated using nested IF functions, but it would be significantly longer, as shown below.

If there’s no match, the result is “Not Specified.” If it equals “XS”, the result is “Extra Small.” Otherwise, if it equals “S”, the result is “Small” and so on.
#New functions in excel 2016 if code#
It’s rather long, so it’s nice that SWITCH only needs it to be written once and it can be compared to a list of values.Įxtract the size code from the item in column B. XS, M and G) from the middle of the item in column B. In the example below, the first part of the formula extracts the size code (i.e. The advantage of the SWITCH function is that you can avoid repeating the expression over and over, which sometimes happens in nested IF formulas. You can also specify a “default” result that will be returned if none of the values are an exact match for the expression.

The values are compared to the expression, and when the first exact match is found, the corresponding result is applied to the cell.
#New functions in excel 2016 if series#
What makes it different is that rather than specifying a series of conditional statements, you specify an expression and a series of values and results. The SWITCH function also handles multiple conditions. It’s pretty easy to write it this way and it’s also straightforward to read and understand what’s going on. Otherwise, if it’s greater than or equal to 70, it’s a C and so on. Otherwise, if it’s greater than or equal to 80, it’s a B. This can be read as, if the grade in C1 is greater than or equal to 90, it’s an A. Using the IFS function, it might be something like this: For example, let’s say you want to get the grade letter for a given score on a test. Each condition is followed by the result that will be used if the condition is true-making it very straightforward to create and read the formula afterward. The advantage of using the new IFS functions is that you can specify a series of conditions in a single function. The IF function is one of the most commonly used functions in Excel, and using IF inside IF (nested IF functions) has been a common practice in Excel, but it can be challenging or confusing at times. The new IFS and SWITCH functions give you an alternative to using a series of nested IF functions, like “IF(IF(IF()))”, when you have more than one condition that you want to test to find a corresponding result. IFS and SWITCH functions help specify a series of conditions If you want to know more, see the online help for TEXTJOIN and CONCAT. You simply specify the comma (or whatever separator you want), choose whether to ignore empty cells and then specify the range. The old way would require you to specify each cell and repeat a comma that separates each part: Let’s say you just want to join the parts of an address into a single text string. The new way to join text strings using TEXTJOIN: You can simply refer to the range and specify the delimiter once and let Excel do all the heavy lifting. The new TEXTJOIN and CONCAT functions let you combine text strings from ranges of cells with or without using a delimiter, such as a comma separating each item. Combine text strings using TEXTJOIN and CONCATĪ very common task for users in spreadsheets is to combine text strings, but until now, if you wanted to join text strings from a range of cells, you had to specify each cell individually. We added TEXTJOIN and CONCAT to combine a list or range of text strings, MAXIFS and MINIFS to find the maximum or minimum in a range given one or more conditions and IFS and SWITCH to avoid messy nested IF functions. We picked these six functions based on your feedback and will continue to provide more improvements in the future as part of your Office 365 subscription. The Excel team is happy to announce six new functions that simplify some of your common calculations and help you avoid the tedious work of building custom functions to accomplish these tasks.
