I have an excel sheet.
Column B1 has a horizontal list of words (people) separated by strings in the same cell.
Column C1 has a horizontal list of words (verbs) separated by strings in the same cell.
Column D1 has a horizontal list of words (places) separated by strings in the same cell.
I would like to iterate through and create sentences.
Example: My daughter is playing football in the garden.
a. I would like to produce 100 sentences by concatenating one word from each column.
b. The sentences should not be the same unless it's unavoidable.
I have tried this formula but it doesn't work on my macbook pro (things never do that's why I'm here.
=INDEX(SPLIT(B1, ","), RANDBETWEEN(1, COUNTA(SPLIT(B1, ",")))) & " " &
INDEX(SPLIT(C1, ","), RANDBETWEEN(1, COUNTA(SPLIT(C1, ",")))) & " " &
INDEX(SPLIT(D1, ","), RANDBETWEEN(1, COUNTA(SPLIT(D1, ","))))
Bookmarks