Consecutive Figures Matching Timeline

CraigACE

New Member
Joined
Feb 15, 2018
Messages
5
Hey Guys,

i'm looking for a solution to the below.
I have a cash-flow calculator which I cannot get to allocate the labour rates in the right weeks.
for example, on a 6 week project, if materials take 2 weeks to deliver (Orange Cell) and labour 4 weeks then I need the labour cost to go against the final 4 weeks (Sheet 2) (weeks 2-6) (Column K)
The cost is a simple formula of labour cost divided by number of labour active weeks.


Sheet 1:
1.png



Sheet 2:
2.png



could anyone assist with a formula / solution?


thanks,
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You don't show all the cell refs but in K2 try something like

=IF(and(H2>Sheet1!B10,H2<=Sheet1!B16),Sheet1!B20/(Sheet1!B16-Sheet1!B10),0) and copy down

where B10 is material receipt week ie2 and B16 is the expected length of project ie 6 and B20 is the labour cost ie£4670 (obviously change these references to the actual cells on your sheet)
 
Upvote 0
You don't show all the cell refs but in K2 try something like

=IF(and(H2>Sheet1!B10,H2<=Sheet1!B16),Sheet1!B20/(Sheet1!B16-Sheet1!B10),0) and copy down

where B10 is material receipt week ie2 and B16 is the expected length of project ie 6 and B20 is the labour cost ie£4670 (obviously change these references to the actual cells on your sheet)

Hi Jim,

thanks for the reply, i cant seem to get this to work, it keeps returning 0's. Im maybe getting the cells mixed up. Ive added a screenshot incl. the references.


Thanks,
 

Attachments

  • 3.png
    3.png
    102.3 KB · Views: 2
Upvote 0
My bad, I forgot to lock the cell refs! Try this

=IF(AND(H2>Sheet1!$B$14,H2<=Sheet1!$B$20),Sheet1!$B$24/(Sheet1!$B$20-Sheet1!$B$14),0)
 
Upvote 0

Forum statistics

Threads
1,215,674
Messages
6,126,138
Members
449,294
Latest member
Jitesh_Sharma

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