1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Brute-force subset sum matching in Excel using a single dynamic-array formula

I’ve been experimenting with subset-style transaction matching / reconciliation problems directly inside Excel.

This demo uses a single dynamic-array formula (no VBA / no add-ins) to brute-force combinations and return exact matches for a target amount.

https://preview.redd.it/7k732af3fv2h1.png?width=1483&format=png&auto=webp&s=e819147f1af838ba2220cf80158fddaf21067515

It works surprisingly well for short normalized lists, but also demonstrates pretty quickly why these problems become computationally expensive as the search space grows (2^n subsets).

The Excel-only demo workbook shown above is:
Subsetra_Lite.xlsx

That eventually led me to build a larger Python implementation with more advanced pruning logic for heavier datasets.

Would be interested to hear how others here approach grouped transaction matching / reconciliation workflows in Excel.

GitHub:
https://github.com/dafnielad-lab/SubSetra

submitted by /u/DafniElad
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#Excel compatibility
#Excel alternatives
#natural language processing for spreadsheets
#generative AI for data analysis
#rows.com
#financial modeling with spreadsheets
#AI formula generation techniques
#formula generator
#automation in spreadsheet workflows
#no-code spreadsheet solutions
#Excel
#brute-force
#subset sum
#transaction matching
#reconciliation
#dynamic-array
#formula
#target amount
#computationally expensive