+ Reply to Thread
Results 1 to 2 of 2

Data Processing With VBA

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Hong Kong
    MS-Off Ver
    2007
    Posts
    1

    Question Data Processing With VBA

    Hi everyone, this is my first post here so i apologize in advance for any mistakes.

    Currently i am working with Dynamo and Revit to Extract model data to Excel, and further process these Data .
    In the following picture, as you can see, the top row are the parameters and the cells below are their corresponding values. Some parameters does not any value therefore the cell below the name is empty, But if there's any value, the cell below will be stored with the value ( e.g. Column AED ). At the same time some parameter's names will be the same, but only one parameter of that name type will be stored with a value ( for example, There are multiple "DESCRIPTION"s but only the one on Column AED is stored with the value "CW2 Secondary Truss"
    Capture.JPG

    The action i wish to complete with these data is to remove the duplicates that have no value stored, but keep those which a value has been stored
    For example : to remove the "DESCRIPTION" duplicates on column ADX,ADY and AEB and make them blank but keep column AED

    However, i hope that the VBA macro will automatically look for duplicates without me enter what duplicates should it search for. I was thinking of using an array and store new names into the list, and compare the current cell with the name list to see if the cell is a duplicate.

    Is there any way i can do that? if so , how should i do it?

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,101

    Re: Data Processing With VBA

    Hello ZacharyTso,

    See if the following VBA code works for you:-
    Please Login or Register  to view this content.
    The code assumes that there are headings in Row1.

    The code also assumes that an array of criteria are in a second sheet("TestArray") starting in Row 2, Column A.

    I've attached a little sample workbook for you to show how the code works. Click on the "RUN" button to see it work.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Attached Files Attached Files

+ 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. Sheet-related processing causes Excel VBA Userform to stop processing Tab/Enter
    By Joaquin M Lopez Muno in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-22-2014, 03:02 PM
  2. Reduce processing time for processing multiple excel sheets
    By rexer231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 09:25 AM
  3. Processing data
    By Wipster in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2010, 08:41 AM
  4. Data processing
    By lostinback in forum Access Tables & Databases
    Replies: 0
    Last Post: 05-26-2009, 07:39 AM
  5. Processing Data
    By kroz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2009, 02:32 AM
  6. [SOLVED] Processing Data
    By Dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-12-2006, 09:40 PM
  7. [SOLVED] questionnaire data processing
    By news.microsoft.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2006, 09:30 AM
  8. [SOLVED] data processing
    By Youyou in forum Excel General
    Replies: 1
    Last Post: 11-19-2005, 06:42 AM

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