Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6249867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:19:05+00:00 2026-05-24T13:19:05+00:00

It should be a quickie to VBA/Excel experts. I have a large 60 to

  • 0

It should be a quickie to VBA/Excel experts. I have a large 60 to 2000 rows, wide 10,000 columns, table without headers in Excel, with the following format.

+---------+----------------+------------------+----------+
|         |    20110811    |      20110810    |  20110810|
+---------+----------------+------------------+----------+
| AA UN   | 4.0111         |  AA UN           |   5.0222 |
| AXP UN  | 3.0611         |  AXP UN          |   3.0217 |
| BA UN   | 3.997          |  BA UN           |   4.0532 |
| BAC UN  | 0.4924         |  BAC UN          |   0.478  |
| CAT UN  | 5.9259         |  CAT UN          |   5.8959 |
| CSCO UW | 1.0813         |  CSCO UW         |   0.9693 |
| CVX UN  | 6.3891         |  CVX UN          |   6.3943 |
| DD UN   | 3.1894         |  DD UN           |   3.165  |
| DIS UN  | 2.1815         |  DIS UN          |   2.2267 |
| GE UN   | 1.065          |  GE UN           |   1.0654 |
+---------+----------------+------------------+----------+

The question is how to get a unique list of text cells out from the whole table, I have been playing with advanced autofilter but it really doesnt give what i want. Im looking for smth like that below

╔═════════╗
║ AA UN   ║
║ AXP UN  ║
║ BA UN   ║
║ BAC UN  ║
║ CAT UN  ║
║ CSCO UW ║
║ CVX UN  ║
║ DD UN   ║
║ DIS UN  ║
║ GE UN   ║
╚═════════╝

Btw, thanks to GSerg for formatting, now i learnt a new trick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:19:06+00:00Added an answer on May 24, 2026 at 1:19 pm

    One solution is to dump the entire range into a variable array and then loop through it adding entries that aren’t numbers into a dictionary object. That will eliminate all dupes and non-numeric data. Take the dictionary keys and transpose them back on the sheet.

    UPDATE:
    Here is code you can use.

    How it works: You’ll can adjust the range (right now it’s all cells used), but it will dump every cell into a variant array in one shot. Then it goes through the array (much faster than going through cells) and if the entry is not empty, nor numeric, it adds it to a dictionary object. Since you can’t put 2 keys that are the same into a dictionary, it just skips over all dupes automatically. Then I paste the unique list into sheet2 (you can adjust this as well).

    Sub UniqueTextList()
    
    Application.ScreenUpdating = False
    Dim vArray As Variant
    Dim i As Long, j As Long
    Dim v As Variant
    Dim dictionary As Object
    Set dictionary = CreateObject("scripting.dictionary")
    
    vArray = ActiveSheet.UsedRange.Value    
    For i = 1 To UBound(vArray, 1)
        For j = 1 To UBound(vArray, 2)
            If Len(vArray(i, j)) <> 0 Then
                If IsNumeric(vArray(i, j)) = False Then
                    dictionary(vArray(i, j)) = 1
                End If
            End If
        Next
    Next
    
    Sheet2.range("a1").Resize(dictionary.count).Value = _
    Application.Transpose(dictionary.keys)
    
    Application.ScreenUpdating = True
    MsgBox dictionary.Count & " unique cell(s) were found and copied."
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should I still be using tables anyway? The table code I'd be replacing is:
Should we use a flag for soft deletes, or a separate joiner table? Which
Should I have area code stored in a separate field in my DB? It's
should be ab easy one. I have 3 checkboxes and have a multitude of
Should you make one request/response object for each method or should you have one
Should programmatic logic be inserted into an MXML Attribute? I have a few Buttons
should be center-aligned website I have built a website as above link, with wrapper
should you index a many to many table such as user_role where it has
Should you always create unique keys whenever possible? For example let's say I have
This should be a quickie, but I'm scratching my head as to why this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.