excel sum formula

B

Brendan

Hi all,

I have an excel worksheet with a little over 4000 rows..
Column A is a customer number and column B stores the
amount they have spent in the last month

A customer numeber may appear many times in consecutive
order.

What I need is to sum up the amount each customer spent
and start again at 0 when a new customer numeber is
encountered

Thanks in advance
 
A

Anon

Brendan said:
Hi all,

I have an excel worksheet with a little over 4000 rows..
Column A is a customer number and column B stores the
amount they have spent in the last month

A customer numeber may appear many times in consecutive
order.

What I need is to sum up the amount each customer spent
and start again at 0 when a new customer numeber is
encountered

Thanks in advance

Have a look at Subtotals, which you find on the Data menu and which is
described under "subtotals, data summary" in Help. Basically, the wizard for
this allows you to insert subtotal rows every time there's a change in a
list - in your case every time the customer number changes.
 
A

AndyB

Brendan

I would use a pivot table. This would do what you want quickly and easily.

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top