Drag down formula referencing non-adjacent cells

EBoudreau

Board Regular
Joined
Aug 21, 2015
Messages
153
I have one tab in a spreadsheet summarizing information collected in other groups of cells in another tab in the same spreadsheet. I would like to be able to copy down the formula in one tab to reference non-adjacent cells in the other tab, but I cannot figure out how to make each consecutive line reference the right cells in the other spreadsheet because there are gabs in between.

I need to be able to continue dragging down from O12 with formula ='Time Entry'!T22 so that O13 will ='Time Entry'!T30. Essentially with every line I drag the formula down in column O, it references the 8th next cell down in the Time Entry tab. I started by manually having to adjust the formulas but that's going to take forever when I have 52 rows to do this in.

Did that make sense?

Timecard Template (Revising).xlsx
OPQRST
100.00$0.000.00$0.000.00$0.00
110.00$0.000.00$0.000.00$0.00
120.00$0.000.00$0.000.00$0.00
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Schedule - Summary
Cell Formulas
RangeFormula
O10:P10O10='Time Entry'!T6
Q10:R10Q10='Time Entry'!T7
S10:T12S10=SUM(O10,Q10)
O11:P11O11='Time Entry'!T14
Q11:R11Q11='Time Entry'!T15
O12:P12O12='Time Entry'!T22
Q12:R12Q12='Time Entry'!T23


Timecard Template (Revising).xlsx
STU
5WeeklyHoursPay
6Reg0.00$0.00
7OT0.00$0.00
8SUB TOT0.00$0.00
9Holiday0.00$0.00
10Total0.00$0.00
11P/Diem$0.00
12
13WeeklyHoursPay
14Reg0.00$0.00
15OT0.00$0.00
16SUB TOT0.00$0.00
17Holiday0.00$0.00
18Total0.00$0.00
19P/Diem$0.00
20
21WeeklyHoursPay
22Reg0.00$0.00
23OT0.00$0.00
24SUB TOT0.00$0.00
25Holiday0.00$0.00
26Total0.00$0.00
27P/Diem$0.00
28
29WeeklyHoursPay
30Reg0.00$0.00
31OT0.00$0.00
32SUB TOT0.00$0.00
33Holiday0.00$0.00
34Total0.00$0.00
35P/Diem$0.00
36
37WeeklyHoursPay
38Reg0.00$0.00
39OT0.00$0.00
40SUB TOT0.00$0.00
41Holiday0.00$0.00
42Total0.00$0.00
43P/Diem$0.00
44
45WeeklyHoursPay
46Reg0.00$0.00
47OT0.00$0.00
48SUB TOT0.00$0.00
49Holiday0.00$0.00
50Total0.00$0.00
51P/Diem$0.00
52
53WeeklyHoursPay
54Reg0.00$0.00
55OT0.00$0.00
56SUB TOT0.00$0.00
57Holiday0.00$0.00
58Total0.00$0.00
59P/Diem$0.00
60
61WeeklyHoursPay
62Reg0.00$0.00
63OT0.00$0.00
64SUB TOT0.00$0.00
65Holiday0.00$0.00
66Total0.00$0.00
67P/Diem$0.00
Time Entry
Cell Formulas
RangeFormula
T6,T62,T54,T46,T38,T30,T22,T14T6=IF(T8>40,"40.00",T8)
T7,T63,T55,T47,T39,T31,T23,T15T7=IF(T8<41,"0.00",(T8-T6))
T8,T64,T56,T48,T40,T32,T24,T16T8=SUM(H5:J11)
T9,T65,T57,T49,T41,T33,T25,T17T9=SUM(K5:K11)
U64,T66:U66,U56,T58:U58,U48,T50:U50,U40,T42:U42,U32,T34:U34,U24,T26:U26,U16,T18:U18,T10:U10,U8T10=SUM(T8:T9)
U6,U62,U54,U46,U38,U30,U22,U14U6=T6*P5
U7,U63,U55,U47,U39,U31,U23,U15U7=T7*Q5
U9,U65,U57,U49,U41,U33,U25,U17U9=T9*P5
U11,U67,U59,U51,U43,U35,U27,U19U11=SUM(L5:L11)
 
Just leave the 8 alone & change the amount to add or subtract, to get the right cells.
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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