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?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi

try in cell B21

=TEXT(SUM(OFFSET(B2,,,ROW()-9))-SUM(OFFSET(A2,,,ROW()-9))-SUM(OFFSET(C2,,,ROW()-9))/24,"[h]:mm")

hope this helps
jindon
 
Upvote 0
Formula doesnt return the same value as mine so it doesnt appear to be working, at least the way i want.

Not sure if i explained myself well anyway so ill try again.

I want my formulas in row 21 to adapt to the addition of a new row and to grow if this occurs.
 
Upvote 0
Hi

I had a calc miss.

should be like

=TEXT(SUM(OFFSET(B2,,,ROW()-4))-SUM(OFFSET(A2,,,ROW()-4))-SUM(OFFSET(C2,,,ROW()-4))/24,"[h]:mm")

rgds,
jindon
 
Upvote 0
Still not it.
Dept. Rosters. Dana.xls
ABCDEFG
1PRODUCEMONbreakTUESbreak
2GARRY7:0016:300.5
3DARRYL6:3014:300.56:3014:300.5
4MATT2:0010:300.57:0015:300.5
5VANESSA2:0010:300.52:008:00
6
7*TRAINEE*5:0013:300.5
8
9IRENE8:0016:300.58:0016:300.5
10SARAH4:0012:300.5
11DAVE5:0013:300.5
12SHAISTEH5:0012:000.55:0012:000.5
13
14MICHELLE08:0016:300.508:0016:300.5
15ANDREW
16DUNCAN15:3019:30
17REGAN15:3019:30
18TIM
19
20
2158:0073:00
BAKERY


Here's the full set of data for 2 days.
 
Upvote 0
KyleG

does this work?

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

jindon
 
Upvote 0
BRILLIANT!!!!

How did you do that and what is your formula saying exactly?

Thanks heaps.
 
Upvote 0
KyleG,

Finally we've got it!

First, I mis calcualted the original size of the data length in one column.
Second, I mistook the column reference Col.B- Col.A which have names.

What it does is no matter how many rows you insert, it still adjust the size of the data length from 3 rows above the current cell.

Sum(Col.C)-Sum(Col.B)-Sum(Col.C)/24

is the basic concept.

rgds,
jindon
 
Upvote 0
My sum formula for totalling the weeks hours now doesnt seem to work. It was =sum(b21:v21)

Any ideas?
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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