Extract not ignoring duplicates - Why?

BenElliott

Board Regular
Joined
Jul 19, 2012
Messages
144
I'm still working on my several tables for Speakers giving several talks in multiple locations. Some speakers are marked as "Good" and some as "Moderate" in a table column named "Status"
Location is given in cell F1 and Status in cell F2. The count is in cell F3. the folumula for extracting the talk numbers given at a specific location with the speaker rating is as follows:
=IF(ROWS($E$5:E5)>$F$3,"",INDEX(SpeakersTalks[Talk Number],AGGREGATE(15,6,(ROW(SpeakersTalks[Talk Number])-ROW($A$2)+1)/((SpeakersTalks[Location]=$F$1)*(SpeakersTalks[Status]=$F$2)),ROWS(F$5:F5))))

By the way, my count in cell F3 is: {=SUM(--(FREQUENCY(IF((SpeakersTalks[location]=$F$1)*(SpeakersTalks[Status]=$F$2),MATCH(SpeakersTalks[Talk Number],SpeakersTalks[Talk Number],0)),ROW(SpeakersTalks[Talk Number])-ROW($A$2)+1)>0))}

My problem is that several speakers give the same talk number at the same location. I want these duplicates to be ignored but can't see how to ignore them. Any pointers to where I'm going wrong would be appreciated.

Many thanks,

Ben
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try this array formula in E5 copied down

=IF(ROWS($E$5:E5)>$F$3,"",INDEX(SpeakersTalks[Talk Number],AGGREGATE(15,6,(ROW(SpeakersTalks[Talk Number])-ROW($A$2)+1)/((SpeakersTalks[Location]=$F$1)*(SpeakersTalks[Status]=$F$2)*ISNA(MATCH(SpeakersTalks[Talk Number],E$4:E4,0))),1)))
Ctrl+Shift+Enter

Hope this helps

M.
 
Upvote 0
Control+shift+enter, not just enter, and copy down:

=IF(ROWS($1:1)>$F$3,"",INDEX(SpeakersTalks[Talk Number],SMALL(IF(FREQUENCY(IF((SpeakersTalks[location]=$F$1)*(SpeakersTalks[Status]=$F$2),MATCH(SpeakersTalks[Talk Number],SpeakersTalks[Talk Number],0)),ROW(SpeakersTalks[Talk Number])-ROW(INDEX(SpeakersTalks[Talk Number],1,1))+1),ROW(SpeakersTalks[Talk Number])-ROW(INDEX(SpeakersTalks[Talk Number],1,1))+1))),ROWS($1:1)))
 
Last edited:
Upvote 0
Thank you, both. Can't put them to use this evening but will do so first thing tomorrow.

Ben
 
Upvote 0
Both versions worked well and it's helped me to see how to adapt the solutions to various applications.

Again, thanks to you both.

Ben
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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