Date range lookup/sum?

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,055
Office Version
  1. 365
Platform
  1. Windows
I have some data that looks like this;

Start Date End Date Hours
1/11/20 2/11/20 20
1/11/20 3/11/20 33
2/11/20 6/11/20 60


What I need is a single formula that can establish that the individual dates hours are as follows;

1/11/20 21 (ie 1/2 of 20, 1/3 of 33)
2/11/20 33 (ie 1/2 of 20, 1/3 of 33, 1/5 of 60)
and so on

I'm not convinced that this is possible with a single formula, and I would need to play with the data first - any ideas?

TIA
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
ok I think I've asked the impossible, so instead, what if I create a grid to the right hand side of the data, a range of dates across the top.

Is there a formula I can use to apportion the hours across the dates grid?
 
Upvote 0
This approach worked :)

=(AND(N6>=$G8,N6<=$H8)*1)*$J8/($H8-$G8+1)
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,038
Latest member
apwr

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