+ Reply to Thread
Results 1 to 9 of 9

Trying to better budget using excel

  1. #1
    Registered User
    Join Date
    03-29-2013
    Location
    UK
    MS-Off Ver
    Excel for MAC 2011
    Posts
    3

    Trying to better budget using excel

    I'm not looking for an answer here but a bit of guidance which rabbit hole to explore.

    What I want to be able to do is to import my monthly bank statement into excel, and automatically allocate each entry a certain category, and then create a chart against it to compare against my budget.

    So, for example a transaction with a description of tescos would be allocated to 'groceries' and I can total up all my monthly groceries rather than painfully going through all the transactions one by one.

    I've had a look at conditional formatting and lookups but have not managed to get far. Would macros be the way forward here, or can you do lookups as part of creating a chart?

    Thanks in advance.

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Trying to better budget using excel

    You can create a sheet with a table listing your words like tesco and then what catergory this would be like grocery.

    Then on the sheet which you imported your statement include a column at the end which looks up the transaction name from the table on the other sheet and returns the appropriate category name.

    Finally you can have a 3rd sheet which has a table listing each catergory and shows the totals for each category.


    If you can upload a sample worksheet with an imported statement (change any details to false data of course - make sure the fake data is in the same format though) and I can show you better how this would work.
    Say thanks, click *

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Trying to better budget using excel

    you could have a lookup table in a separate sheet -

    so a list of items and the catorgories

    in column A > B

    tesco > groceries
    SEb > Electric
    SWW > Water
    sainsbury > groceries

    Then use vlookup() to assigned those categorises
    and then you could use another area to sum by those categories - using sumif() and use that to produce the chart

    can you load a sample spreadsheet with dummy data - and what items need to be categorised - then we can work out the rest for you

    i have added a sample

    If you want to have a history of months - then that can be setup as well - but we need to see the format of the data and know the outcome you need
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-29-2013
    Location
    UK
    MS-Off Ver
    Excel for MAC 2011
    Posts
    3

    Re: Trying to better budget using excel

    This is a great start for me. Instead of vslookup is there a function that gives you the category is the word is found within the text?

    Eg, my descriptions vary a lot. I could have one called "merchant 1919 tesco express london" and another one called "tescos extra camberly 1121". So i'd like a function that would set it to grocery if it contained the word tesco.

    i'll add a sheet to show what i mean when i'm back on a computer. Its a bit tricky doing it on an ipad!

    Thanks v much.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Trying to better budget using excel

    yes, it may be possible to do a search, but do you have a years worth of history and you can then make the reference table to include all the different elements
    as we would be searching for other things as well , so you could end up with a huge list of searches

  6. #6
    Registered User
    Join Date
    03-30-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Trying to better budget using excel

    My suggestion is that Macros would not be required for this project. To do anything like this and make it truly automated, you'd need a list of the IDs that show up in your statement and associated categories... then you could import or past in your financial data into a predefined range. Your formulas would then convert that data give you whatever 'business intelligence' you desire. You could set up a pivot chart or pivot tables based on the range of data in those formulas to give you a set of data that is easier to work with.

    1. Initial data -> 2. formulas to convert (based on lookups and categories) 3. -> Pivots and or Pivot Charts for Presentation.

    Good Luck!

    -Brian
    www.excel-help.net

  7. #7
    Registered User
    Join Date
    03-29-2013
    Location
    UK
    MS-Off Ver
    Excel for MAC 2011
    Posts
    3

    Re: Trying to better budget using excel

    Ok I'm making progress - many thanks for the advice so far - I've created a VLOOKUP against all my bank statement info, but its a bit crude.

    I have merchants such as:

    Marks & Spencer CAMBERLEY
    Marks & Spencer Sspltd PADD BR STN
    Marks & Spencer Sspltd READING STN

    and ones like these:

    Tesco Store 3149 SANDHURST
    Tesco Store 3149 SANDHURST Withdrawal 03 February 2013
    Tesco Store 3149 SANDHURST Withdrawal 03 March 2013
    Tesco Store 3149 SANDHURST Withdrawal 10 March 2013
    Tesco Store 3149 SANDHURST Withdrawal 17 February 2013
    Tesco Stores 3149 SANDHURST
    Tesco Stores 5315 CROWTHORNE

    Is there a function that works similar to VLOOKUP but rather than look for an exact match it updates successfully if it matches within the field? I've tried looking at the find function but that just returns the position with the match starts. The match function is similar too.

    Maybe I need to create a function here? The reason I ask is because each month I'm likely to get new descriptions and will have to grow the lookup table accordingly, making this a bit pointless as I'm trying to reduce the effort not increase it!

    eg:

    Sample Data
    A B C
    1 Description Amount Category
    2 Sainsburys 2152 03 March 2013 £13.40 Groceries -> searches for reference to A2 in ref data and sets category to groceries
    3 Sainsbury 2152 13 March 2013 £24.80 Groceries


    Reference Data

    Field Category
    Sainsbury Groceries

    Thanks again.

  8. #8
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Trying to better budget using excel

    Simplest way probably is to create a table (on sheet 2 in example attached) with one column showing the FIRST word that would appear in the description on your statement and then its category name.

    On the first sheet in the example you can then do this (in C2):

    LEFT(A2,FIND(" ",A2)-1)
    This extracts the first word from the description.
    Put this inside a vlookup to get:
    =IFERROR(VLOOKUP(LEFT(A2,FIND(" ",A2)-1),Categories!A:B,2,0),"Other")
    This then does a lookup using the first word to determine its category. Note that anything that isn't in the table I've set it to return 'Other' so eventually you can search for these and if needed add these to your category table.

    This all depends on the first word though, if you encounter any transaction descriptions that may duplicate (e.g 001 Tesco and 001 Car Insurance) then this won't be of any use. Check throught your names to see if this method is a decent enough way to go about things.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Trying to better budget using excel

    If you plan on applying filters to this which show categories of choice you will struggle to sum these values (summing a range will always include values outside of the filter - annoying i know).
    The attached is a way round this which will list your items on a new sheet.

    If this is something you look to use in your worksheet but struggle to undertsnad how to apply this to your work let me know, happy to help.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1