Results 1 to 1 of 1

Reformat and combine data Across Dates:vendor output in xls

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Reformat and combine data Across Dates:vendor output in xls

    Reformat and combine data Across Dates

    Hello,
    I have an interesting challenge.

    I have a vendor output in xls that is counting the number of units per day per hour.

    The output should have all of this data on one row per day. However, the data is currently be exported so that hour has it's own row.

    The vendor has been identified of the error but the problem will not be addressed for a couple of weeks. We will have dozens of these spreadsheets per day this week that need to be processed but I need help with a fast way to reformat the spreadsheet.

    I was going to use this code to fill in the data and filter out the duplicate dates per row but the blanks in the first date will not let this work.

    Sub fill_and_filter()
    Dim oRng As Range
        Set oRng = Selection
            
            Selection.SpecialCells(xlCellTypeBlanks).Select
            Selection.FormulaR1C1 = "=R[-1]C"
        oRng.Copy
        oRng.PasteSpecial Paste:=xlValues, SkipBlanks:=False
    
    End Sub
    I've attached two spreadsheets: the output and what I'm trying to do.

    The columns of the spreadsheet are fixed but the rows will vary from file to file.

    Please let me know your thoughts.

    Any help will be very much appreciated.

    Thanks!
    Attached Files Attached Files
    Last edited by yunesm; 05-02-2011 at 10:23 AM. Reason: Put it in the wrong place. Moving thread to programming

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