Pivot Table - Count unique values (clients) within each sector, EXL10

marte777

New Member
Joined
Feb 26, 2015
Messages
5
Hi,


I am having trouble counting unique number of clients within each sector in my Pivot table.
I have Excel 2010, and if possible I would like to avoid VBA.


I have created an illustrative example of my issue below:
ClientIndustry
McDonaldsRestaurants
Burger KingRestaurants
McDonaldsRestaurants
BMWAuto
EasyJetAirline
RyanairAirline
EasyJetAirline

<tbody>
</tbody>

Desired result:
IndustryUnique count
Restaurant2
Airline2
Auto1

<tbody>
</tbody>


Any help would be highly appreciated!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Count of IndustryIndustry
ClientAirlineAutoRestaurantsGrand Total
BMW 1 1
Burger King 11
EasyJet22
McDonalds 22
Ryanair11
Grand Total3137
Industry
Unique count
Restaurant2
Airline2
Auto1
the trick now is make a formatted copy of the pivot table
counting the cells that have any number in them and subtracting 1
Client
Industry
McDonaldsRestaurants
Burger KingRestaurants
McDonaldsRestaurantsAirlineAutoRestaurants
BMWAuto212
EasyJetAirline
RyanairAirline
EasyJetAirline
this lower table automatically expands to match the number of columns in the pivot table
formula giving auto=IF(OR(H5="",H5="Grand Total"),"",H5)
formula giving the 2 under airline=IF(G21="","",COUNTA(G6:G13)-1)
if it is vital to have industries going down rather than across this can be done…….

<colgroup><col><col><col span="3"><col><col span="3"><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0
"it is vital to have industries going down rather than across this can be done……."

How do I put all the industries horizontally, rather than vertically using the pivot field list?
 
Upvote 0
ClientIndustry
McDonaldsRestaurants
Burger KingRestaurantsCount of IndustryClient
McDonaldsRestaurantsIndustryBMWBurger KingEasyJetMcDonaldsRyanairGrand Total
BMWAutoAirline 2 13
EasyJetAirlineAuto11
RyanairAirlineRestaurants 123
EasyJetAirlineGrand Total112217
Airline11
Auto1
Restaurants11
Airline2
Auto1
Restaurants2
just put industry in left position of pivot
then achange any number other than 1 to a 1
then sum the 1's in the rows

<colgroup><col><col><col span="2"><col><col span="5"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,936
Members
449,480
Latest member
yesitisasport

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