Home

Dragging Formulas and shifting values

%3CLINGO-SUB%20id%3D%22lingo-sub-634352%22%20slang%3D%22en-US%22%3EDragging%20Formulas%20and%20shifting%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-634352%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20am%20setting%20up%20a%20roster%2Ftimesheet%20and%20linking%20data%20to%20clients%20%2C%20staff%20and%20hours.%20The%20source%20workbook%20has%20sheets%20named%20Wk%201%20then%20Wk%202%20Wk%203%20etc.%20The%20formula%20in%20the%20destination%20workbook%20is%26nbsp%3B%3DSUM(J7-'%5BWeekly%20Time%20sheets%20homemade.xlsx%5DWk%202'!%24W%246)%2BO6%26nbsp%3B%20then%20next%20cell%20down%20I%20have%20written%26nbsp%3B%3DSUM(J8-'%5BWeekly%20Time%20sheets%20homemade.xlsx%5DWk%203'!%24W%246)%2BO7%26nbsp%3B%20As%20their%20are%2052%20weeks%20I%20would%20like%20to%20drag%20the%20formula%20down%20with%20the%20week%20numbers%20changing%20as%20well.%20The%20formula%20value%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E!%24W%246)%3C%2FSPAN%3E%3CSPAN%3E%20needs%20to%20remain%20as%20is%20which%20it%20is%20doing.%20Any%20ideas%3FI%20am%20new%20would%20appreciate%20any%20help%20%3A)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-634352%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-634588%22%20slang%3D%22en-US%22%3ERe%3A%20Dragging%20Formulas%20and%20shifting%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-634588%22%20slang%3D%22en-US%22%3EIf%20the%20formula%20in%20your%20destination%20workbook%20is%20in%20K7%2C%20try%20to%20enter%20this%20formula%3A%3CBR%20%2F%3E%3DJ7-indirect(%E2%80%9C%E2%80%98%5Bweekly%20time%20sheets%20homemade.xlsx%5Dwk%26amp%3Brow()-5%26amp%3B%E2%80%99!%24w%246%E2%80%9D)%2Bo6%3CBR%20%2F%3EI%20haven%E2%80%99t%20tested%20the%20foregoing%20formula%20because%20I%E2%80%99m%20replying%20via%20mobile%20phone.%20One%20thing%20i%E2%80%99m%20sure%20is%20that%20Excel%20will%20apply%20the%20appropriate%20case%20of%20the%20formula%20upon%20entry%20thereof.%20Stated%20differently%2C%20Excel%20will%20convert%20Indirect%20to%20INDIRECT%2C%20and%20so%20forth.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-642821%22%20slang%3D%22en-US%22%3ERe%3A%20Dragging%20Formulas%20and%20shifting%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-642821%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345048%22%20target%3D%22_blank%22%3E%40Cambosity%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20simulated%20your%20workbooks%20in%20the%20attached%20files.%20The%20formula%20in%20%5BDestination.xlsx%5DSheet1!K6%2C%20copied%20down%20rows%2C%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3DJ6-INDIRECT(%22'%5BWeekly%20Time%20sheets%20homemade.xlsx%5DWk%20%22%26amp%3BROW()-5%26amp%3B%22'!W6%22)%2BO5%3C%2FP%3E%3CP%3EI%20hope%20the%20foregoing%20formula%20returns%20your%20desired%20result.%20If%20not%2C%20please%20let%20me%20know.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-642824%22%20slang%3D%22en-US%22%3ERe%3A%20Dragging%20Formulas%20and%20shifting%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-642824%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345048%22%20target%3D%22_blank%22%3E%40Cambosity%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20source%20workbook%20failed%20to%20attach.%20Here%20it%20is.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Cambosity
New Contributor

I am setting up a roster/timesheet and linking data to clients , staff and hours. The source workbook has sheets named Wk 1 then Wk 2 Wk 3 etc. The formula in the destination workbook is =SUM(J7-'[Weekly Time sheets homemade.xlsx]Wk 2'!$W$6)+O6  then next cell down I have written =SUM(J8-'[Weekly Time sheets homemade.xlsx]Wk 3'!$W$6)+O7  As their are 52 weeks I would like to drag the formula down with the week numbers changing as well. The formula value !$W$6) needs to remain as is which it is doing. Any ideas?I am new would appreciate any help :)

3 Replies
If the formula in your destination workbook is in K7, try to enter this formula:
=J7-indirect(“‘[weekly time sheets homemade.xlsx]wk&row()-5&’!$w$6”)+o6
I haven’t tested the foregoing formula because I’m replying via mobile phone. One thing i’m sure is that Excel will apply the appropriate case of the formula upon entry thereof. Stated differently, Excel will convert Indirect to INDIRECT, and so forth.

@Cambosity 

I simulated your workbooks in the attached files. The formula in [Destination.xlsx]Sheet1!K6, copied down rows, is: 

=J6-INDIRECT("'[Weekly Time sheets homemade.xlsx]Wk "&ROW()-5&"'!W6")+O5

I hope the foregoing formula returns your desired result. If not, please let me know. 

@Cambosity 

The source workbook failed to attach. Here it is.