VBA Codes: calculation Total for a new column C from column A and B (minus)

vbanewbie68

Board Regular
Joined
Oct 16, 2021
Messages
171
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Sir or Madam

I need your advice please, your help on this is much appreciated.

I am working on bringing data reports from the platform.

See the screenshot below: the columns are Payment Amount and Payment Provider Fee. In the VBA I need to know how to write codes to work out how to insert a new column with a heading such as Net Total. This is to calculate Column A and Column B together, the payment amount and the payment provider fee, putting the total amount into Column C as Net Total?

Please note that payment amount and payment fee can be varied up and down, for example Payment Amount can either be more than 7 rows or less. Same with the Payment Fee as well. Net Total needs to highlight rows automatically.


1652266282434.png


Thank you in advance.

Best regards

Vbanewbie68
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In addition for your information. I am not sure how to use VBA Code to substract from A column to B column to give C the total amount. Hope it makes sense? Thank you.

1652276133547.png

1652276297449.png

1652276331159.png
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,263
Members
449,093
Latest member
Vincent Khandagale

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