ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula or Macro to Assign Cell Locations (https://www.excelbanter.com/excel-discussion-misc-queries/130981-formula-macro-assign-cell-locations.html)

econWGR

Formula or Macro to Assign Cell Locations
 
What I want to do is create some formula that I could copy that would add
just one row assignment.

Here is the example:

in columm d I want to copy the value in cell c2 to the next 8 rows in d.
Then copy the values from cell c3 to the next 8 rows in d and so on for 1,000
rows. I want something that I can just copy over and over for various
worksheets.

Any ideas???



JMB

Formula or Macro to Assign Cell Locations
 
Assuming your data starts in C2 and this formula is entered in D2, try:

=INDEX(C:C,INT((ROW()-ROW(D$2))/8)+ROW(C$2))

modify the range references as needed and copy down.


"econWGR" wrote:

What I want to do is create some formula that I could copy that would add
just one row assignment.

Here is the example:

in columm d I want to copy the value in cell c2 to the next 8 rows in d.
Then copy the values from cell c3 to the next 8 rows in d and so on for 1,000
rows. I want something that I can just copy over and over for various
worksheets.

Any ideas???




All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com