Pivot counting distinct values (not unique) in single row (not columns)

Quari

New Member
Joined
Nov 28, 2019
Messages
5
Office Version
  1. 2013
Dear Forum members,

I hope I will provide you clearly what I need.
Excel 2013. Win 7
Formula: I have no idea what formula to use. In internet I found multiple examples how to do same but for columns.
I have following data:

Row numberTicketMonthBrand 1Brand 2Brand 3Brand 4Brand 5
1RITM13132012019-8FordFordKIAKIAToyota
2RITM13129252019-8KIAToyota
3RITM13107542019-9FordKIAKIA
4RITM13107592019-10ToyotaToyota

I need a pivot and chart at the end which will show me how many disctinct Brands appeared in given month while"ticket" is a value counted.
E.g. There were following number of Tickets with Brand:
2019-8 1x Ford (disctinct number of Fords for Month 2019-8 is 1 despite of the fact "Ford" is listed x2 in first row) and 2x KIA (row 1st [second occurance ignored] and 2nd) and 2x Toyota (row 1st and in row 2nd)
2019-9 1x Ford (row 3rd) and 1xKIA (row 3rd [second occurance ignored])
2019-10 1x Toyota (row 4th, [second occurance ignored])


I do not care how many times 'Ford' is listed in single row. It is important for me to count only first occurance and list it later in pivot table

Result table would looks like:
MonthFordKIAToyota
2019-8222
2019-9110
2019-10001

Thank you,
Quari
 
I'm glad to help you. Thanks for the feedback. :cool:
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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