I have a sheet which records results and the P&L from those results. I am wanting to trial something; using time-weighting to skew the results, but not sure how to do this.
Column A has the date and what I am wanting to do is have the P&L calculation altered depending on the date. This is how the standard calculation looks at the moment
It checks the finish position (I) and the SP - Starting Price (G) and if the finish position is 1 and the SP is <=20, the the calculation is performed. That all works fine, but I am wanting to now bring the date into play, but unsure how to do it. I assume it will require an additional column which will look at the Profit column (J) and apply the various % based on the distance from today's date.
So I want to work in 6 month blocks. If the date is within 6 months, then the P&L remains 100% of what it was, so no code needed there at all.
If the date is over 6 months and up to 12 months, I want the P&L to only be 50%.
If the date is over 12 months and up to 18 months, I want the P&L to only be 25%
If the date is over 18 months and up to 24 months, I want the P&L to only be 12.5%
If the date is over 24 months and up to 30 months, I want the P&L to only be 6.25%
If the date is over 30 months and up to 36 months, I want the P&L to only be 3.125%
Does that make sense at all? The P&L gets reduced depending on how far from today's date it is.
Is this at all possible?
I have played around with using this formula just to find out if the current date is within 6 months. It's not anywhere near the final code, but a start
It gives a simple TRUE or FALSE, response. It seems to work in that respect, which leads me to believe I am sort of on the right track, but I don't know how to structure this with the above percentages to adjust the profit in column J.
cheers
Column A has the date and what I am wanting to do is have the P&L calculation altered depending on the date. This is how the standard calculation looks at the moment
Code:
=IF(AND(I2>1,G2<=20),-100,IF(AND(I2=1,G2<=20),(G2-1)*98,0))
It checks the finish position (I) and the SP - Starting Price (G) and if the finish position is 1 and the SP is <=20, the the calculation is performed. That all works fine, but I am wanting to now bring the date into play, but unsure how to do it. I assume it will require an additional column which will look at the Profit column (J) and apply the various % based on the distance from today's date.
So I want to work in 6 month blocks. If the date is within 6 months, then the P&L remains 100% of what it was, so no code needed there at all.
If the date is over 6 months and up to 12 months, I want the P&L to only be 50%.
If the date is over 12 months and up to 18 months, I want the P&L to only be 25%
If the date is over 18 months and up to 24 months, I want the P&L to only be 12.5%
If the date is over 24 months and up to 30 months, I want the P&L to only be 6.25%
If the date is over 30 months and up to 36 months, I want the P&L to only be 3.125%
Does that make sense at all? The P&L gets reduced depending on how far from today's date it is.
Is this at all possible?
I have played around with using this formula just to find out if the current date is within 6 months. It's not anywhere near the final code, but a start
Code:
=AND(A2>EOMONTH(TODAY(),-(6+1)),A2<=EOMONTH(TODAY(),-1))
It gives a simple TRUE or FALSE, response. It seems to work in that respect, which leads me to believe I am sort of on the right track, but I don't know how to structure this with the above percentages to adjust the profit in column J.
cheers