<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.office.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx</link><description>I thought this would be interesting to share to see how other Excel folks might have solved this problem. I got a question recently from a customer asking how to automatically take a set of values in one column, say: 1000 5000 600 and repeat each value</description><dc:language>en-US</dc:language><generator>Telligent Community 1.5.134.15456 (Build: 5.5.134.15456)</generator><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5576</link><pubDate>Wed, 02 Jun 2010 16:08:39 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5576</guid><dc:creator>AJ</dc:creator><description>&lt;p&gt;Wow, i cant tell you how helpful this is for my job.&lt;/p&gt;
&lt;p&gt;I do data entry, and this will save many wasted hours of overcomplicated formulas/templates.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5576" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5577</link><pubDate>Fri, 06 Feb 2009 08:05:37 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5577</guid><dc:creator>to Joseph</dc:creator><description>&lt;p&gt;Excellent.....very helpful&lt;/p&gt;
&lt;p&gt;Gurvinder, Accounts Manager&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5577" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5578</link><pubDate>Sat, 31 Jan 2009 18:26:37 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5578</guid><dc:creator>SteveA</dc:creator><description>&lt;p&gt;To Joseph&lt;/p&gt;
&lt;p&gt;Thanks, I appreciate your suggestion. That&amp;#39;s seems pretty obvious, doh!&lt;/p&gt;
&lt;p&gt;There is always something new to learn, and sometimes it is can be something almost elementary.&lt;/p&gt;
&lt;p&gt;So thanks again Joseph.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5578" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5579</link><pubDate>Fri, 30 Jan 2009 22:04:27 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5579</guid><dc:creator>Joseph Chirilov</dc:creator><description>&lt;p&gt;SteveA: Usually what I do in that case is press F2 to put the cell in edit mode, select the entire formula and copy it to the clipboard (using CTRL+C), exit edit mode (ESC), then select the target cell (e.g. D9) and paste (CTRL+V).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5579" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5580</link><pubDate>Fri, 30 Jan 2009 18:00:42 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5580</guid><dc:creator>SteveA</dc:creator><description>&lt;p&gt;How about this. Type the numbers you want in a row rather than column eg, 1000 in B2, 5000 in C2, 600 in D2 etc.&lt;/p&gt;
&lt;p&gt;Then select the cells and copy-drag the right hand corner down for the number of repetitions. So, for example, you now have 1000 in B2, B3, B4, B5, 5000 in C2, C3, C3 etc&lt;/p&gt;
&lt;p&gt;Then select each block of numbers and move under the first ones, so 5000 in C2:C4 to B6:B9 etc&lt;/p&gt;
&lt;p&gt;It&amp;#39;s fairly quick for small numbers and the lack of a sort operation does kill any quirky ordering.&lt;/p&gt;
&lt;p&gt;BTW I have a question. As an example, if I have a formula in cell B9 that adds the contents of cells B5 and B6 eg &amp;quot;=B5+B6&amp;quot;.&lt;/p&gt;
&lt;p&gt;Is there any way I can copy (not move) that formula to another cell, say D9, but so that the formula stays pointing to the original cells, eg still &amp;quot;=B5+B6&amp;quot;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want change the formula to fixed addressing by adding $&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5580" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5581</link><pubDate>Mon, 26 Jan 2009 23:49:45 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5581</guid><dc:creator>Harlan Grove</dc:creator><description>&lt;p&gt;A previous reply I sent didn&amp;#39;t show up. I&amp;#39;ll repeat it.&lt;/p&gt;
&lt;p&gt;If the source data were in a range named D, and you wanted each entry in D repeated K times, and the first result cell were X99, try&lt;/p&gt;
&lt;p&gt;X99: &amp;nbsp;=INDEX(D,ROUNDUP(ROWS(X$99:X99)/K,0))&lt;/p&gt;
&lt;p&gt;Fill X99 down as far as needed. The formula will return #REF! errors after D has been exhausted.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also possible to return the repeated instances as an array using either&lt;/p&gt;
&lt;p&gt;=N(OFFSET(D,(ROW(INDIRECT(&amp;quot;1:&amp;quot;&amp;amp;(K*ROWS(D))))-1)/K,0,1,1))&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;=T(OFFSET(D,(ROW(INDIRECT(&amp;quot;1:&amp;quot;&amp;amp;(K*ROWS(D))))-1)/K,0,1,1))&lt;/p&gt;
&lt;p&gt;depending on whether D contains numbers or text.&lt;/p&gt;
&lt;p&gt;And I asked the question before: what does an expression like&lt;/p&gt;
&lt;p&gt;OFFSET(A1,{0;0;1;1;2;2},0,1,1)&lt;/p&gt;
&lt;p&gt;return? It acts like an array of range references.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5581" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5582</link><pubDate>Mon, 26 Jan 2009 22:57:55 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5582</guid><dc:creator>Per Erik</dc:creator><description>&lt;p&gt;This is the solution I came up with:&lt;/p&gt;
&lt;p&gt;=OFFSET(A$1;ROUNDUP(ROW()/4;0)&lt;/p&gt;
&lt;p&gt;-1;0)&lt;/p&gt;
&lt;p&gt;Change /4 to whatever number of times you want it to repeate.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5582" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5583</link><pubDate>Mon, 26 Jan 2009 18:19:12 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5583</guid><dc:creator>Nigel Harper</dc:creator><description>&lt;p&gt;For repeating rows:&lt;/p&gt;
&lt;p&gt;=INDIRECT(&amp;quot;R&amp;quot;&amp;amp;ROW($A$1)+INT((ROWS($B$1:$B1)-1)/4)&amp;amp;&amp;quot;C&amp;quot;&amp;amp;COLUMN($A$1),0)&lt;/p&gt;
&lt;p&gt;For repeating columns:&lt;/p&gt;
&lt;p&gt;=INDIRECT(&amp;quot;R&amp;quot;&amp;amp;ROW($A$1)&amp;amp;&amp;quot;C&amp;quot;&amp;amp;COLUMN($A$1)+INT((COLUMNS($A$2:A$2)-1)/4),0)&lt;/p&gt;
&lt;p&gt;$A$1 is the top-left cell of the series you want to repeat.&lt;/p&gt;
&lt;p&gt;$B$1 (for rows) or $A$2 (for columns) - either can be any cell - is the cell you enter this formula into (no, even though this is self-referencing it does not result in a circular calculation).&lt;/p&gt;
&lt;p&gt;4 is the number of times you want to repeat each successive value.&lt;/p&gt;
&lt;p&gt;No sorting required, but blanks do show up as zeros. &lt;/p&gt;
&lt;p&gt;For repeating both rows &amp;amp; columns (probably best entered on a different sheet):&lt;/p&gt;
&lt;p&gt;=INDIRECT(&amp;quot;Sheet1!R&amp;quot;&amp;amp;ROW(Sheet1!$A$1)+INT((ROWS($A$1:$A1)-1)/4)&amp;amp;&amp;quot;C&amp;quot;&amp;amp;COLUMN(Sheet1!$A$1)+INT((COLUMNS($A$1:A$1)-1)/4),0)&lt;/p&gt;
&lt;p&gt;Sheet1!$A$1 is the top-left cell of the series you want to repeat.&lt;/p&gt;
&lt;p&gt;$A$1 (for rows and columns) - can be any cell - is the cell you enter this formula into (again, no, even though this is self-referencing it does not result in a circular calculation).&lt;/p&gt;
&lt;p&gt;4 is the number of times you want to repeat each successive value (can be a different value for rows and columns.&lt;/p&gt;
&lt;p&gt;Again, no sorting required, but blanks do show up as zeros. &lt;/p&gt;
&lt;p&gt;IMPORTANT: &amp;nbsp;Be sure to get the &amp;#39;dollarizing&amp;#39; correct!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5583" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5584</link><pubDate>Fri, 23 Jan 2009 07:10:38 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5584</guid><dc:creator>Russian Match</dc:creator><description>&lt;p&gt;This blog has been created to share useful information. Thanks and greetings!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5584" width="1" height="1"&gt;</description></item><item><title>re: Repeating a Set of Data</title><link>http://blogs.office.com/b/microsoft-excel/archive/2009/01/20/repeating-a-set-of-data.aspx#5585</link><pubDate>Fri, 23 Jan 2009 01:38:40 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:5585</guid><dc:creator>Joseph Chirilov</dc:creator><description>&lt;p&gt;.c.: Nice touch!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=5585" width="1" height="1"&gt;</description></item></channel></rss>