Counting Days with VBA

bloodmilksky

Board Regular
Joined
Feb 3, 2016
Messages
202
Hi Guys,

I was just wondering if anyone has the VBA syntax for counting days. in C21 I have 01/01/2016 in D21 I have 11/01/2016.

If possible I would like the total amount of days shown in B21

any help would be greatly appreciated many thanks and all the best

bloodmilksky
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi,

Not quite :) I would like that when I enter the dates From(C21) To(D21) that it shows me how many days there are. so for the example above the result should be 11 days.

Many thanks

jamie
 
Upvote 0
First, is it Jan 1 to Jan 11?
Second, Below statement is confusing.
If possible I would like the total amount of days shown in B21
Total number of day then would be =d21-c21+1 which equal to 11 if you are counting days for time period Jan 1 to Jan 11

need more clarification
 
Upvote 0
Hi Sorry To start over but I have confused everything.

so in A1 I have 01.01.2016 and in A2 I have 15.01.16 and I need to know the amount of days between those dates shown in A3?
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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