Hi There
I have a data set with multiple columns where I need to count the unique fields in a seperate tab based on multiple criteria.
[TABLE="width: 372"]
<tbody>[TR]
[TD]PNR[/TD]
[TD]Booking Date[/TD]
[TD]Booking Agent[/TD]
[TD]MAX Booking Agent ID[/TD]
[/TR]
[TR]
[TD]AAVBHD01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]AO[/TD]
[TD="align: right"]99355[/TD]
[/TR]
[TR]
[TD]AAWTZK01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]BM[/TD]
[TD="align: right"]86788[/TD]
[/TR]
[TR]
[TD]ABDYNH01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]GM[/TD]
[TD="align: right"]23023[/TD]
[/TR]
[TR]
[TD]ABGRLL01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]SW[/TD]
[TD="align: right"]25238[/TD]
[/TR]
[TR]
[TD]ADVQJQ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]AO[/TD]
[TD="align: right"]99355[/TD]
[/TR]
[TR]
[TD]AENSSR01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]JP[/TD]
[TD="align: right"]14647[/TD]
[/TR]
[TR]
[TD]AFFGNM01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]PB[/TD]
[TD="align: right"]28180[/TD]
[/TR]
[TR]
[TD]AGJTEJ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]SD[/TD]
[TD="align: right"]23509[/TD]
[/TR]
[TR]
[TD]AGJTEJ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]SD[/TD]
[TD="align: right"]23509
[/TD]
[/TR]
</tbody>[/TABLE]
1 - I want to only take the first 6 characters from PNR column
2 - I want to summarise how many unique times column A (PNR) + column D (MAX ID) appear together
3 - I also want to summarise point 2 plus month of booking date
I can do it by copying to a diff sheet, removing duplicates and then using countif formulas but in case I wanted to just read from the raw data tab without copying/removing, is there any formula I can use?
Many thanks
Melimob
I have a data set with multiple columns where I need to count the unique fields in a seperate tab based on multiple criteria.
[TABLE="width: 372"]
<tbody>[TR]
[TD]PNR[/TD]
[TD]Booking Date[/TD]
[TD]Booking Agent[/TD]
[TD]MAX Booking Agent ID[/TD]
[/TR]
[TR]
[TD]AAVBHD01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]AO[/TD]
[TD="align: right"]99355[/TD]
[/TR]
[TR]
[TD]AAWTZK01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]BM[/TD]
[TD="align: right"]86788[/TD]
[/TR]
[TR]
[TD]ABDYNH01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]GM[/TD]
[TD="align: right"]23023[/TD]
[/TR]
[TR]
[TD]ABGRLL01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]SW[/TD]
[TD="align: right"]25238[/TD]
[/TR]
[TR]
[TD]ADVQJQ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]AO[/TD]
[TD="align: right"]99355[/TD]
[/TR]
[TR]
[TD]AENSSR01[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD]JP[/TD]
[TD="align: right"]14647[/TD]
[/TR]
[TR]
[TD]AFFGNM01[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD]PB[/TD]
[TD="align: right"]28180[/TD]
[/TR]
[TR]
[TD]AGJTEJ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]SD[/TD]
[TD="align: right"]23509[/TD]
[/TR]
[TR]
[TD]AGJTEJ01[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD]SD[/TD]
[TD="align: right"]23509
[/TD]
[/TR]
</tbody>[/TABLE]
1 - I want to only take the first 6 characters from PNR column
2 - I want to summarise how many unique times column A (PNR) + column D (MAX ID) appear together
3 - I also want to summarise point 2 plus month of booking date
I can do it by copying to a diff sheet, removing duplicates and then using countif formulas but in case I wanted to just read from the raw data tab without copying/removing, is there any formula I can use?
Many thanks
Melimob
Last edited: