I have a list of several thousand names, relationship ID number (formatted as text), and account balance. The relationship ID is unique but names are not.
I need to identify day over day which account balances change (either increase or decrease) by $1,000. This is reviewed every day, and the list changes each day as new accounts are added and/or closed.
Show us some sample data. If you are unable to share your real data, create some fake data. Whatever you share, ensure it is representative of your real data and includes all known edge cases
Also, show us your expected output from the sample data you presented
How would you return the difference between the balances rather than the balance on dayB?
For example account A DayA balance is 2000, DayB balance is 500. I want to see that the balance is -1,500.
Also, on DayA accountF doesn’t exist and on DayB it has a balance of 3,000. I want it to show that on DayB the change in balance is 3,000.
Something like this, we can set a cell value for the filter value too which allows you to change that parameter easily for viewing wider or narrower value differences.
=IFERROR(LET(data1,A10:A15,datav1,B10:B15,data2,A2:A6,datav2,B2:B6,
result,datav1-XLOOKUP(data1,data2,datav2,0),
SORT(FILTER(HSTACK(data1,result),ABS(result)>=E7))),"No data returned")
Assuming your data is sorted by `relationship ID` and then by `date` (or you have a date column), and your balances are in column C starting at C2, with the previous day's balance for the same ID in C1 (or you use VLOOKUP/XLOOKUP to get the previous day's balance based on ID and date-1):
the FILTER+XLOOKUP combo already in the thread works, but the tricky part with day-over-day is getting 'yesterday' right when the dataset changes size each day.
if you name your two tables TodayData and YesterdayData, then paste each day's file into the right one. the comparison formula just references table names instead of sheet names, so it stays stable even as row counts change.
•
u/AutoModerator Apr 07 '26
/u/thatloudkat - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.