I am trying to get the index of a string from excel to dynamo. For example, I want to get the index of the column and row from the string “banana” . I want to be able to get the index (column B and row 3 in this case). Then from this index, I will add from Dynamo the data from the Quantity row to excel.
My idea is something similar to the following script:
Try to use the String.IndexOf node. The node you have will get the item in the list at the specific index (integer). The IndexOf node will get the index in the list of the string supplied.
-1 in this case means the item doesn’t exits. List Levels are built into most nodes and give you greater control over how functions recognize inputs. Look it up in the Dynamo Primer. There are many essentials in the Primer that you’ll need to understand in order to get the most out of Dynamo and your graphs.