I am trying to fill in/update cells based on the contents of a data cell and repeat that pattern for N times where N is the value of another cell. The data cell would contain a string and the match condition would be a the contents of another cell. For example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]ABC[/TD]
[TD]DEF[/TD]
[TD]Q[/TD]
[TD]SX[/TD]
[TD]VVV[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match string[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]AA[/TD]
[TD]AA[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]ABC[/TD]
[TD]A[/TD]
[TD]RES[/TD]
[TD]Y1W[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]AA[/TD]
[TD]AAA[/TD]
[TD]AA[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]A[/TD]
[TD]A1[/TD]
[TD]ABC[/TD]
[TD]Qwe[/TD]
[TD]KK[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]B[/TD]
[TD]B[/TD]
[TD]BBB[/TD]
[TD]BB[/TD]
[TD]BB[/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]BOO[/TD]
[TD]A[/TD]
[TD]BOB[/TD]
[TD]NBV[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Itterations[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don't know if this is possible to do with just formulas, or if it requires VB, or maybe not even possible in general. Hopefully I explained it well.
Thanks in advance for your input. <style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}--></style>
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]ABC[/TD]
[TD]DEF[/TD]
[TD]Q[/TD]
[TD]SX[/TD]
[TD]VVV[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match string[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]AA[/TD]
[TD]AA[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]ABC[/TD]
[TD]A[/TD]
[TD]RES[/TD]
[TD]Y1W[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]A[/TD]
[TD]AA[/TD]
[TD]AAA[/TD]
[TD]AA[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]A[/TD]
[TD]A1[/TD]
[TD]ABC[/TD]
[TD]Qwe[/TD]
[TD]KK[/TD]
[/TR]
[TR]
[TD]Repeat[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Output[/TD]
[TD]B[/TD]
[TD]B[/TD]
[TD]BBB[/TD]
[TD]BB[/TD]
[TD]BB[/TD]
[/TR]
[TR]
[TD]Data[/TD]
[TD]BOO[/TD]
[TD]A[/TD]
[TD]BOB[/TD]
[TD]NBV[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Itterations[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Match String[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don't know if this is possible to do with just formulas, or if it requires VB, or maybe not even possible in general. Hopefully I explained it well.
Thanks in advance for your input. <style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}--></style>