Results 1 to 9 of 9

Create a Table from data set

Threaded View

lacke81c Create a Table from data set 05-11-2015, 12:50 PM
JieJenn Re: Create a Table from data... 05-11-2015, 01:13 PM
lacke81c Re: Create a Table from data... 05-11-2015, 02:01 PM
JieJenn Re: Create a Table from data... 05-11-2015, 02:10 PM
lacke81c Re: Create a Table from data... 05-11-2015, 02:45 PM
JieJenn Re: Create a Table from data... 05-11-2015, 03:11 PM
lacke81c Re: Create a Table from data... 05-11-2015, 04:02 PM
JieJenn Re: Create a Table from data... 05-11-2015, 04:11 PM
lacke81c Re: Create a Table from data... 05-12-2015, 06:20 PM
  1. #8
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Create a Table from data set

    Oh. Didn't realize your column E was formatted as Text. Here, try

    Sub GenReport()
    Dim wsIn As Worksheet, wsOut As Worksheet
    Dim LR As Long
    
    Set wsIn = Worksheets("In")
    With wsIn
    LR = .Cells(Rows.Count, 1).End(xlUp).Row
        .Columns("A:C").Delete
        
        .Columns("E").TextToColumns
        
        .Range("F2").Formula = "=SUMIF($D$2:$D$" & LR & ",D2,$E$2:$E$" & LR & ")"
        .Range("F2").AutoFill .Range("F2:F" & LR)
        .Columns("F").Copy
        .Columns("F").PasteSpecial xlValues
        
        .Range("F1").Value = "Helper Column"
        .Range("A1:F" & LR).RemoveDuplicates 4, xlYes
    End With
    
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 01-19-2015, 11:00 AM
  2. Replies: 3
    Last Post: 04-15-2009, 11:50 PM
  3. Replies: 0
    Last Post: 12-04-2008, 06:59 AM
  4. how to create a table given data...
    By aidenkun via OfficeKB.com in forum Excel General
    Replies: 2
    Last Post: 07-11-2005, 03:05 PM
  5. How do I create a one variable data table?
    By Prelll91 in forum Excel General
    Replies: 1
    Last Post: 02-27-2005, 04:06 PM

Tags for this Thread

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