Forum Discussion

PeterBartholomew1's avatar
PeterBartholomew1
Silver Contributor
Oct 04, 2021
Solved

Is it time to revisit the Defined Name? I believe 365 requires a renaissance of the Name.

From a recent LinkedIn discussion it became evident that the adoption of Named Ranges for referencing data (although reasonably well known) is far from universal.   If you don't think naming is impo...
  • lori_m's avatar
    lori_m
    Oct 15, 2021

    tboulden PeterBartholomew1 

    I just saw Andy and Jack's presentation - lots of developments in Lambda Editor, I like the combined editor / name manager views and also the connectivity with github.

     

    I believe the ability to define functions from cells could also enhance user experience especially for those less familiar with coding environments. The recent smooth scrolling update will help working with longer formulas in the grid too.

     

    This github link contains an xlam addin containing two functions:
    DEFINE( [Scope], [Visible], [Type], [Category], [Comment] )
    DEFINITIONS( [ShowDetails], [ShowHidden] )

    These functions allow one to define and view names created via LET formulas.

     

    As a simple example, after installing the addin, enter the formula below in a cell of a new workbook,

    =LET(π, PI(),DEFINE())

    Then re-enter without the name definition to remove the name.

    Some further examples are shown in the screenshot below.

     

    Making the functions global, so as to be available from any workbook, proved pretty challenging. It's also designed so that workbooks containing these functions can be distributed to other users who do not have the addin installed. No doubt further updates will be needed to iron out any remaining issues.

Resources