Help with a formula to categorize description in bank statement

buddydubbo

New Member
Joined
Nov 1, 2011
Messages
7
hi
i am still learning about excel (self taught) and would like help with a formula
my statement comes with date, description, amount and balance only
i have manage to add on a type using a simple IF formula but i need to make
the descriptions into a category in far column
so for example first line it would enquire if one of those words are in the cell then report it
coresponding cell under title category.
thanks if anyone can help

STATEMENTADD ON
DATEDESCRIPTIONAMOUNTBALANCE TYPECATEGORY
15/04/2016DIRECT CREDIT X SALARY$805.00$1,208.30 Credit SALARY
15/04/2016VISA PURCHASE DONS COFFEE SHOP EAST HATFIELD-$14.30$1,194.00 Debit CARD PUCHASE
15/04/2016VISA PURCHASE VOOM CHEMIST CENTRAL STATION-$60.43$1,133.57 Debit CARD PUCHASE
15/04/2016INTERNET TRANSFER FROM 111111110 REF NO 22222222-$49.80$1,083.77 Debit TRANSFER
15/04/2016VISA PURCHASE SUPERMARKET -$116.65$967.12 Debit CARD PURCHASE
15/04/2016INTERNET TRANSFER CREDIT FROM 123123 $200.00$1,167.12 Credit INTERNET PURCHASE
15/04/2016EFTPOS WDL GENERAL STORE GREYFORD-$67.50$1,099.62 Debit EFT PURCHASE
14/04/2016DIRECT DEBIT GVC NO 5555555555-$85.40$1,014.22 Debit GVC
12/04/2016ATM OPERATOR FEE WITHDRAWAL -$1.00$1,013.22 Debit FEE
12/04/2016ATM WITHDRAWAL -$150.00$863.22 Debit MONEY WDL
12/04/2016LOAN REPAYMENT TO 9997999-$320.00$543.22 Debit CAR LOAN
12/04/2016DIRECT DEBIT HEALTH FUND 7877878-$120.00$423.22 Debit HEALTH FUND

<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Welcome to the MrExcel board! (Good to see the registration problems seem to have been resolved :))

Would something like this be of use? Create a Key word <-> Category lookup table like I have in columns I:J then use the formula in G2, copied down. (Note some columns hidden)

Excel Workbook
BGHIJ
1DESCRIPTIONCATEGORYKeywordCategory
2DIRECT CREDIT X SALARYSALARYSalarySALARY
3VISA PURCHASE DONS COFFEE SHOP EAST HATFIELDCARD PUCHASEVisaCARD PUCHASE
4VISA PURCHASE VOOM CHEMIST CENTRAL STATIONCARD PUCHASEInternetTRANSFER
5INTERNET TRANSFER FROM 111111110 REF NO 22222222TRANSFEREftposEFT PURCHASE
6VISA PURCHASE SUPERMARKETCARD PUCHASEGVCGVC
7INTERNET TRANSFER CREDIT FROM 123123TRANSFERFeeFEE
8EFTPOS WDL GENERAL STORE GREYFORDEFT PURCHASEAtm WithdrawalMONEY WDL
9DIRECT DEBIT GVC NO 5555555555GVCLoan RepaymentCAR LOAN
10ATM OPERATOR FEE WITHDRAWALFEEHealth FundHEALTH FUND
11ATM WITHDRAWALMONEY WDL
12LOAN REPAYMENT TO 9997999CAR LOAN
13DIRECT DEBIT HEALTH FUND 7877878HEALTH FUND
14
Category
 
Upvote 0
Thanks much Peter
This was exactly what i was looking for i can refine it even more now.

i had worked out a solution from reading a few post and learning a bit about some formulas but it was super long and i had to separate a few categories over a few columns

was going to post for a way to shorten but you beat me to it
thanks again
 
Upvote 0
Cheers. Glad it helped. Thanks for letting us know.
 
Upvote 0
Hi Peter,

one more question on this!
I am working on a VBA to move each category to its own sheet.
Is it possible to incorporate that in this formula?

Thanks
 
Upvote 0
There would a number of approaches but having the categories in the original sheet (as per this formula) is likely to be relevant to all.
For a vba approach to then splitting into individual sheets, have a look at my posts in this thread.
If you were interested ina formula approach, then have a look here.
 
Upvote 0
hi peter,

thanks for the links i have been looking at the formula link and can't seem to work
out how to lay it to my table.

i made sheets for all the categories in column J (above table).
so i know on each sheet where i want the row to start i put the formula.

i want it to query column G and copy each row with that category to corresponding sheet.
no matter how i try to follow what you wrote on the above link i can't seem to get it right!

can you help me further please!
thankyou
 
Upvote 0
.. looking at the formula link and can't seem to work
out how to lay it to my table.
There is a little bit of adjustment due to different columns being used & different sheet names, but it is basically the same.
So here is my Category sheet again, with column H used as the helper like column column F of post #6 in the linked thread. (And I've also fixed my spelling of PURCHASE :))

Excel Workbook
ABCDEFGHIJ
1DATEDESCRIPTIONAMOUNTBALANCETYPECATEGORYKeywordCategory
215/04/2016DIRECT CREDIT X SALARY805.001,208.30CreditSALARYSALARY|1SalarySALARY
315/04/2016VISA PURCHASE DONS COFFEE SHOP EAST HATFIELD-14.301,194.00DebitCARD PURCHASECARD PURCHASE|1VisaCARD PURCHASE
415/04/2016VISA PURCHASE VOOM CHEMIST CENTRAL STATION-60.431,133.57DebitCARD PURCHASECARD PURCHASE|2InternetTRANSFER
515/04/2016INTERNET TRANSFER FROM 111111110 REF NO 22222222-49.801,083.77DebitTRANSFERTRANSFER|1EftposEFT PURCHASE
615/04/2016VISA PURCHASE SUPERMARKET-116.65967.12DebitCARD PURCHASECARD PURCHASE|3GVCGVC
715/04/2016INTERNET TRANSFER CREDIT FROM 123123200.001,167.12CreditTRANSFERTRANSFER|2FeeFEE
815/04/2016EFTPOS WDL GENERAL STORE GREYFORD-67.501,099.62DebitEFT PURCHASEEFT PURCHASE|1Atm WithdrawalMONEY WDL
914/04/2016DIRECT DEBIT GVC NO 5555555555-85.401,014.22DebitGVCGVC|1Loan RepaymentCAR LOAN
1012/04/2016ATM OPERATOR FEE WITHDRAWAL-1.001,013.22DebitFEEFEE|1Health FundHEALTH FUND
1112/04/2016ATM WITHDRAWAL-150.00863.22DebitMONEY WDLMONEY WDL|1
1212/04/2016LOAN REPAYMENT TO 9997999-320.00543.22DebitCAR LOANCAR LOAN|1
1312/04/2016DIRECT DEBIT HEALTH FUND 7877878-120.00423.22DebitHEALTH FUNDHEALTH FUND|1
Category



And here is the 'Card Purchase' sheet set up similar to the 'Supplier' sheet in the other thread.
Column I could be hidden after you copy the formula well down.
Formula in B2 is copied across and down, and you then may have to format date & number columns appropriately.
Also, you may not want all columns as 'Balance' doesn't make so much sense once extracted from the main sheet.
You can make other sheets similar to this for the other categories.

Excel Workbook
ABCDEFGHI
1CategoryDATEDESCRIPTIONAMOUNTBALANCETYPE
2Card Purchase15/04/2016VISA PURCHASE DONS COFFEE SHOP EAST HATFIELD-14.301,194.00Debit3
315/04/2016VISA PURCHASE VOOM CHEMIST CENTRAL STATION-60.431,133.57Debit4
415/04/2016VISA PURCHASE SUPERMARKET-116.65967.12Debit6
5#N/A
6#N/A
Card Purchase
 
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,772
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top