Forum Discussion
How to sort numbers with a space in the one cell
Just to show how different a modern version of Excel can be, the following worksheet formula provides a very different solution strategy
It is a mix of insider beta functionality and a legacy XLM macro 4 function.
- Rajesh_SinhaMar 06, 2021Iron ContributorPlease elaborate your post & share that using which editor you have created this Macro supported by the new launch LAMBDA,, and the version which supports all these CELL.SORT ,, EVAL,,,, since this forum has users still working with older versions and not comfortable with VBA macros even!!
- PeterBartholomew1Mar 06, 2021Silver Contributor
Since September 2018 there has been seismic changes in Excel. By 'seismic', I mean it is now possible to write Excel solutions that an average user might not even recognise as being Excel. In the post, have only used worksheet functions, there is no macro other than the old EVALUATE function that takes a text string and evaluates it as if it were a formula.
The Excel 365 changes (later in the year this should also be Office 2021) I refer to are to make array formulas the default without needing CSE. The there is the LET function that allows every alternate parameter to be a name created by the user, which refers to the formula in the following parameter. This helps make sense of deeply nested formulas and those that repeat the use of a calculation fragment.
The final change, that is currently only on release in the beta versions of Excel, is the LAMBDA function. It was this that allowed me to define the name
= CELL.SORT(seq)
which refers to the formula written over several lines (using Alt/Enter to generate a line feed). The LAMBDA function has the names to be used within the formula as its initial parameters and the function to evaluate as its final parameter. The thing that makes the function so revolutionary is that the LAMBDA is followed by the actual parameters to be used in the formula, held within parentheses. These are then substituted one for one in place of the dummy parameters which means that the same defined function can be used to refer to many different areas of the worksheet.
What makes the whole thing so startling to anyone schooled to accept traditional spreadsheet practice is that the resulting formulae read more like a snippet of code than a conventional formula.
- Rajesh_SinhaMar 07, 2021Iron ContributorMy dear friend I'm well versed with all you have written here,, my concern was,,, being a answerer ,, it's the prime responsibilities that one must show the correct way to create UDFs,,, VBA stuffs,,, and their implementations,, if I'm not wrong hardly 1% users can handle this new arrival feature,,, . So please show the way you have created this function !!
- SergeiBaklanMar 06, 2021Diamond Contributor
EVALUATE() is available in any version of Excel starting from Excel 4.0.
- Rajesh_SinhaMar 07, 2021Iron ContributorThat I know ,,, my expectation is that the answerer must show the correct way to create & implementation of UDFs ,, Macro & features like LAMBDA,,, how may users are familiar with new arrivals !!