+ Reply to Thread
Results 1 to 5 of 5

Importing or Changing the data from a FORMATTED Excel Worksheet into Tabular Form

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Importing or Changing the data from a FORMATTED Excel Worksheet into Tabular Form

    Hi,
    I have large sets of data from an external system that is preformatted for printing. Unfortunately this means all relevant data is not in a tabular format that I can sort and run additional analysis on. I have attached a file with sample data, but I am looking for a way to pull data from a worksheet formatted like:

    Name 1, Dept
    XX-XXXX1
    Address 1
    City, State Zip Code USE

    Posting Date Transaction Date Description Receipt Amount Posted Amount Expense Amount
    07/9/2014 07/09/2014 Vendor 1 2,039.94 2,039.94 2,039.94

    Expense Description: Pink Bunnies

    Accounting Codes
    Inventory Transaction?: No Part Number: N/A Work Order #: n/a
    Operating Unit: 02 Department: 66666 GL Account: 12345678
    Fund Code: OPR Function: 041 Project: Project Not Required
    Activity: Activity Not Required

    In to a format like:

    Name Card# Address 1 Address 2 Posting Date Transaction Date Description Receipt Amount Posted Amount Expense Amount Expense Description
    Vendor 1 X-XXX1 Address 1 City, State, Zip Code 07/09/2014 07/09/2014 Vendor 1 2,039.94 2,039.94 2,039.94 Pink Bunnies

    Thanks in advance for any assistance,
    Zinnia
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Importing or Changing the data from a FORMATTED Excel Worksheet into Tabular Form


    Hi !

    If data are imported, faster is to directly import source file to desired format, more efficient …

    From a worksheet, time execution increases …

  3. #3
    Registered User
    Join Date
    10-08-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Importing or Changing the data from a FORMATTED Excel Worksheet into Tabular Form

    Unfortunately, I am a few levels removed from the importing the data. The person with direct access to the system can only give me the data in this format.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this demonstration …

    PHP Code: 
    Sub Demo()
        
    Dim VA(9 To 22)
        
    L& = 2:  R& = 9
        Sheet2
    .UsedRange.Offset(2).Clear
        Application
    .ScreenUpdating False

        With Sheet1
                M
    & = .UsedRange.Rows.Count
            
    Do
                
    VT Application.Transpose(.Cells(R1).Resize(4).Value)
                 
    4
                            
    Do Until IsDate(.Cells(R1).Value)
                                
    1:  If M Then Exit Sub
                            Loop
            
    Do
                   
    1:  Sheet2.Cells(L1).Resize(, 4).Value VT
            
    .Cells(R1).Resize(, 4).Copy:  Sheet2.Cells(L5).PasteSpecial xlPasteValuesAndNumberFormats
                        Sheet2
    .Cells(L9).Resize(, 3).NumberFormat "#,##0.00"
                      
    Sheet2.Cells(L11).Resize(, 12).NumberFormat "@"
             
    VA(9) = .Cells(R6).Value:                     VA(10) = .Cells(R8).Value
            VA
    (11) = Split(.Cells(11).Value":")(1):  VA(12) = .Cells(22).Value
            VA
    (13) = .Cells(32).Value:                 VA(14) = .Cells(34).Value
            VA
    (15) = .Cells(36).Value:                 VA(16) = .Cells(42).Value
            VA
    (17) = .Cells(44).Value:                 VA(18) = .Cells(46).Value
            VA
    (19) = .Cells(52).Value:                 VA(20) = .Cells(54).Value
            VA
    (21) = .Cells(56).Value:                 VA(22) = .Cells(62).Value
                 R 
    7:   Sheet2.Cells(L9).Resize(, 14).Value VA
            Loop 
    While IsDate(.Cells(R1).Value)
                                                                  
    2:  If M Then Exit Sub
            Loop
        End With
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  5. #5
    Registered User
    Join Date
    10-08-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Importing or Changing the data from a FORMATTED Excel Worksheet into Tabular Form

    Thank you! This works perfectly and is way more elegant that what I had started to work out on my own.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to have pivot summary formatted as tabular form
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2015, 02:59 PM
  2. [SOLVED] Transform user entry data to a more tabular form
    By gcoug in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2012, 01:35 PM
  3. Importing data from an Excel 2010 worksheet into a Word 2010 form.
    By Kuriakos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2012, 02:49 PM
  4. Importing DATA in tabular form fromone sheet to another sheet
    By rahulk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2010, 09:59 PM
  5. Importing Email Form Data into a Single Worksheet
    By wholesaleguru in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2010, 11:13 PM
  6. Importing Tabular info
    By Boro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-06-2008, 03:44 PM
  7. Importing Formatted Data
    By Jaybird in forum Excel General
    Replies: 2
    Last Post: 03-27-2006, 02:40 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