Nallatheryth
New Member
Now I spent a few days searching up and down and need to find a solution.
I saw two threads but both are not what I am looking for exactly and I admit, being not too good in VBA, I cant make heads or tales.
What I have: I have 4300 lines of Bank statements. There are multiple columns but 1 is of importance - Description. This description might contain a lot of things, but usually there is 1 key word that is crucial. Roughly 96% can be automated and 3-4% just written manually every now and then.
What I want:
A VBA Macro that will read the column description, will match a keyword there from a list of many such in Sheet2, column "keywords" and then write in Column Category (sheet1) the assigned Categorization taken from Column Category on Sheet2.
What I have done so far:
the only thing I found to be working for me, and be able to actually reproduce is using a formula:
The above formula was repeated multiple times but this slows and lags everything. Besides being unmanageable.
Its working but I need something better. So -> enter Macros. and here I am lost.
I found that the answer of @JohnBustos is very good here: How to group excel items based on custom rules? but not working for me really.
I found the answer of Tomk Dallimore to be what I need or want: Categorizing bank transactions in Excel
but I cant make heads or tales how to get there??? He is very detailed but I am getting lost on the complexity which mind you is great.
Can you please help me?
I am attaching a very simple example of what I am talking.
http://1drv.ms/1Putpy5
I dont mind doing this with a formula. So far I tested several Array formulas and indexers but somehow I end up having wrong values or no values.
Thank you everyone!
Note#1
I founnd a new formula that I incorporated.
'=IFERROR(LOOKUP(10^10,SEARCH(" "&KeywordTable[In-keyword]&" "," "&H29& " "),KeywordTable[Out-keyword ]),"")
But this is also troubling the CPU as it calculates each time a cell is moved. I imagine it will throw exception if I add 560 new rows or better yet move the table with 1 poisition. Temporary solution but need something more sophisticated.
I saw two threads but both are not what I am looking for exactly and I admit, being not too good in VBA, I cant make heads or tales.
What I have: I have 4300 lines of Bank statements. There are multiple columns but 1 is of importance - Description. This description might contain a lot of things, but usually there is 1 key word that is crucial. Roughly 96% can be automated and 3-4% just written manually every now and then.
What I want:
A VBA Macro that will read the column description, will match a keyword there from a list of many such in Sheet2, column "keywords" and then write in Column Category (sheet1) the assigned Categorization taken from Column Category on Sheet2.
What I have done so far:
the only thing I found to be working for me, and be able to actually reproduce is using a formula:
Code:
=IF(ISNUMBER(SEARCH("KEYWORD",[Description])),"OUTPUT","")
The above formula was repeated multiple times but this slows and lags everything. Besides being unmanageable.
Its working but I need something better. So -> enter Macros. and here I am lost.
I found that the answer of @JohnBustos is very good here: How to group excel items based on custom rules? but not working for me really.
I found the answer of Tomk Dallimore to be what I need or want: Categorizing bank transactions in Excel
but I cant make heads or tales how to get there??? He is very detailed but I am getting lost on the complexity which mind you is great.
Can you please help me?
I am attaching a very simple example of what I am talking.
http://1drv.ms/1Putpy5
I dont mind doing this with a formula. So far I tested several Array formulas and indexers but somehow I end up having wrong values or no values.
Thank you everyone!
Note#1
I founnd a new formula that I incorporated.
'=IFERROR(LOOKUP(10^10,SEARCH(" "&KeywordTable[In-keyword]&" "," "&H29& " "),KeywordTable[Out-keyword ]),"")
But this is also troubling the CPU as it calculates each time a cell is moved. I imagine it will throw exception if I add 560 new rows or better yet move the table with 1 poisition. Temporary solution but need something more sophisticated.
Last edited: