Subtraction in VBA

Sakumi

New Member
Joined
Dec 15, 2014
Messages
1
Hello all,

I know there seems to be a lot threads on this topic already, but I can't find any of them helpful.

I have a column of time points (h:mm:ss) being continuously generated. I need to subtract a single starting time point from each of the time points in this column to get an elapsed time.

So as example, I have a column of data in A:A that is being continuously generated and I have a starting time in cell C2. I need something like A:A - C2 and put that data in another column, ex. H:H.

Can anyone help with the script? I am very new to VBA.

Any help will be greatly appreciated.

Sakumi
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi
Welcome to the board

Why do you want to use vba?
This is such a simple problem that you solve with a formula.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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