How to use the data in the Predecessor Column as a variable.
Im trying to use the number inside of the predecessor column to call out the location of the row to get information from that row.
=VLOOKUP([Predecessors]@row, {Predecessors}, {column x}, false)
=INDEX([column x], MATCH([Predecessors]@row, [Row]))
none of these seem to work. Is there a way to call the predecessor column as a int. IE the predecessor is row 10. =[column x]10
Best Answers

VALUE(Predecessors@row + "") worked for me.
=IF(ISBLANK(Predecessors@row), "", INDEX([Task Name]:[Task Name], VALUE(Predecessors@row + "")))
If you test the Predecessors@row with ISNUMBER and ISTEXT, the result shows that the predecessor is neither a number nor a text. So, to use it in INDEX or VLOOKUP, I converted the value first to text by adding "" and then used the VALUE function to convert it to a number.
https://app.smartsheet.com/b/publish?EQBCT=6ab5b2a32e4542ee9417dd112fb2c90b

Unreal, it works perfect thank you!
Answers

VALUE(Predecessors@row + "") worked for me.
=IF(ISBLANK(Predecessors@row), "", INDEX([Task Name]:[Task Name], VALUE(Predecessors@row + "")))
If you test the Predecessors@row with ISNUMBER and ISTEXT, the result shows that the predecessor is neither a number nor a text. So, to use it in INDEX or VLOOKUP, I converted the value first to text by adding "" and then used the VALUE function to convert it to a number.
https://app.smartsheet.com/b/publish?EQBCT=6ab5b2a32e4542ee9417dd112fb2c90b

Unreal, it works perfect thank you!
Help Article Resources
Categories
Check out the Formula Handbook template!