Create a Sales Spend matrix

Swifey

Active Member
Joined
Jan 16, 2003
Messages
421
Could you please help - Is there an easy way that I can create a sales matrix within access for example:

How may customers spend £10,000 plus, showing the number of customers and the total trading value
How may customers spend £50k - £99,999k, showing the number of customers and the total trading value
How may customers spend £25k – £49,999k, showing the number of customers and the total trading value
How may customers spend £10k - £24,999k, showing the number of customers and the total trading value
How may customers spend £5k - £9,999k, showing the number of customers and the total trading value
How may customers spend £2.5k - £4,999k, showing the number of customers and the total trading value
How may customers spend £00 - £2,499k, showing the number of customers and the total trading value

Example:
Matrix,,,,,,,,,,,,,,,,,No of customers,,,,,,,,,Trading Value
£10,000 plus, , ,,,,,,,,,,,,,,,,,,,,,,,,,,1,,,,,,,,,,133914.55
£50k - £99,999k, ,,,,,,,,,,,,,,,,,,,,,,,6,,,,,,,,,,437395.94
£25k – £49,999k,,,,,,,,,,,,,,,,,,,,,,,10,,,,,,,,,329815.29
£10k - £24,999k,,,,,,,,,,,,,,,,,,,,,,,,38,,,,,,,,,558374.03
£5k - £9,999k ,,,,,,,,,,,,,,,,,,,,,,,,,,,44 ,,,,,,,,305577.08
£2.5k - £4,999k ,,,,,,,,,,,,,,,,,,,,,,,,86,,,,,,,,,301199.32
£00 - £2,499k,,,,,,,,,,,,,,,,,,,,,,,,1735,,,,,,,,,,701820.13

Regards Swifey
 

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.
What are the names of the fields? in your table.

An IIf function will need to be used and grouping, I can help but provide me with the field names.

Parra
 
Upvote 0
Create a query.

Add the field linsellvalue.
Look at the toolbar and press the sum icon, it looks like a big letter E
Go back to the field linsellvalue and where it says Grouping change to Where

In the column next to that in the field add:

Matrix: Iif([linsellvalue]>100000, “£100K”,Iif([linsellvalue]>50000, “£50K”,Iif([linsellvalue]>25000, “£25K”,Iif([linsellvalue]>10000, “£10K”,Iif([linsellvalue]>5000, “£5K”,Iif([linsellvalue]>2500, “£2.5K”,Iif([linsellvalue]>0, “£0K”,0)))))))

In the next column add the field Customerno
Where it says Grouping change to Count

Add the field Linsellvalue
Where it says Grouping change to Sum

It might be a bit confusing but I hope you understand, let me know if it helps. You should have 4 columns in your query.
 
Upvote 0
Hi when I execute the query I get the following message

" Execute a query that does not include the specified expression "linesellvalue" as part of an aggregate function"

Swifey
 
Upvote 0

Forum statistics

Threads
1,221,528
Messages
6,160,343
Members
451,638
Latest member
MyFlower

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