+ Reply to Thread
Results 1 to 10 of 10

Export Cleanup for import

  1. #1
    Registered User
    Join Date
    04-19-2014
    Location
    USA
    MS-Off Ver
    Excel 2016 64 bit
    Posts
    4

    Export Cleanup for import

    Hello Experts!
    I have a spreadsheet that is exported from a non-excel program as a single sheet .xls. I need specific data from this xls. The issues are as follows:
    The exported xls is the result of user input, so the below items CANNOT be assumed as being located consistently

    1. The data (Numbers) I need are blended with text symbols (1099 ft², 118' 8", 26.67 lin. ft. , etc).
    2. I need all these numbers converted to their decimal values (Feet), and all the non-numerical crap deleted.
    3. I need to locate each iterance of POOL(*) and determine Sq Ft and Perimeter ft. these values, if more than 1, are kept separate
    4. need SPA(*) sq ft and perim. there could be multiple spa entries. Sq ft and perim. kept separate
    5. need STEP/BENCH(*) lin. ft. in decimal form, of course, and each iterance of STEP/BENCH added together. There could be many (STEP/BENCH01, STEP/BENCH02, etc)
    6. need DECK(*) sq feet added together. There could be many iterations
    7. need to search for "Reverse Negative Edge, with lineal distance
    8. need to search for "Reverse Forward Edge, with lineal distance
    9. need to search for "spillover, with lineal distance.

    The whole process is as follows:
    User exports attached file from non MS Office program, in all its glory;
    User locates said exported file from within elaborate excel 2016 .xlsm (64bit) application (VBA)
    User then imports results into various forms/etc. I got that part.


    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    And you are adding an extra element to the puzzle by posting a PDF
    How about posting the .xls file?
    Thanks
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    04-19-2014
    Location
    USA
    MS-Off Ver
    Excel 2016 64 bit
    Posts
    4

    Re: Export Cleanup for import

    I could not attach the xls. it was ignored. still is. even a zip wont take. I was hoping once I got a reply I could attach or send it in some other way.

    please try this

    https://www.dropbox.com/sh/ciohzg24q...nYZuZUwda?dl=0
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    Perhaps your xls is too big - it needs to be less than 1mb

  5. #5
    Registered User
    Join Date
    04-19-2014
    Location
    USA
    MS-Off Ver
    Excel 2016 64 bit
    Posts
    4

    Re: Export Cleanup for import

    50kb
    the upload box wont even show the path. did the link or the zip I attached not work?

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    I am away from my PC but I can see that a file has been attached.

    Try clicking on Reply, Go Advanced, then look below for Manage Attachments etc - it usually works fine

  7. #7
    Registered User
    Join Date
    04-19-2014
    Location
    USA
    MS-Off Ver
    Excel 2016 64 bit
    Posts
    4

    Re: Export Cleanup for import

    I uploaded a zip file containing the xls

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    Have now looked at the xls - looks like you have been given an interesting task
    This will take me several days - it's a holiday weekend here so will be away from my PC until Tuesday

    Suggest we tackle this as 2 problems -
    1. convert the numbers and remove the "crap"
    2. find a way to extract the data you want

    Some questions

    In the sample there are 5 major products - does this list include everything?
    - Pool
    - Step/Bench
    - Spa
    - Deck
    - Visual Feature

    Below are all the measures included in the sample - is there anything missing from my list that could occur?

    Pool and Spa measures
    -Height
    -Depth
    -Perimeter
    -Area
    -Interior Area

    Step/Bench measures
    -Depth
    -Perimeter
    -Area
    -Linear Foot

    Deck measures
    -Height
    -Perimeter
    -Area

    Visual Feature Measures
    -Type
    -Edge Length
    -Water Pressure
    -Edge Angle

    Are measures for above items always located in column C under Info1?
    Last edited by kev_; 05-25-2017 at 04:22 AM.

  9. #9
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    file attached
    - column G has the converted numbers - converted by macro ConvertData (which is in the file)
    - quickly played around with getting the values into a table
    - although the final version would have fewer columns and use a lookup rather than If formulas and would be generated via VBA

    As you can see the conversions are pretty much there
    - some of the code could be reduced - but I was getting some errors and went a bit overboard with cleaning and trimming to avoid time-wasting
    - the data contains a few suspect values (which I expected) - need to include a routine to help highlight those
    - Pool01 has depth 3' - 6' how are such values to be treated?

    Next
    - questions in post#8
    - perhaps you could attach a file showing exactly how would like to see the data presented

    I cannot look at this again until Tuesday
    Attached Files Attached Files
    Last edited by kev_; 05-25-2017 at 10:00 AM.

  10. #10
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Export Cleanup for import

    Do you have any feedback?
    thanks

+ 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. 'Multiple Code Module Management' (Export, Import, CleanUp, etc.)
    By Warbe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2015, 06:17 PM
  2. Text Import Wizard Cleanup
    By jenmears in forum Excel General
    Replies: 2
    Last Post: 06-11-2013, 06:39 PM
  3. Import/export within Excel
    By MartinNovotny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2010, 01:13 PM
  4. Export and Import
    By jonnygrim in forum Excel General
    Replies: 2
    Last Post: 08-21-2008, 01:11 AM
  5. Import/export
    By Psimpson in forum Excel General
    Replies: 2
    Last Post: 06-30-2008, 01:35 PM
  6. Export and import
    By cppoon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2005, 10:10 AM

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