+ Reply to Thread
Results 1 to 4 of 4

Microsoft Query- new query results not inserting new row in Excel table

  1. #1
    Registered User
    Join Date
    05-03-2018
    Location
    North Carolina, USA
    MS-Off Ver
    2016
    Posts
    2

    Microsoft Query- new query results not inserting new row in Excel table

    Hi, guys. I frequently lurk these forums for Excel help, but I've finally encountered a problem that I can't find a solution to.
    This issue is with the query results obtained from the Microsoft Query Wizard.

    I use the query to generate a list of identification numbers based on specific criteria from another document, and then in a second column I use a VLOOKUP to match the identification number to a name. In a third column I enter by hand, with no formula, the location of this object.

    Sample query results with VLOOKUP and hand-entered data:
    query_issue_1.png

    I have the Microsoft Query set to "insert entire rows for new data..." but this is not what is happening. When a new result is returned in the Query column, the third column is not moved down.
    query_issue_2.png

    It's like the query is inserting new cells, but not new rows, when it imports new data. The VLOOKUP data is formula-based, so it's unaffected, but the hand-entered data is simply not staying "linked" to the correct identification number.

    Here's what I'm trying to get the sample to do:
    query_issue_3.png

    Where the new row that is inserted actually shifts the older data down.

    Is this possible to solve while still using the Microsoft Query data? The original document is changed frequently, and trying to map the changes manually is difficult, which is why the "auto-updating" from Query is what I'm trying to use.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Microsoft Query- new query results not inserting new row in Excel table

    Maybe use PowerQuery (Get&Transform) built-in for Ex2016 instead of QueryWizard

    Power Query for

  3. #3
    Registered User
    Join Date
    05-03-2018
    Location
    North Carolina, USA
    MS-Off Ver
    2016
    Posts
    2

    Re: Microsoft Query- new query results not inserting new row in Excel table

    sandy- I tried using Power Query instead of Excel Query Wizard, but I'm still experiencing the same issue where the cells with hand-entered data aren't 'shifting down' when the query inserts a new row.
    (but I do like how Power Query works more than I like how the Query Wizard works, so thank you for that recommendation)

    Do you have any more suggestions on how to ensure the hand-entered data cell stays 'linked' to its original row when Query inserts new data?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Microsoft Query- new query results not inserting new row in Excel table

    Sorry for delay, I was away for few days from here.
    I think you can try on VBA sub-forum because with Query Wizard or PowerQuery, whatever you choose, it do do that what you want, means mixing manual and automatic.

+ 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. Replies: 1
    Last Post: 09-08-2015, 08:12 PM
  2. Microsoft Query Returning Blank Cells/Results
    By skull132 in forum Excel General
    Replies: 2
    Last Post: 07-11-2014, 04:26 AM
  3. Replies: 1
    Last Post: 11-03-2013, 02:58 PM
  4. Importing Access query into Excel:Microsoft Query
    By ge0rge in forum Excel General
    Replies: 3
    Last Post: 04-02-2009, 10:51 AM
  5. Query a table and return results into my Excel Form
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2007, 07:41 AM
  6. [SOLVED] VBA - query an Access table -> results in Excel
    By rirus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2006, 02:35 PM
  7. Execute Macro once Microsoft Query results complete
    By gwa3000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2005, 04:35 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