Find Unique Text Letters Once

Bikefree

New Member
Joined
Apr 24, 2016
Messages
4
This should be easy...I've been playing with it for days but can't find a formula that works? Can you help with a formula that gives the result below in a column of random letters? I want to find the letter(but only once) in the result...

ABF
ABDF
BCG
BCEG
BEFH
BD
BFG
BFH
BF
C
DFI
FI
J
K
L
M
ABCDEFGHIJKLM (Result Above)

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Maybe with code ?

Code:
Sub test()Dim mystring As String, lastrow As Long, x As Integer, i As Integer
With ActiveSheet
    lastrow = .Range("A" & Rows.Count).End(xlUp).Row
    For x = 1 To lastrow
        For i = 1 To Len(.Range("A" & x))
            If InStr(1, mystring, Mid(.Range("A" & x), i, 1)) = 0 Then mystring = _
            mystring & Mid(.Range("A" & x), i, 1)
        Next
    Next
    .Range("A" & lastrow + 2) = mystring
End With
End Sub

Kind regards
Leo
 
Upvote 0
Leo,
Unfortunately I have to keep this pure Excel formula so I can utilize the Spreadsheet as part of a questionnaire that runs in a CSS browser extension/application. I do appreciate the effort!!
Bikefree
 
Upvote 0

Forum statistics

Threads
1,217,284
Messages
6,135,639
Members
449,953
Latest member
Maniac189

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