
Originally Posted by
MrShorty
VLOOKUP() with the 4th argument set to TRUE (rather than FALSE like almost all of the examples out there) does an excellent job of checking if values are in certain intervals. Steps to replacing that big IF() function with VLOOKUP()
1) VLOOKUP(value,table,column,TRUE) only works when the lookup values (left column) in the lookup table are in ascending order. Select W7:Y14 and sort the lookup table in ascending order by column X. Note that column X will be our lookup values.
2) The formula in Positions now becomes =VLOOKUP('momentum signals'!B12,'momentum signals'!$X$7:$Y$14,2,TRUE) (or something like that). Copy down and across.
But, VLOOKUP() is still a discontinuous "step" function, so this replacement is not going to help with the overall problem of getting Solver to find the maximum Sharpe ratio.
Bookmarks