Import and Clean Bank Activity - Excel University (2024)

If you have ever downloaded bank activity from your bank’s website, you know there is some amount of cleaning you need to do before the data is ready to use. Perhaps the next step is to summarize the bank activity with a PivotTable, or, perhaps to perform a bank rec. Regardless of your ultimate objective, you’ll need to spend time importing it into Excel and then cleaning it up. This post demonstrates how to use a Get & Transform query to import downloaded bank activity into Excel and prepare it for use.

Objective

Before we get too far, let’s take a look at our objective. We have logged into our bank account and exported the activity for a date range. The bank’s website exports it to a CSV file, a sample of which is shown below.

Import and Clean Bank Activity - Excel University (1)

Before we can use it in our next step, whatever that may be, we’ll need to tidy it up a bit. For example, we need to remove columns C & D, we need to distinguish between deposits and charges, and we need to classify the type of charge based on text in the description. Then, just because we accountants enjoy this type of thing, we’ll summarize it in a PivotTable to confirm it matches our bank statement. I’ve created a short video as well as a written narrative below to demonstrate how to accomplish all of this.

Video

Narrative

We’ll walk through this using the following steps:

  • Import CSV
  • Clean
  • Load to PivotTable

Let’s just jump right in.

Note: The steps below are presented with Excel for Windows 2016. If you are using a different version of Excel, please note that the features presented may not be available or you may need to download and install the Power Query Add-in.

Import CSV

First, you download the bank activity from the bank website as a CSV file. Then, in a new blank Excel workbook, you click the Data > From Text/CSV command in the Get & Transform ribbon group. In the resulting Import Data dialog, browse to the CSV file. Excel provides a preview of the data, as shown below.

Import and Clean Bank Activity - Excel University (2)

Click the Edit button to open the Query Editor, where we’ll Clean the data.

Clean

The CSV data is loaded into the Query Editor, as shown below.

Import and Clean Bank Activity - Excel University (3)

Inside the Query Editor, we can apply a series of steps to clean the data.

1) Let’s remove unnecessary columns, in our case, the 3rd and 4th columns. To do this, we click the column to delete and use the Home > Remove Columns command.

Note: we can also group-select multiple columns by holding the Shift or Ctrl key while selecting the columns.

2) Let’s define our column labels. To do this, we double-click the existing Column label, enter the new label, and hit Enter. In our case, our new column labels are Date, Amount, and Description.

3)Now, we can create any new columns we may need. In our case, we want a new column that describes the type of transaction. This will be useful when we return the data to Excel and summarize it with a PivotTable.

There are many options in the Add Column ribbon tab worth exploring, but the one we are after now is the Add Column > Conditional Column command. This opens the Add Conditional Column dialog, where we can define the rules.

The first rule will label positive amounts as deposits. So, in the dialog, we create the first rule: If the Amount column is greater thanthe value0 then we want the Output to be Deposit. Then we click the Add rule button and move to our next rule.

The second rule will identify the transactions that have a description that contains the text BILL PAY as a Check. So, we create the next rule: If the Description column containsthe value BILL PAYthen the Output is Check. We click the Add rule button to create our next rule.

The third rule will identify the transactions that have a description that contains the text PURCHASE AUTHORIZED as a debit card purchase. So, the next rule is: If the Description column contains the value PURCHASE AUTHORIZED then the Output is Debit Card.

If none of these conditions are true, then, we set the Otherwise value to Charge.

Note: these rules are case sensitive, so, if the descriptioncontains BILL PAY then the dialog needs to be BILL PAY and not Bill Pay or bill pay.

The final rules look like this:

Import and Clean Bank Activity - Excel University (4)

Click OK and bam … the new column appears in the Query editor as shown below.

Import and Clean Bank Activity - Excel University (5)

Now, we are ready to return the data to Excel.

Load to PivotTable

To return the query results to Excel, we can click the Home >Close & Load To command.

To see the results in an Excel table, we select the Table option. Now, we can summarize the data with a PivotTable by clicking any cell in the results table and clicking Insert > PivotTable.

We then structure the PivotTable report as desired by placing fields into the desired layout area. For example, we can insert the Amount field into the Values area, and the new custom column into the Rows area, and the resulting PivotTable is shown below.

Import and Clean Bank Activity - Excel University (6)

And the best part is that next month, we can simply download a new CSV file from the bank website, delete the old CSV, and save the new one in the same folder with the same file name. Then, use the Data > Refresh All command and bam … it is done! The PT now includes all data from the new CSV file.

If you have any other fun Get & Transform tricks, please share by posting a comment below!

Sample CSV file:SampleFile

Import and Clean Bank Activity - Excel University (2024)

FAQs

Is there a way to import bank statements into Excel? ›

To convert bank statement text to Excel, use OCR software like DocuClipper. This tool automatically extracts and organizes text data from your bank statement, generating a user-friendly Excel spreadsheet for efficient financial management.

How to import and clean data in Excel? ›

The basics of cleaning your data
  1. Import the data from an external data source.
  2. Create a backup copy of the original data in a separate workbook.
  3. Ensure that the data is in a tabular format of rows and columns with: similar data in each column, all columns and rows visible, and no blank rows within the range.

How do you maintain a bank reconciliation statement in Excel? ›

Key Takeaways
  1. To create a bank reconciliation template, you must first label all fields and set formulas accordingly. ...
  2. Prepare reports by sorting rows. ...
  3. You can automate bank reconciliations in Excel with functions such as VLOOKUP, SUMIF and COUNTIF to match transactions, check deposits and identify duplicate records.
Feb 1, 2024

How to clean up bank statements? ›

Six steps for cleaning up your bank account
  1. Define your financial goals. ...
  2. Evaluate your current spending habits. ...
  3. Know what you owe. ...
  4. Set a budget. ...
  5. Cut the credit card use. ...
  6. Monitor your statement.
Jan 4, 2019

What software is used to scan bank statements into Excel? ›

Flexible Export Options

DocuClipper enables you to convert bank statements to Excel, CSV, QBO, or JSON formats. Easily select your preferred format to download your files.

Can Excel do bank reconciliation? ›

Using Excel instead of a manual worksheet greatly simplifies reconciling. An Excel sheet can be used to import data from your accounting system or bank statement, and formulas can then be used to compare the data and spot errors.

What is the clean function in Excel? ›

The CLEAN Function[1] is categorized under Excel Text functions. The function removes non-printable characters from the given text. As financial analysts, we often import data from various sources and the CLEAN function can help remove nonprintable characters from a supplied text string.

What are the four steps in the bank reconciliation? ›

The four steps in bank reconciliation are (1) accessing and comparing deposits between a company's bank statement and its internal systems of record, (2) normalizing the bank statement as needed, (3) formatting of data from internal systems of record, and (4) comparing the bank statement and internal records to confirm ...

What are the three methods of a bank reconciliation? ›

The three methods of a bank reconciliation are:
  • Comparing the statements.
  • Adjusting the balances.
  • Recording the reconciliation.

What is the formula for bank reconciliation? ›

A bank reconciliation can be thought of as a formula. The formula is (Cash account balance per your records) plus or minus (reconciling items) = (Bank statement balance). When you have this formula in balance, your bank reconciliation is complete.

How do I delete my bank transaction history? ›

It is generally not possible to delete past transactions from a bank account. Bank transactions are permanent records that are used for record-keeping and tax purposes, among other things. If a mistake has been made, you can contact your bank and request that they correct the transaction.

What should I black out on my bank statement? ›

Ensure that all confidential information, including account numbers, transaction details, residential addresses, etc., is redacted. Do not forget to redact any third-party information, such as a joint account holder's name or account number.

How do I remove entries from my bank statement? ›

Once in the Bank Statement, locate the transaction you want to delete. Check the appropriate box to review the transaction. If you cannot find the transaction, you can use the filters in the drop-down menu or type keywords in the search bar. Once you have found the transaction, click on the three dots icon (⋮).

How do I import bank statements? ›

Go to Gateway of Tally > Banking > Bank Reconciliation > select the bank ledger. 2. Click B : Import . The import progress bar is displayed followed by the Success message with count of Total Entries in Bank Statement , Reconciled transactions and Additional Bank Entries .

Can I download my bank statement as a CSV file? ›

Most banks offer downloads in CSV file format, which you can upload directly into your Crunch account. If your bank doesn't offer this format, don't worry, simply download in another format, such as XLS and convert the file into a CSV.

How do I import bank statements into sheets? ›

Download the transaction data from your bank's website. Upload the file to Google Drive and open it with Google Sheets. Format the data to match your Google Sheets banking template or layout. Copy and paste the formatted data into your main financial tracking sheet.

How to convert bank statement text file to Excel? ›

Steps to convert content from a TXT or CSV file into Excel
  1. Open the Excel spreadsheet where you want to save the data and click the Data tab.
  2. In the Get External Data group, click From Text.
  3. Select the TXT or CSV file you want to convert and click Import.
  4. Select "Delimited". ...
  5. Click Next.
Aug 5, 2022

Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5747

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.