I have a excel sheet ,sample is
Year    Month   Company Type    real sale   sale
2013    1       Sony    Tech    2.4         5
2013    2       Ikea    Home    7           1.44
2013    3       ING     Bank    5           0
2013    1       Sony    Tech    0           6
2013    2       Google  Tech    0           7
2013    4       Staples Home    5.24        8
2013    5       Sony    Tech    5           1
2013    6       ABN     Bank    2.64        1
i would like find the number of distinct comapny present on different dimension in excel pivot .i-e
Year count(Company)
2013 6
------------OR---
YEAR MONTH COUNT(COMPANY)
2013 1     1
2013 2     2
2013 3     1
2013 4     1
2013 5     1
2013 6     1
As you can see my dimension can change in pivot , so i am trying to count distinct company name in my pivot based upon the dimension , i know "counta(range)" function exists but i cannot use it in pivote table , as range is required for this function , i have a column name .
I have to do it via pivot table only , no VBA or anything else .
Thank you in advance .
 
     
    
