+ Reply to Thread
Results 1 to 6 of 6

Connecting Files and Adding Columns

  1. #1
    Registered User
    Join Date
    05-20-2016
    Location
    SD, USA
    MS-Off Ver
    O365
    Posts
    15

    Connecting Files and Adding Columns

    I have two files that I download from a data warehouse. They have a column in common (Number). I am trying to automate the end result by connecting and loading files so all I have to do is download new data and open my report file to get updated results. I want to select most columns from one file, and then pull in two fields/columns from the other file based on the matching column (unique numbers).

    Simplified example (there are several more columns in each of the actual files)

    File one/Sheet1: Number Att1 Att2 Att3

    File two/Sheet2: Number Att4 Att5

    Report File: Number Att4 Att5 Att2 Att2 Att3

    Is this possible to automate as described?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Connecting Files and Adding Columns

    Perhaps this will help.
    On sheet3 A1:A10 are populated using: =IF(Sheet1!A1="","",Sheet1!A1)
    B1:K10 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Zeros are hidden using conditional formatting.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-20-2016
    Location
    SD, USA
    MS-Off Ver
    O365
    Posts
    15

    Re: Connecting Files and Adding Columns

    Thank you!

    How would this work if the files were connected, not pasted into worksheets? Or should I say how do I connect the files without loading into the worksheets?
    Last edited by TanyaMc; 09-24-2018 at 10:01 PM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Connecting Files and Adding Columns

    I don't believe that formulas can accomplish this directly from the data warehouse files. It may be possible using VBA but I am not sure about that as I am not versed in VBA coding. I would suggest that you mark this thread as 'Solved', using the thread tools drop down in the ribbon above your first post, then open a new thread, addressing this question, in the Programming/VBA/Macros forum. Provide a link back to this thread so that contributors can see what has been done so far.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    05-20-2016
    Location
    SD, USA
    MS-Off Ver
    O365
    Posts
    15

    Re: Connecting Files and Adding Columns

    My original question was how to do so using connected files. From my review of information available, it appears to me the query/connections components in Excel (we have 2016) should work without VBA. I am not sure our system even allows us to use VBA (my experience is that most anything like that is locked down for security reasons.) So I am reluctant to consider this answered or post in that forum since the solution would potentially not be viable for me.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Connecting Files and Adding Columns

    We may be able to be of more help if you could upload small desensitized samples of the files from which you want the data extracted.
    To upload a file click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window. You'll see the size limitations for the different types of files at the bottom of that sheet, please upload small files as only a few examples should be needed to determine how/if we can help.
    Let us know if you have any questions.

+ 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] adding bullets to cells and connecting it with line?
    By resiexfor in forum Excel General
    Replies: 3
    Last Post: 02-14-2018, 02:31 PM
  2. Replies: 8
    Last Post: 01-16-2015, 07:21 AM
  3. [SOLVED] Merging two excel files, by adding columns
    By greenmat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 02:19 PM
  4. Connecting two files with a master directory for sequential numbering
    By johnpern in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-14-2012, 02:51 PM
  5. Adding columns from closed files based on cell reference
    By Ksharpes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2011, 05:12 AM
  6. connecting Excel files with VLOOKUP
    By alpenkoenig in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-24-2009, 07:15 AM
  7. Replies: 4
    Last Post: 08-29-2009, 04:12 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