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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,215,452
Messages
6,124,914
Members
449,195
Latest member
Stevenciu

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