Results 1 to 11 of 11

Thread: Let and Lambda

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Administrator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,302
    Location
    Not sure you can refer to a column in a table you have defined like 'tx[Date]'

    If you define the table, in my mind it becomes more of a range to the LET formula, as such you can refer to the columns with Index:
    =LET(tx, tblTransactions,
              method, "Transfer",
              tx_date, TODAY(),
              res, FILTER(INDEX(tx,,1), (INDEX(tx,,2)=method)*(INDEX(tx,,1)>=tx_date)),
              res)
    Other than that you would use the table name itself:
    =LET(method, "Transfer",
              tx_date, TODAY(),
              res, FILTER(tblTransactions[Date], (tblTransactions[Method]=method)*(tblTransactions[Date]>=tx_date)),
              res)
    If you renamed the table 'tx' then 'tx[Date]' would be fine.
    Attached Files Attached Files
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2408, Build 17928.20080

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •