View Single Post
 
Old 10-29-2022, 07:06 AM
ColtonYYZ ColtonYYZ is offline Windows 11 Office 2021
Novice
 
Join Date: Oct 2022
Posts: 4
ColtonYYZ is on a distinguished road
Default How to duplicate a block of cells that contain formulas without losing reference?

Please note: I have posted this question on another website a few days ago and have not received any answers to it. I am hoping on of you kind folks here might know the answer.

I am creating time cards and need 260 of them. I want to simply create one, and then copy paste, duplicating each copy/paste until I have 260. The problem is, formula references are taking account for cells in between each other. In other words, If I have a formula in A1 and A6, and data in the cells in between that also needs to be copied.

I have attached the sample workbook and a photo showing what I want to copy and where.

I need the formulas I copy down without loosing reference (staying sequentially correct) despite other rows in between have data. As it stands now, when I try to paste formula, it calculates all the lines in between the yellow boxes so numerically, it's not referencing the correct cell in the different sheet.

I found this formula listed on another website post and wonder if this would work for what I need to do: =INDIRECT("sheet1!B"& ROW(A5)/5)

I am using VLOOKUP and I tried this code:

=IFERROR(VLOOKUP(B6,Sunday!$A6:$K6,6,FALSE),"")

However I can't figure out how to combine INDIRECT with the VLOOKUP. In my original (real workbook) there are 29 rows between B6 and B35. Same between G5 and G34, and also between D12 and D41.

Can someone help me figure out a way to be able to copy the whole timesheet and duplicate it again and again? I need 260 of them.


Links to other forums I have posted my query on:

How to duplicate a block of cells that contain formulas without losing reference?

How to duplicate a block of cells without losing formula references - Microsoft Community Hub

https://www.msofficeforums.com/excel...tml#post171318

How to duplicate a block of cells without losing formula references | MrExcel Message Board
Attached Images
File Type: jpg copy down.jpg (237.0 KB, 16 views)
Attached Files
File Type: xlsx Sample Book.xlsx (59.4 KB, 8 views)

Last edited by ColtonYYZ; 10-29-2022 at 08:33 AM. Reason: Including links to other sites I have asked this question on.
Reply With Quote