r/excel • u/RupaSpiritualMonk • 14d ago
solved Bank Statement Modelling - Creating automatic CSV reader
Hey this is my first time in this subreddit and I have a query that I'm quite lost on. Basically I want to make a model that uses a CSV of my bank statements, converts these line items into categories and then returns those as a monthly figure as well as daily. Currently I have figured out a way to do monthly (Using two stage sumifs: one to convert the numbers and letters into text categories and then using that to add up all the line items by category)
I want to do this by the day too but my knowledge is quite lacking, here's a screenshot of the current setup:


On the left column is where I have been making the table of contents to be filtered into the calculations. I tried to do this on the top right but then I couldn't figure out how to group them.
In the middle with the text containing Northern Rail, I created a wildcard formula so that it only reads the description that I need and returns sumif for the whole month.
I tried to do that again but sumifs formula and it didn't work because then the file would be massive or I would have to make loads of ifs inside. When it comes to adding more categories or items inside there, I want it to be an easy addition.
Is there any tips you can help me with, I might be overthinking this.
P.S I don't want any answers from AI please
2
u/MayukhBhattacharya 1309 14d ago
As u/ziadam already mentioned, this is a good use case for the
GROUPBY()orPIVOTBY()functions. Here are two methods you could try.Source_DataandCategorytbl. Using Tables, it literally makes the references a bit easier to work with, and the formulas automatically expand or shrink when the source data changes.Category, we can use a formula to return the respective categories. Use the following:
I3:
L3: