Mar 17 2023 03:25 AM - edited Mar 17 2023 03:28 AM
Hi,
I'm trying to return a value only if date criteria are satisfied, and I'm struggling to do this using the SUMIFS formula. I'm an ok excel user but I don't often have a need to use functions beyond vlookups, pivots etc.
I have a number of projects and I am trying to split the cost of projects across the life of those projects. Each will have a start date and an end date.
I would like automatic formula each month to pull through what the monthly cost will be. E.g. on the example below:
Does anyone know what formula I can use to make this information populate automatically?
Thanks!
Mar 17 2023 03:35 AM
=IF(AND(D2>=$B$2,D2<=$B$3),$B$1/(DATEDIF($B$2,$B$3,"m")+1),0)
This returns the expected result if i correctly understand what you want to do.