Finding unique items only from a non-single column (row) range

Mike Szczesny

Active Member
Joined
Feb 7, 2008
Messages
411
I have found a cool, but crazy complicated, yet robust formula to list the items for a non single data row (column) range. Instead of just listing all items from this range, I would like to list only the unique items. I want to remove duplicate items. Is it possible to incorporate the frequency and transpose functions in this formula? Or would I need another formula to accomplish this? I cannot seem to get my mind "wrapped around this" in finding the solution for this formula. Any help would be greatly appreciated.
Mike Szczesny



Excel 2012
ABCDE
15186643
28110458
3881758512
43377781099
5555443839
6
7Items listed by column, then next column, etc.
85
918
1066
114
123
138
141
1510
164
1758
1888
1917
205
2185
2212
2333
2477
2578
2610
2799
2855
295
3044
3138
3239
Sheet1
Cell Formulas
RangeFormula
A8{=IFERROR(INDEX($A$1:$E$5,INT(SMALL(IF($A$1:$E$5<>"",(ROW($A$1:$E$5)-ROW($A$1)+1)*10^9+COLUMN($A$1:$E$5)+COLUMN($A$1)+1),ROWS($A$8:A8))/10^9),MOD(SMALL(IF($A$1:$E$5<>"",(ROW($A$1:$E$5)-ROW($A$1)+1)*10^9+COLUMN($A$1:$E$5)-COLUMN($A$1)+1),ROWS($A$8:A8)),10^9)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try this in A8 and drag down

=IFERROR(INDEX($A$1:$E$5,MOD(ROWS(A$8:A8)-1,ROWS($A$1:$E$5))+1,INT((ROWS(A$8:A8)-1)/ROWS($A$1:$E$5))+1),"")

It is normal formula not CSE
 
Upvote 0
@Ingolf

I think the OP wants unique returns only.

@Mike Szczesny

The solution for numerics is quite a bit more straightforward than that for non-numerics (or a mixture of the two datatypes). Can you confirm that, just as in your example, the dataset consists of only the former?

Regards
 
Upvote 0
OK. Mike, next time even say HELLO to someone who tries to help you.
Try this: In A8

=IFERROR(INDIRECT(TEXT(MIN(IF($A$1:$E$5<>"",IF(COUNTIF(A$7:A7,$A$1:$E$5)=0,ROW($A$1:$E$5)*10^4+COLUMN($A$1:$E$5)))),"R0000C0000"),FALSE),"")

This is CSE formula. (Control+Shift+Enter)
 
Last edited:
Upvote 0
OK. Hi Ingolf. Thanks for your response. I will definitely study this formula. Interesting approach. I would have never thought about using the indirect function.
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,659
Members
449,178
Latest member
Emilou

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