Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3617584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:38:36+00:00 2026-05-18T22:38:36+00:00

Background: I need to clean up a CSV file of my bank statement for

  • 0

Background: I need to clean up a CSV file of my bank statement for use in an online financial reporting tool.

The transactions are all in the following formats (columns seperated by commas):

0901XX 892XXXXX, 24/12/2010, CARD PAYMENT TO MICKEY MOUSE29.90 GBP ON 22-12-2010, -29.9

The problem I have is that the information in the thrid column is all unique because of the inclusion of the transaction amount and date – “CARD PAYMENT TO MICKEY MOUSE*29.90 GBP ON 22-12-2010*”. Consequently, I’m forced to categorise all 200+ transactions individually, which is not condusive with my mental wellbeing.

The best solution I can think of is to remove all numbers from this column and find and replace all of the redundant terms (“GBP ON”, “.”, “-“) with a null value, but I’m not sure how to go about putting that together.

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:38:37+00:00Added an answer on May 18, 2026 at 10:38 pm

    The following may help you. I am making the following assumptions:

    1. You are getting your online banking details in a .csv format initially
    2. Your third column is always of the form TextDescription+Amount+Currency+Date
    3. In the .csv file, the third column is column C in the workbook

    Follow these steps:

    1. Open .csv file
    2. Open VBE editor by pressing ALT + F11
    3. Select Insert > Module from toolbar
    4. In module paste the following code, place cursor anywhere in code, and then hit `F5′

      Sub CleanTransaction()
      Dim rng As Range, cl As Range
      Dim lastRow As Long, iChar As Long
      lastRow = Range("C1").End(xlDown).Row
      Set rng = Range("C1:C" & lastRow)
      
      
      For Each cl In rng
         For iChar = 1 To Len(cl)
             If IsNumeric((VBA.Mid$(cl, iChar, 1))) Then
                 cl = VBA.Trim$(VBA.Left$(cl, iChar - 1))
             End If
         Next iChar
      Next cl    
      End Sub
      

    This should do the following for each item in column C:

    CARD PAYMENT TO MICKEY MOUSE29.90 GBP ON 22-12-2010 
    

    …becomes…

    CARD PAYMENT TO MICKEY MOUSE
    

    Note that the code works by looking for the first occurence of a number in the description and stripping out everything after that. This assumes that first occurence of a number always denotes the price. If the payment recipient had a number in the name then the code would fail e.g. CARD PAYMENT TO PHONES4U

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background We need to develop a specialised CMS (internal use only) to support a
I need change background of all text that have two spaces from the start
The following two paragraphs are background - they just explain why I need to
Background: I'm writing a script to clean up all non-visible layers in a photoshop
I need background transparent only for black div. but it is applying even for
I come from a .NET background and need to do a web project in
When i send my application to the background i need to kill the process,
Background: What I need to accomplish is to remove any records in a collection
I need to have background Music in my website, With user oN and OFF
I need to know how to change background of expanded list item when it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.