+ Reply to Thread
Results 1 to 2 of 2

Reorganizing Inconsistent Columns Ingested from Database Daily

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Reorganizing Inconsistent Columns Ingested from Database Daily

    I'm working with data that is pulled from an external database every day, but when it's pulled the order of its column headings are variable. I need to manipulate this data to display only a handful of approximately 200 columns in the same order every day. Any ideas how I can do this? I've included two datasets to help explain what I'm talking about.

    I need to reorganize data into a new column order. Each sample dataset represents a different day's worth of data ingested from the external database (as such the order of the columns is different). That data is represented in the first tab in each example, "CUT_AND_PASTE_DATA". The second tab in each example represents the data from the first tab reorganized.

    So, the question is, is there a way to have my second tab give a consistent column-order return regardless of the column-order in the cut and past data?

    I tried combining SEARCH with nested IF formulas, but even if that were to work I can't nest more than 64 functions, which isn't sufficient with over 200 columns.

    Please let me know if this is unclear.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Reorganizing Inconsistent Columns Ingested from Database Daily

    Hi jsboss,

    Excel has a newer tool called Power Query that was made for problems like this. You can install it as an Add-In from Microsoft for 2010 and 2013 Excel. It comes build into 2016.

    https://www.microsoft.com/en-us/down...5-006826e7295e

    Power query is easier to use than VBA but takes a few videos to learn and use.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say 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. [SOLVED] Reorganizing data from columns with headers to a different column and row format
    By telcocook in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2015, 02:24 PM
  2. Reorganizing data into blank cells a variable number of columns to the right
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2014, 04:45 PM
  3. [SOLVED] Merging data from 2 different columns (inconsistent)
    By paulareiblue in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2014, 12:40 PM
  4. Replies: 17
    Last Post: 02-11-2014, 10:00 AM
  5. Text to Columns With Inconsistent Data
    By mbates in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-25-2011, 10:29 PM
  6. Sorting inconsistent columns of text
    By Cheshire in forum Excel General
    Replies: 0
    Last Post: 11-10-2009, 09:09 PM
  7. Reorganizing Data in Excel from Rows to Columns
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2006, 12:00 PM

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