Excel 2000 formula to dynamically sum adjacent rows and columns where rows inserted/deleted

sgadams

New Member
Joined
Apr 13, 2011
Messages
1
Hello - I am using Excel 2000 and wonder if anyone has any suggestion
for the below problem -

I have an Excel sheet where Column A shows a client name and Columns C
and D have a $ amount and Column E has an employee name.

There can be multiple employees and $ amounts per client (or no $
amounts). Under the Client name I have the sum of the $ amounts per
client.

But there are rows added and deleted as well as $ amounts. So how can
I use a dynamic sum function to only sum the rows and columns until it
reaches the next client (A5 is not null)? Currently I manually adjust
each hardcoded Sum. But I thought about trying some sort of
sum(offset) - I tried

=SUM(OFFSET(A2, -1, 2, 3,2))
=SUM(OFFSET(A6, -1, 2, 2,2))
=SUM(OFFSET(A10, -1, 2, 1,2))

Which gives me the correct sum values. But in my case I need a way
for the last 2 arguments (height and width) to be dynamic - actually
the width is fixed so really dynamic height since I am adding rows not
columns.

Example:
Client1 $400 $100 Employee 1
$2000 $500 Employee 2
$600 $400 Employee 5

Client2 $300 Employee 3
$750 $400 $50 Employee 4

Client3 $200 $50 Employee 6
$250

NOTE - Column A has the Client name and then it is
blank until a new Client name in Column A. In the example A1 =
Client1, C1 = $400, D1 = $100, E1 = Employee1, A2 = the sum $2000, C2
= $500, D2 = blank, E2 = Employee2, etc. The client name is always in
Column A with the sum immediately below it and the amounts are
adjacent to A.

Thanks for any suggestion.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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