+ Reply to Thread
Results 1 to 3 of 3

Find a number of units int the latest transactions for unique account-asset pairs (array)

  1. #1
    Registered User
    Join Date
    12-12-2020
    Location
    Espoo, Finland
    MS-Off Ver
    Office 365
    Posts
    2

    Question Find a number of units int the latest transactions for unique account-asset pairs (array)

    Hello, I'm the first timer in the forum. I'm trying to generate a report utilising office 365 dynamic arrays using LET function.
    The date source is a large file containing transactions with columns Date, Account, Asset and Units. I want to report the latest number of units per unique Account-Asset -pair. It's easy to generate dynamic unique list of Account-Asset pairs with UNIQUE function. And I also manage to calculate the correct value, if I use XLOOKUP on the column next to my spilling array, and copy my formula down, but that's not dynamic. I cannot figure out how to make it dynamic. Is it even possible?
    See my sample data in the attachment.

    Thank you very much your assistance beforehand. I would love to solve this puzzle.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Find a number of units int the latest transactions for unique account-asset pairs (arr

    I3=IFERROR(INDEX(tblTransactions[Units],MATCH(AGGREGATE(14,6,tblTransactions[Date]/(tblTransactions[Account]=G3)/(tblTransactions[Asset]=H3),1),tblTransactions[Date],0)),"")

    Copy down

  3. #3
    Registered User
    Join Date
    12-12-2020
    Location
    Espoo, Finland
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Find a number of units int the latest transactions for unique account-asset pairs (arr

    Thx CARACALLA, your suggestion works, as well as
    I3=IF(G3<>"";XLOOKUP(TODAY();(tblTransactions[Account]=G3)*(tblTransactions[Asset]=H3)*(tblTransactions[Date]);tblTransactions[Units];;-1;-1);"")
    with a small improvement.
    But neither of those are exactly what I am looking for. I would love to have a single cell implementation without copying the formula down. There are two reasons: 1) my excel is quite large and complex, and I would like to improve it performance. 2) I would like to understand what I am after is even possible. I did not manage with it by myself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count number of unique X digits duplicate pairs from a number
    By SedoSan7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2019, 04:03 AM
  2. find rows with a unique asset ID
    By kashif.shah in forum Excel General
    Replies: 4
    Last Post: 11-06-2019, 01:03 AM
  3. Grouping transactions from bank account
    By ryangodammit in forum Excel General
    Replies: 9
    Last Post: 10-09-2017, 02:57 AM
  4. Replies: 9
    Last Post: 07-17-2017, 09:22 PM
  5. Creating Account Transactions Summary
    By bongbongsan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2017, 12:37 PM
  6. Counter for Transactions within Account
    By hsiewert in forum Excel General
    Replies: 5
    Last Post: 05-12-2009, 12:35 PM
  7. [SOLVED] code not unique find latest date
    By Barbara Wiseman in forum Excel General
    Replies: 3
    Last Post: 12-11-2005, 04:55 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1