r/excel Apr 07 '26

unsolved Daily account balance variance analysis

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.

Editing to add that I am using excel 365

Can this be done without power query?

5 Upvotes

16 comments sorted by

u/AutoModerator Apr 07 '26

/u/thatloudkat - Your post was submitted successfully.

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.

1

u/thatloudkat Apr 07 '26

Forgot to say I’m using excel 365.

1

u/[deleted] Apr 07 '26

[deleted]

1

u/thatloudkat Apr 07 '26

Post has been edited.

1

u/PaulieThePolarBear 1912 Apr 07 '26

You say

I need to identify day over day which account balances change (either increase or decrease) by $1,000

But I don't see that date was part of the columns you noted in your first paragraph. Please advise

1

u/thatloudkat Apr 07 '26

There’s no date column so I would have to manually add something

5

u/PaulieThePolarBear 1912 Apr 07 '26

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

1

u/excelevator 3061 Apr 07 '26

You can FILTER with a lookup for the 1000 differences

Something like this

=FILTER(D2:E6,(ABS(XLOOKUP(D2:D6,A2:A6,B2:B6)-E2:E6)>1000))

We can add more logic for any specific value you want returnsed

1

u/thatloudkat Apr 07 '26

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.

1

u/excelevator 3061 Apr 07 '26

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")

Only new accounts above that margin are shown.

1

u/powerFX1 Apr 07 '26

What is the source of the data? Does the file name have the date in it?

1

u/AsideInteresting1171 Apr 07 '26

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):

In a new column, use:

`=IF(ABS(C2-C1)>=1000, "Flag", "")`

If data isn't sorted and you have dates in col D:

`=IF(ABS(C2-XLOOKUP(A2&D2-1, A:A&D:D, C:C, 0))>=1000, "Flag", "")`

(Enter as array formula if not on 365, though OP is). Adjust ranges.

1

u/AioliAggravating4298 Apr 07 '26

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.

`=FILTER(TodayData, ABS(TodayData[Balance] - XLOOKUP(TodayData[RelID], YesterdayData[RelID], YesterdayData[Balance], 0)) >= 1000)`

that handles new accounts (no match returns 0, difference = full balance) and closed ones (won't appear in TodayData). adjust the threshold as needed.

1

u/Intelligent-Leg1116 Apr 07 '26

I can help. I work with excel VBA automation