R
rrstudio2
I am trying to get a list of how many lots a particular car model is
on. For example, say we have a spreadsheet that looks like:
Model License Lot
Ford xjd-394 1
Chevy gwg-394 2
Ford sdf-333 1
Ford lkj-111 3
Toyota skd-333 4
Toyota shk-584 4
I am loking for a way to get data that says how many unique lots each
car is on, so for example:
Ford: 2
Chevy: 1
Toyota: 1
I was trying to do this with Pivot tables and the count functionality,
but it isn't quite getting me the results I want. I can get the
results with a pivot table if I drag the Model followed by the lot
into the row column, but this just shows the data like:
Ford 1
3
Chevy 2
Toyota 4
So from here I can manually found that the Ford is on two lots, the
chevy on one lot, and the toyota is on one lot, but it would be great
if I could use a pivot table to get the actual number of lots instead
of having to count them. Any ideas?
-Andrew V. Romero
on. For example, say we have a spreadsheet that looks like:
Model License Lot
Ford xjd-394 1
Chevy gwg-394 2
Ford sdf-333 1
Ford lkj-111 3
Toyota skd-333 4
Toyota shk-584 4
I am loking for a way to get data that says how many unique lots each
car is on, so for example:
Ford: 2
Chevy: 1
Toyota: 1
I was trying to do this with Pivot tables and the count functionality,
but it isn't quite getting me the results I want. I can get the
results with a pivot table if I drag the Model followed by the lot
into the row column, but this just shows the data like:
Ford 1
3
Chevy 2
Toyota 4
So from here I can manually found that the Ford is on two lots, the
chevy on one lot, and the toyota is on one lot, but it would be great
if I could use a pivot table to get the actual number of lots instead
of having to count them. Any ideas?
-Andrew V. Romero