Increment paste filled in data repeated

Big_D

New Member
Joined
Jul 2, 2004
Messages
25
I have data that occurs once every 10 seconds that I need to paste into a sheet with data that occurs once every 1 second. I need it all lined up and filled in. Is there an easy way to do this? Hopefully this example below makes sense.

Column A Sheet 1 (once a second data)
1
2
3
4
5
6
7
8
9
10
11
...

Column A Sheet 2 (once every 10 seconds data)
1137
1190
1184

After paste
A B
1 1137
2 1137
3 1137
...
10 1190
11 1190
...
20 1184
21 1184
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Depending how many you have, the INDIRECT function could get "costly" in terms of processing time since it will calculate with every workbook change. Here's an alternative that should also suit your needs.

Sheet1

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="TEXT-ALIGN: right">1</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">2</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: right">3</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: right">4</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: right">5</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: right">6</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="TEXT-ALIGN: right">7</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD style="TEXT-ALIGN: right">8</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD style="TEXT-ALIGN: right">9</TD><TD style="TEXT-ALIGN: right">1137</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD style="TEXT-ALIGN: right">10</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD style="TEXT-ALIGN: right">11</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD style="TEXT-ALIGN: right">12</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD style="TEXT-ALIGN: right">13</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD style="TEXT-ALIGN: right">14</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD style="TEXT-ALIGN: right">15</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</TD><TD style="TEXT-ALIGN: right">16</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</TD><TD style="TEXT-ALIGN: right">17</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</TD><TD style="TEXT-ALIGN: right">18</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</TD><TD style="TEXT-ALIGN: right">19</TD><TD style="TEXT-ALIGN: right">1190</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">20</TD><TD style="TEXT-ALIGN: right">20</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">21</TD><TD style="TEXT-ALIGN: right">21</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">22</TD><TD style="TEXT-ALIGN: right">22</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">23</TD><TD style="TEXT-ALIGN: right">23</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">24</TD><TD style="TEXT-ALIGN: right">24</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">25</TD><TD style="TEXT-ALIGN: right">25</TD><TD style="TEXT-ALIGN: right">1184</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">26</TD><TD style="TEXT-ALIGN: right">26</TD><TD style="TEXT-ALIGN: right">1184</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>B1</TD><TD>=Sheet2!A1</TD></TR><TR><TD>B2</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B1)+1)/10+1,0))</TD></TR><TR><TD>B3</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B2)+1)/10+1,0))</TD></TR><TR><TD>B4</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B3)+1)/10+1,0))</TD></TR><TR><TD>B5</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B4)+1)/10+1,0))</TD></TR><TR><TD>B6</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B5)+1)/10+1,0))</TD></TR><TR><TD>B7</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B6)+1)/10+1,0))</TD></TR><TR><TD>B8</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B7)+1)/10+1,0))</TD></TR><TR><TD>B9</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B8)+1)/10+1,0))</TD></TR><TR><TD>B10</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B9)+1)/10+1,0))</TD></TR><TR><TD>B11</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B10)+1)/10+1,0))</TD></TR><TR><TD>B12</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B11)+1)/10+1,0))</TD></TR><TR><TD>B13</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B12)+1)/10+1,0))</TD></TR><TR><TD>B14</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B13)+1)/10+1,0))</TD></TR><TR><TD>B15</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B14)+1)/10+1,0))</TD></TR><TR><TD>B16</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B15)+1)/10+1,0))</TD></TR><TR><TD>B17</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B16)+1)/10+1,0))</TD></TR><TR><TD>B18</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B17)+1)/10+1,0))</TD></TR><TR><TD>B19</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B18)+1)/10+1,0))</TD></TR><TR><TD>B20</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B19)+1)/10+1,0))</TD></TR><TR><TD>B21</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B20)+1)/10+1,0))</TD></TR><TR><TD>B22</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B21)+1)/10+1,0))</TD></TR><TR><TD>B23</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B22)+1)/10+1,0))</TD></TR><TR><TD>B24</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B23)+1)/10+1,0))</TD></TR><TR><TD>B25</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B24)+1)/10+1,0))</TD></TR><TR><TD>B26</TD><TD>=INDEX(Sheet2!A:A,ROUNDDOWN((COUNT($B$1:B25)+1)/10+1,0))</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top