+ Reply to Thread
Results 1 to 10 of 10

Vlookup Partial Text - Transactions from Bank Statement

Hybrid View

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Vlookup Partial Text - Transactions from Bank Statement

    Hi All,

    I'm currently trying to group my bank transactions into categories using vlookup. This is so I can understand where all my money is ending up!

    The value is the transaction description, for example, "4835-****-****-1003 Df Snapdragon"

    My table array has been set out into two columns. One column being a key word within the above transaction description "Snapdragon". The second column is a category description "Drinking Out".

    I currently have the below formula, however this only works when the transaction description only contains "Snapdragon".

    =VLOOKUP("*"&A1&"*",B:C,2,0)

    Please could I grab some help on this one, as I can't find a workaround where the vlookup finds a partial match and returns the desired field. For any clarification, just give me a shout!

    Cheers,

    Luke

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Hi, welcome to the forum

    Looks to me like you are only using A1 in the reference, with no mention of the 2nd category?

    In case you are unfamiliar with vlookup(), it searches in the 1st column (and ONLY the 1st column) of the range for your criteria. It then returns something from the specified number of columns across from that.

    In your example formula, it will try and find anything with Snapdragon (aaSnapdragon/aaSnapdragonbb/Snapdragonbb) in column B and then return the corresponding entry from column B
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Hi Fold,

    Thank you for your email.

    Currently the vlookup does return the correct category that I want, however it does not return when the value contains more characters that what is in my lookup table.

    I have attached my spreadsheet.

    The formula in place for M2 is =VLOOKUP("*"&C2&"*",J:K,2,0)

    A picture of my spreadsheet is below. The image feature within this reply box didn't work.

    http://postimg.org/image/dxdzbocgj/

    Thanks,

    Luke

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    (I think you forgot to attach your file?)

  5. #5
    Registered User
    Join Date
    12-29-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Apologies, attachment now included within the below link. Thank you for your help.

    http://www.filedropper.com/excelforumhelp

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Sorry to bounce you around on this, but Please upload your file to the forum. Not all members are able - or willing - to access file-hosting sites

  7. #7
    Registered User
    Join Date
    12-29-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Vlookup Partial Text - Transactions from Bank Statement

    My firewall at work isn't allowing me to upload it onto this forum. No problem if you're unable to access the above link. I'll look elsewhere.

    Thanks anyway.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Vlookup Partial Text - Transactions from Bank Statement

    I am unable to access pretty much any file-hosting sites due to the company fire wall

    Regarding this...
    Currently the vlookup does return the correct category that I want, however it does not return when the value contains more characters that what is in my lookup table.
    Do you mean you are searching for aabbccddee but in your table you only have aabbccdd?
    If so, can you cut down on the characters in your search criteria - maybe with left(a1,8), or some such - or would that return false hits?

    If you cannot upload a small file, can you copy/paste a small sample here instead?

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,648

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Try in M2:

    =IFERROR(IF(LEN(TRIM(C2))=0,"No Information",LOOKUP(1,1/IFERROR(ISNUMBER(SEARCH(IF($J$2:$J$53="","ZZZZ",$J$2:$J$53),C2)),0),$K$2:$K$53)),"Check typo in C column")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  10. #10
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Vlookup Partial Text - Transactions from Bank Statement

    Not perfect but try this out



    regards
    azumi
    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)

Similar Threads

  1. [SOLVED] Vlookup with partial text VBA help
    By itty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2015, 10:25 AM
  2. sort my montly bank transactions in Excel: Please help!
    By Deicide5997 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2015, 07:05 AM
  3. VLOOKUP Partial matches when searched text is longer than actual text
    By mockions in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-23-2015, 11:16 PM
  4. How can I temporarily hide transactions in a bank statement?
    By bogglebogglehead in forum Excel General
    Replies: 1
    Last Post: 02-03-2014, 02:54 PM
  5. Replies: 0
    Last Post: 10-16-2013, 03:39 PM
  6. [SOLVED] Sum values if text is found in string of cell from downloaded bank statement
    By riveras in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2013, 12:47 PM
  7. [SOLVED] Excel 2007 : Find bank balance in bank statement
    By Baldev Kumar in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 02:58 PM

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