Posts

Showing posts from August, 2022

How far can you stretch the Excel LET function?

Image
 Excel LET Function Definition and background and Syntax The LET function assigns names to calculation results. This allows storing intermediate calculations, values, or defining names inside a formula. These names only apply within the scope of the LET function. Similar to variables in programming, LET is accomplished through Excel’s native formula syntax. To use the LET function in Excel, you define pairs of names and associated values, and a calculation that uses them all. You must define at least one name/value pair (a variable), and LET supports up to 126. =LET(name1_of_variable1, name_value1, calculation_or_name2_of_variable2,[name_value2_of_variable2, calculation_or_name3_of_variable3  . . .  ]) The LET function can take up to 132 variables. The LET function with more than one variable can look like this: =LET(name of variable1, name_value1, name of variable2, name_value2, calculation) Argument Description name1 Required The first name to assign. Must start wi...

Excel: LAMBDA function

Image
Excel: LAMBDA function What is a LAMBDA function? The LAMBDA function come from Alan Turing's (English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist) professor Alonzo Church who invented LAMBDA calculus. The LAMBDA function is named after Lambda calculus. LAMBDA function moves the VBA User-Defined-Functions to the name manager (compatible with Excel Online without learning Typescript). You can define your own custom function using Excel's formula language.  With LAMBDA you can take a formula that you have build in Excel and wrap it up in a LAMBDA function and give it a name (like "MYFUNCTION"). Then anywhere in your sheet you can refer to MYFUNCTION, re-using that custom function throughout your sheet. It facilitates using recursion within a formula, which means you can use the function to call itself one or more times until a specified condition is met at which time the rest of each repetition is processed from the ...

Excel: CHOOSE Function

 Excel : CHOOSE Function - Basic understanding and examples Function =CHOOSE(index_num,value1,[value2]…) Basic Understanding The CHOOSE function use index_num to return a value from the list of value arguments.  Up to 254 values can be in the list of arguments. Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number between 1 and 245. If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error. The arguments can be numbers, cell references, defined names, formulas, functions or text. If index_num is an array, every value is evaluated when CHOOSE is evaluated.  The value arguments to CHOOSE can be range references as well as single cell values. CHOOSE can be used in non-contiguous ranges, unlike INDEX, LOOKUP, VLOOKUP and HLOOKUP. CHOOSE is useful when you need to refer to cells on different worksheets or in other workbooks. Examples 1. =CHOOSE(3,70,90,54)    ...