Share via

Read/write Excel data tables (same file or different files) as SQL commands?

Anonymous
2023-11-21T20:58:23+00:00

Can I create data tables in Excel files that in another Excel file I can read them with SQL commands and the output be exported as another table in an Excel current/external file?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-02-12T16:48:52+00:00

I used another method since.

I simply read the excel file sheet one row at a time and store those row into another workbook. I then process from that other workbook.

My question can be cancelled but I do not know how.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-11-21T21:14:29+00:00

    Edited content

    Whomever will use my Excel Workbook containing the Data Connection tables to not use MS Access software, only use this Workbook Excel.

    Question-1: how do I refer to this loaded table as SQL?

    Question-2: is this loaded table a copy of the resulting data or links to the original Workbook where they come from?

    Was this answer helpful?

    0 comments No comments
  2. triptotokyo-5840 36,686 Reputation points Volunteer Moderator
    2023-11-21T21:03:10+00:00

    Can I create data tables in Excel files that in another Excel file I can read them with SQL commands and the output be exported as another table in an Excel current/external file?

    You could export the data to ACCESS do the SQL manipulation there and then re-export the manipulated data back to EXCEL: all of this is very simple and quick to achieve.

    Was this answer helpful?

    0 comments No comments