query question

andrew29

Board Regular
Joined
Jun 1, 2003
Messages
75
HI everyone,

I have a table with account number and account type information in the format below:

0001 accountA
0001 accountB
0001 accountC
0001 accountD
0002 accountB
0003 accountD
0004 accountF
0005 accountA
0005 accountB
0005 accountF

What I want to determine is what percentage of accounts have only one account type, what percentage have 2 account types, what percentage have 3 account types etc.

I also need to know what percentage of our customers have different account type combinations (eg accountA and AccountC but nothing else).

Whats the best way to approach this task?

Cheers,
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Maybe you could start with a Crosstab. Account Number as a Row Heading, Account Type as a Column Heading, and Account Type as a Value (Count).
That will give you a 2-D table with a table for each account type, and a many rows as you have accounts. Then base another query on this query, to generate calculations of the varying column combinations and / or column totals.

Denis
 
Upvote 0

Forum statistics

Threads
1,223,261
Messages
6,171,076
Members
452,377
Latest member
bradfordsam

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