Importing monthly credit card transaction CSV file into budgeting tool...

Alps

New Member
Joined
Dec 4, 2024
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Dear MrExcel Gurus,

I am using a web based budgeting solution and I have a credit card transaction file that is in CSV format that I will be importing monthly. As shown in the screenshot below, the Type column shows types as either Payments or Purchases. The Amount column shows Payments as a negative number and Purchases as a positive number. I would like to change this in Excel to show:

Payment=Positive Number
Purchase=Negative Number

As I will be repeating this on a monthly basis, I am looking for the most automated method to manage this.

With kind regards | Mit freundlichen Grüßen | Meilleures salutations

Alps

Screenshot 2024-12-04 at 12.38.14.png
 

Attachments

  • 1733344972506.png
    1733344972506.png
    31.5 KB · Views: 2

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Enter a -1 in a cell. Copy that Cell. Highlight all the payment and purchase values you want to change. Press Ctrl-Alt-V. Select Multiply and click OK

1733348749914.png
 
Upvote 0
I added a button on my sheet and added code like this. Highlight all the values you want to change then run this code.

VBA Code:
Private Sub ChangeSign_Btn_Click()
  Dim Cel As Range
  
  Application.Calculation = xlCalculationManual
  For Each Cel In Selection
    Cel.Value = Cel.Value * -1
  Next Cel
  
  Application.Calculation = xlCalculationAutomatic
End Sub
 
Upvote 0
Thank you Jeffrey. I am familiar with the manual method your first described. I was thinking would it be possible to use VLOOKUP with Absolute value function (ABS) to change negative payment values to positive and with the same formula positive purchase values to negative.

With kind regards | Mit freundlichen Grüßen | Meilleures salutations

Alps
 
Upvote 0
You don't need VLOOKUP, you would have to have a huge list. If you're going to just change the sign with a formula then why not take each cell value *-1

Book3
DEF
4Payment-267.16267.16
5Purchase46.13-46.13
6Payment-0.010.01
7Payment-4.514.51
8Payment-81.4181.41
9Payment-1601.241601.24
10Payment24.45-24.45
11Payment15.42-15.42
12Payment11-11
13Purchase5.78-5.78
14Purchase1.14-1.14
15Purchase3.56-3.56
16Purchase61.89-61.89
17Purchase901.45-901.45
18Purchase4.01-4.01
Sheet1
Cell Formulas
RangeFormula
F4:F18F4=E4*-1
 
Upvote 0
Thanks Jeffrey. I have 100+ transactions per file, but I agree that your method will work for what I need. Thank you again for your help.

With kind regards | Mit freundlichen Grüßen | Meilleures salutations

Alps
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

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