Parse Out Number Values in Successor Column

I have found multiple threads on this but I can't seem to get any specific formula to work for me.

I have a column to Join Successors =JOIN(SUCCESSORS(Name@row), ",")

The highest number of Successors I have is 4 and I'm trying to parse them out into separate columns.

I have formulas that work for three but can't figure one out for 4 numbers.

here are the ones I have that work for 3:

Left number:

=IF(Successors@row <> "", IF(CONTAINS(",", Successors@row), VALUE(LEFT(Successors@row, FIND(",", Successors@row) - 1)), VALUE(Successors@row)))

Middle Number:

=IF(IF(CONTAINS(",", Successors@row), VALUE(MID(Successors@row, FIND(",", Successors@row), LEN(Successors@row) - FIND(",", Successors@row) - 1)), "") = 0, "", IF(CONTAINS(",", Successors@row), VALUE(MID(Successors@row, FIND(",", Successors@row), LEN(Successors@row) - FIND(",", Successors@row) - 1)), ""))

Right Number:

=IF(CONTAINS(",", Successors@row), VALUE(RIGHT(Successors@row, LEN(Successors@row) - (FIND(",", Successors@row, LEN(Successors@row) - FIND(",", Successors@row))))), "")


When I have 4 successor numbers, the two middle numbers blend together in the second formula.

Any changes to my formula or guidance would be so helpful. Thank you!

Tags:

Best Answer

  • Leibel S
    Leibel S ✭✭✭✭✭✭
    Answer ✓

    @Kelly Pratt

    Instead of trying to parse them from your 'Successors' column, you can access them directly.

    Use the below formula, just change the bolded number (for whichever successor number you want to bring back):

    =IFERROR(INDEX(SUCCESSORS(Name@row), 1, 3 ), "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!