I am attempting to develop a sentence structuring template in Excel that will automate sentence and paragraph creation, combining cells and factoring (indexing?) variables, using two sets of data.
Before I go further, here is the source of my inspiration, including steps, and formulas. I just can't figure out how to make it work! "How I Wrote 500,000 Unique GoogleBase Descriptions in 2 Hours" link - http://www.seerinteractive.<wbr>com/blog/how-i-wrote-500000-<wbr>unique-googlebase-<wbr>descriptions-in-2-hours
For those of you who don't want to click that link and read through a whole page of instructions, I will attempt to simplify my "question", as follows:
Below is the suggested formula provided by the author/source from the above link. This formula gives me an error when i copy and execute in a cell in Excel. An open dialog popup appears when I attempt to execute the formula... so I tried copying data set 1 (with about 30 rows of data) and then opening that file when the dialog appears. It did produce a paragraph in the cell, but just one paragraph, not ordered permutations / combinations which is the desired result. I'm sorry to say that i was unable to figure out what went wrong.
Here's the formula.. note that the author / source breaks this formula down step by step, but does not explain much about how it works... at least it did not help me.
=SUBSTITUTE(SUBSTITUTE(<wbr>CONCATENATE((INDEX(Sentences!$<wbr>C$4:$G$4,1,TRUNC((5*RAND())+1)<wbr>))," ",(INDEX(Sentences!$C$6:$G$6,<wbr>1,TRUNC((5*RAND())+1)))," ",(INDEX(Sentences!$C$5:$G$5,<wbr>1,TRUNC((5*RAND())+1)))," ",(CONCATENATE("The product fits the following themes: ",C2,", ",D2," and ",E2,". "))," ",(INDEX(Sentences!$H$5:$L$5,<wbr>1,TRUNC((5*RAND())+1)))," ",(CONCATENATE("Manufactured by ",F2,". ")),(CONCATENATE("[Product] comprised of ",G2,". ")),(CONCATENATE("Available in ",H2,". ")),(INDEX(Sentences!$C$7:$G$<wbr>7,1,TRUNC((5*RAND())+1)))),"[<wbr>Product]",A2),"[Category]",B2)
So my question is sort of simple, but obviously quite complex for me: How do I make this formula execute permutations of Data Set 2, IN SENTENCE STRUCTURE (column) ORDER, (not by all combinations - that would create disorderly sentences obviously) and also factor in the appropriate attributes of Data Set 1, so that it outputs thousands of unique sentences and paragraphs using the index table values that are plugged in the approprate places on the sentence structure template /table?
I sure hope that made sense. If not, you can click the above link or search "How I Wrote 500,000 Unique GoogleBase Descriptions in 2 Hours" and you will find the source document.
Thank you!
Before I go further, here is the source of my inspiration, including steps, and formulas. I just can't figure out how to make it work! "How I Wrote 500,000 Unique GoogleBase Descriptions in 2 Hours" link - http://www.seerinteractive.<wbr>com/blog/how-i-wrote-500000-<wbr>unique-googlebase-<wbr>descriptions-in-2-hours
For those of you who don't want to click that link and read through a whole page of instructions, I will attempt to simplify my "question", as follows:
Below is the suggested formula provided by the author/source from the above link. This formula gives me an error when i copy and execute in a cell in Excel. An open dialog popup appears when I attempt to execute the formula... so I tried copying data set 1 (with about 30 rows of data) and then opening that file when the dialog appears. It did produce a paragraph in the cell, but just one paragraph, not ordered permutations / combinations which is the desired result. I'm sorry to say that i was unable to figure out what went wrong.
Here's the formula.. note that the author / source breaks this formula down step by step, but does not explain much about how it works... at least it did not help me.
=SUBSTITUTE(SUBSTITUTE(<wbr>CONCATENATE((INDEX(Sentences!$<wbr>C$4:$G$4,1,TRUNC((5*RAND())+1)<wbr>))," ",(INDEX(Sentences!$C$6:$G$6,<wbr>1,TRUNC((5*RAND())+1)))," ",(INDEX(Sentences!$C$5:$G$5,<wbr>1,TRUNC((5*RAND())+1)))," ",(CONCATENATE("The product fits the following themes: ",C2,", ",D2," and ",E2,". "))," ",(INDEX(Sentences!$H$5:$L$5,<wbr>1,TRUNC((5*RAND())+1)))," ",(CONCATENATE("Manufactured by ",F2,". ")),(CONCATENATE("[Product] comprised of ",G2,". ")),(CONCATENATE("Available in ",H2,". ")),(INDEX(Sentences!$C$7:$G$<wbr>7,1,TRUNC((5*RAND())+1)))),"[<wbr>Product]",A2),"[Category]",B2)
So my question is sort of simple, but obviously quite complex for me: How do I make this formula execute permutations of Data Set 2, IN SENTENCE STRUCTURE (column) ORDER, (not by all combinations - that would create disorderly sentences obviously) and also factor in the appropriate attributes of Data Set 1, so that it outputs thousands of unique sentences and paragraphs using the index table values that are plugged in the approprate places on the sentence structure template /table?
I sure hope that made sense. If not, you can click the above link or search "How I Wrote 500,000 Unique GoogleBase Descriptions in 2 Hours" and you will find the source document.
Thank you!