Link to home
Start Free TrialLog in
Avatar of Simonrepro
Simonrepro

asked on

Complicated sum required in Excel 2003

I am trying to work out the value of sales for each individual sales person per month per nominal code.  

In the attached spreadsheet are the following worksheets:

Sales = Sales of ink cartridges from 01/04/2010 'Nominal_Code' is what splits up certain types of ink cartridges and 'Analysis_1' shows me the individual salesperson who's account bought the said product.

Ink Nominal = This shows me our code for the product and the equivelant nominal code used in the accounts system for the product.

Value = By entering the initials of the sales person in cell B1 should indicate which sales person I want to display the results of.

In 'Value' worksheet under the corresponding dates I would like to display the sales person in cell B1's sales for each individual sales for each product line.

If you need more explaining please let me know.

Thanks

Simon
Sales-Commissions2.xls
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Hello Simon, I don't see where the Sales dates are? In the attached I added some fictitious dates in N2:N20 of the Sales sheet.

Assuming that the sales amounts should be quantity multiplied by Unit price (columns F and H) then you could use this formula in C3 copied across and down

=SUMPRODUCT((Sales!$L$2:$L$100=$B$1)*(Sales!$I$2:$I$100=VLOOKUP($A3,'Ink Nominals'!$A$1:$B$8,2,0)&"")*(TEXT(C$1,"mmm-yy")=TEXT(Sales!$N$2:$N$100,"mmm-yy")),Sales!$F$2:$F$100,Sales!$H$2:$H$100)

see attached

regards, barry
27422441.xls
You can use Sumproduct to get your total.  I have attached a sample formula for your help.

See if the file is useful.
Temp.xls
Avatar of Simonrepro
Simonrepro

ASKER

Hi Barry, the Invoice dates are in the first worksheet and I need to add together all of the sales for each month by nominal code.
I just read back through my original message and it's confusing, what i am trying to do is display the sales figures for each month for the salesman in B1 and split by nominal code i.e. so that the results show the total amount for each of the product in cell A.
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfecto!

I am posting another question on this sheet in a minute