formula to extract unique values except specific string

DDT~123

Board Regular
Joined
May 31, 2012
Messages
220
Greetings - I have the below formula which lists the unique names from a list. The format of the list is as follows:
Name1
Total
Name2
Total
Name3
Total
...

Formula:
{=INDEX('Dashboard Data'!$A$5:$A$300,MATCH(0,COUNTIF($B$3:B3,'Dashboard Data'!$A$5:$A$300),0))}

The formula is doing what it should but I'd like for it to exclude the string "Total" (without leaving a blank row). As of now, it lists like this:
John Doe
Total
Kanye West
Jennifer Anniston
David Gilmour
Gene Simmons
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
1. you don't want to use the remove duplicate function?
2. Maybe you can just use a pivot table and filter out "total"?
 
Upvote 0
I can use the remove duplicate function but was wanting to automate the report as much as possible since I have so many other reports due at the same time. Also unable to use pivot tables without getting the blue screen of death (an issue Microsoft has had for several years and not wanting to fix).
 
Upvote 0
Try:

=IFERROR(INDEX('Dashboard Data'!$A:$A,SMALL(IF('Dashboard Data'!$A$5:$A$300<>"Total",IF('Dashboard Data'!$A$5:$A$300<>"",IF(COUNTIF($B$3:$B3,'Dashboard Data'!$A$5:$A$300)=0,ROW('Dashboard Data'!$A$5:$A$300)))),1)),"")

Confirmed with Control+Shift+Enter
 
Upvote 0
Come to think of it, are there really duplicates? Your layout (name, total, name, total, etc.) somewhat indicates that the name will only occur once. If so, you could just use:

=INDEX('Dashboard Data'!$A$5:$A$300,2*ROWS($C$4:$C4)-1)&""

which just extracts every other row, starting on A5.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

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