+ Reply to Thread
Results 1 to 2 of 2

Create a row (or column) of non-duplicate values from a column containing duplicate values

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Russia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Create a row (or column) of non-duplicate values from a column containing duplicate values

    I have a column with different dates which can repeat, how can I create a row (or another column it's not a problem) of unique (not repeating) values. Some kind of pivot table function.
    PivotTable is not a solution (Maybe I will have to use it in macros but I want to avoid it, as I have reasons for it depending on the task). So, is there any other way to do this regrouping in VBA?
    Here a solution for a predetermined number of values but for me it doesn't matter
    Dim inputrow As Integer
    Dim i As Double
    For i = 11 To 12
    For inputrow = 2 To 19
    If ActiveSheet.Cells(inputrow, 4) <> ActiveSheet.Cells(3, i - 1) Then
    ActiveSheet.Cells(3, i) = ActiveSheet.Cells(inputrow, 4)
    Exit For
    End If
    Next inputrow
    Next i
    Last edited by 777volkov777; 05-18-2013 at 05:13 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Create a row (or column) of non-duplicate values from a column containing duplicate va

    Pivot Table
    Yes, the dates with the same date will be grouped in to One and show as a single row.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1