Data Pivot-Table. Get into it. It is worth it, believe me!

Signature
Moin+Gruss Alexander - MVP for MS Excel - www.xxcl.de - mso2000sp3 --7-2
Let's say your data occupies A2:D100, with headers on row 1. List your
salesmen, let's say in F2:F15, and put this formula in G2:
=SUMIF(A$2:A$100,F2,D$2:D$100)
format as currency, and copy down to G15 - there is your table of
sales by salesman. If you don't know how much data you have, you can
use column references for the first and 3rd parameter, like so:
=SUMIF(A:A,F2,D:D)
So, to obtain a breakdown by state, list your states in, say, I2
downwards, and put a similar formula in J2:
=SUMIF(A:A,J2,D:D)
and copy down as required.
Do you need me to spell it out for the customer table?
Hope this helps.
Pete
> I have four columns the first with customer, the next with state, the
> next with salesman and the next with sales amount. The customer,
[quoted text clipped - 12 lines]
>
> Thanks for your help.
Pete_UK - 26 Oct 2007 20:51 GMT
Sorry, it should have been:
=SUMIF(A:A,I2,D:D)
for the formula in J2.
Hope this helps.
Pete
> Let's say your data occupies A2:D100, with headers on row 1. List your
> salesmen, let's say in F2:F15, and put this formula in G2:
[quoted text clipped - 38 lines]
>
> - Show quoted text -