New row then formula grows

KyleG

Well-known Member
Joined
Jun 12, 2004
Messages
623
Dept. Rosters. Dana.xls
ABCDEFGHIJKLMNOPQRSTUVWX
14TIM15:3019:3014:0018:008:00
15ANDREW15:3019:3005:0011:000.59:30
16DUNCAN15:3019:3015:3019:3014:0018:0012:00
17REGAN15:3019:3005:0011:000.59:30
180:00
19
20386:00
2151:3064:3064:3067:3062:3042:0033:30386:00
BAKERY


I wont the bottom formulas to grow if more rows of data are added.
So if i add another person between 16 and 17 the formula adds the extra line to itself. does that make sense?
 
Arghh

No that formula doesnt work. Any other ideas? The rows addition is perfect though.
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Just did it really simply...
=B21+E21+H21+K21+N21+Q21+T21

Doh!

Thanks for all the help.
 
Upvote 0
Well now for the flow on problem....i have smiliar sheets that have a slightly different formula. Instead of removing off a lenght of time 0.5 or 1 hour, it removes a calculated length of time 12:00 13:00 removes 1 hour etc.

Can your formula be converted to allow the addition of rows but with this difference?
Dept. Rosters. Dana.xls
ABCDEFGHIJKLM
1DAIRYMONbreakTUESbreakWEDbreak
2BRONWYN7:3016:0012:0012:307:3016:0012:0012:307:3016:0012:0012:30
3JEN9:0018:0012:3013:309:0018:0012:3013:30
4JULIE8:0016:3011:3012:008:0016:3011:3012:008:0016:3011:3012:00
5MATTHEW15:3019:00
6COURTNEY
7KIERAN16:0019:0016:0019:00
8PAUL
9
10
11
1219:0027:3027:00
DAIRY
 
Upvote 0
try

=TEXT(SUM(OFFSET(C2,,,ROW()-4))-SUM(OFFSET(B2,,,ROW()-4))+SUM(OFFSET(E2,,,ROW()-4))-SUM(OFFSET(D2,,,ROW()-4)),"[h]:mm")

and I think the answer is 21:00, not 19:00
 
Upvote 0
Ok that worked great with one minor tweek. Thanks. Here's the next problem that leads on from it, and i think its the last problem. the sum at the bottom that i have set up does not sum if there is the text freezer or liquor in the cell below a value eg. the sum at the bottom excludes the figures from z15-ac15 because freezer is written below it. Dont fail me now...lol you have done so well.

thanks
Dept. Rosters. Dana.xls
VWXYZAAABACADAEAF
118:0013:0012:00
1212:0017:0012:00
138:0013:008:30
14
1508:0017:0012:3013:303:308:00
16Freezer
1708:0018:0012:0013:000:0015:00
18Freezer
1908:0017:0012:0013:000:0010:30
20Liquor
2108:0012:307:004:30
22Liquor
230:000:00
24
25
26134:0038:00
2735:0043:00134:00
GROCERY Students
 
Upvote 0
You need to get rid of all the merged cells.
If you want to align the text in the centre, select range
right click on the range -> cell format -> 2nd tab on the top (don't know how you call it) then select horizontal - centre within the selected range.


=TEXT((SUM(OFFSET(W2,,,ROW()-5))-SUM(OFFSET(V2,,,ROW()-5)))-(SUM(OFFSET(Y2,,,ROW()-5))-SUM(OFFSET(X2,,,ROW()-5))),"[h]:mm")
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,012
Members
449,060
Latest member
LinusJE

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