sum a value between two date

gjonm

New Member
Joined
Mar 6, 2018
Messages
2
Hi all!

I'm trying find a formula to multiply a number by the number of days between two dates.

For example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Number
[/TD]
[TD]From Date
[/TD]
[TD]To Date
[/TD]
[TD]SUM
[/TD]
[/TR]
[TR]
[TD]2.21
[/TD]
[TD]01/01/2018
[/TD]
[TD]28/02/2018
[/TD]
[TD][result]
[/TD]
[/TR]
</tbody>[/TABLE]

So I'm looking for a formula to provide a result summing 2.21 x 28.

I hope this makes sense!

Thanks, gjonm
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Boad!

So I'm looking for a formula to provide a result summing 2.21 x 28.
Why 28?
Aren't there 59 days between January 1 (From Date) and February 28 (To Date)?

Note that Excel store dates as numbers, specifically the number of days since 1/0/1900. So, to get the number of days between two dates, simply subtract the smaller from the larger, i.e.
Code:
=(C2-B2+1)*A2
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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