Hi,
I am trying to use a number of nested if functions to return a total number based on the number of weeks the cash flow will impact e.g. 5 weeks with cash flow of £50,000 is £250,000. The complexity I have is how to spread this out into quarters across the year based on user specified start and end dates e.g.
• Q1 is 201401 to 201413 (inclusive) if the cash lands in the final 2 weeks in Q1 (201412 to 201413 inclusive) and the remaining 3 weeks in Q2 (201414 to 201416 inclusive) I want the result to show £100,000 for Q1 and £150,000 for Q2.
The other complexity I have is if I have a one off cheque payment I add this into a separate column and want Excel to ignore the cash column and look at the cheque column while putting the correct value into the relevant Quarter column e.g.
• If I have a cheque banked in Q3 (201427 to 201439) I want the result to be out into the Q3 column and not multiplied by the number of weeks.
So far I have the following formulas:
Q1 - =IF($C7>=201414,0,IF($B7="Cheque",$L7,$E7*(201414-$C7)))
Q2 - =IF($B7="cheque",IF($C7>=201414,$L7,0),$E7*(201427-MAX($C7,201414)))
Q3 - =IF($B7="cheque",IF($C7>=201427,$L7,0),$E7*(201440-MAX($C7,201427)))
Q4 - =IF($B7="Cheque",IF($C7>=201427,$L7,0),$E7*(201440-MAX($C7,201427)))
I have also attached an example document which may be helpful.
I hope this is clear to all.
Many thanks
Bookmarks