I’m developing a personal financial budgeting and cash flow application in Excel 2016 on windows 10 and need help in developing a set of formulas that will:
- Extract specific phrases - one at a time, of course - from within a longer string of text that matches the title of the appropriate line label for that type of transaction.
- Subtotal all similar transactions based on the matched line label-to-transaction description for related transactions.
I created the “Line Labels” as a means to help tie a bank transaction to the appropriate budget category. The source for my data is a cash flow spreadsheet and downloaded transactions (in XL format) from my financial institution. Here are some criteria that I’ve identified concerning the transaction descriptions from the bank:
- The desired phrase varies in length according to the type of transaction and what entity the transaction is with.
- All transactions with a specific entity all contain the exact phrase somewhere within the entire string of text.
- The identifying string can appear at any place within the description string (almost as if random).
- Not all transaction descriptions begin with the same characters as in the examples below.
- Since the first letter of any given phrase could be the first letter of a separate phrase, trying to use FIND to identify and categorize multiple transactions could lead to different transactions being improperly grouped together and subtotaled.
Here are examples of a few transactions with their descriptions and the corresponding line labels I’m trying to match the transactions to. Sensitive data has been deleted and the total length of the two description strings vary.
FORD MTR Withdrawal ACH FORD MTR CHGO TYPE: ONLINE PMT ID: XXXXXXXXX
BANK OF AMERICA Withdrawal ACH BANK OF AMERICA TYPE: ONLINE PMT ID: XXXXXXXXX
INFINITE ELECTRIC Online Payment XXXXXXXXXX To INFINITE ELECTRIC
If I can find a way to bind similar transactions to their proper line labels, I believe I can use a form of SUMIF or similar function to subtotal like transactions for each line label in the budget worksheet. I think I’ve given enough info but…. If more is needed, please let me know. Thank you very much in advance.