+ Reply to Thread
Results 1 to 31 of 31

Continuous/Automatic Data Integration From Two Tables into One

  1. #1
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Question Continuous/Automatic Data Integration From Two Tables into One

    Hello good morning sir/ma'am

    Actually, I was having a problem with excel...
    and was wondering if it was even possible (i.e - merging the data of two tables into a new table in such a way that if any new data was provided it will be Continuously/automatically incorporated)

    if there is any video related to it can you please provide its link
    once again very sorry for the trouble
    and thanks a lot in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Continuous/Automatic Data Integration From Two Tables into One

    how do you want the two tables to be integrated?

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Further post #2, please add an example of the integrated table.

    And how (manual input / extraction from another source) are the "Purchase", "Sales" and "Bank Transactions" sheets updated? and with what frequency ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    first of all thanks for giving me your time...
    as for the questions-
    • I want to integrate Purchase & Bank Transactions(Payment part/dr part) / Sales & Bank Transactions(receipt part/cr part)... if it will be a problem feel free to separate them into receipt and payment tables...
    • Sales, Purchase, Bank Transactions(the first three sheets) will be entered manually and then will be combined in groups of sales+reciept(bank transactions) & purchase+payments(bank transactions)
    • the Sales, Purchase, Bank Transactions sheets will be updated everyday...
    • I have improved the attachment file
    feel free to ask if there is anything else
    Attached Files Attached Files
    Last edited by Gaminator; 05-03-2022 at 01:47 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @Gaminator, this is totally possible to do in VBA but might be more straightforward and expandable with Power Query (PQ), which is out of my wheelhouse.

  6. #6
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @Carlmon thankyou for your time

  7. #7
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @JohnTopley Sir any suggestions

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Please Login or Register  to view this content.
    See Sheet1

    Please confirm calculations in columns H and Q are correct then I will add to VBA
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @JohnTopley Sir very sorry for the late reply,
    And once again thank you for your help...

    the calculations in columns H and Q are correct...
    Last edited by Gaminator; 05-07-2022 at 04:37 AM.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Alternative solution using Power Query

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  11. #11
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Hello Sir Alamsidman...
    I am not very good with power query can you tell me how to apply it

  12. #12
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @Alansidman Sorry sir I don't mean to be rude but,
    But I think that @JhonTopley sir's solution better suits my conditions

    Sir thanks a lot for your time

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Updated VBA

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @jhonTopley Sir...
    Do we have to run the program after every update?
    Or, does it update at the time of opening of the workbook?

    and I would like to make one more request,
    can you please teach me how to customize the code so that it can be used in my original workbook

  15. #15
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Continuous/Automatic Data Integration From Two Tables into One

    As requested:

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

  16. #16
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @alansidman Sir thanks a lot for the help...
    I was able to apply the code but it was showing an error
    Expression.Error: The import Table24 matches no exports. Did you miss a module reference?
    sir what should i do

  17. #17
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Yeah,
    That is because you needed to load each of the tables into PQ Editor before merging them. Here attached is your file with my solutions
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Thanks a lot sir, it works under normal circumstances but...
    it causes problems in entries of partial payment


    samplexxx.PNG

  19. #19
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    As in the photo of the above post,
    the amount keeps repeating and is a problem in the computation of balance
    and will also cause confusion for the reader
    is there any solution sir...

  20. #20
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Attached runs on Workbook_Open But I have left the "Run" button (delete if not required)
    Attached Files Attached Files

  21. #21
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Continuous/Automatic Data Integration From Two Tables into One

    it causes problems in entries of partial payment
    ... and would it have been nice if your example showed such characteristics instead of wasting our time with a non-realistic example of your data.

  22. #22
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Sorry Sir, I didn't mean to waste your time in any way...
    Sir, there was an entry of the partial payment in the first attachment that I posted(under the name CA & DC)

    And I once again apologize for the unrealistic example of data,
    sir I genuinely didn't know that the example will cause problems...

  23. #23
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @john Topley Sir thanks a lot for your time...
    Sir in the original workbook that I am working with there are many more worksheets as well as the purchase and sales tables have a lot more columns
    So sir can i bother you one last time to help me alter that worksheet... i can mail it to you

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Post the more realistic data sample here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  25. #25
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Continuous/Automatic Data Integration From Two Tables into One

    As per Ali's reply: post a realistic sample workbook with ALL sheets included. The volume (number of rows) is not a problem BUT let us know the likely maximum for any sheet.

  26. #26
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    I am extremely very sorry for not replying sir...
    Actually Sir I got into an accident and wasn't able to use my computer because of my hand injury

    Sir I'll post the sample file in 5 min...
    Very Sorry for the trouble

  27. #27
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Capture.PNG
    Sir Can you please remove the balance column from the VBA program
    as it is having problems I can do it with Formulas(sorry I made a mistake in the picture the 1st one should be -310000 and 2nd should be -440304)

    Sir here is the sample
    Sir Please pick the Sales/Purchase Data from the second table in the sales worksheet
    Sie, Very Sorry for the trouble and thanks a lot for your help
    Attached Files Attached Files
    Last edited by Gaminator; 06-06-2022 at 08:45 AM.

  28. #28
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    @JhonTopley

  29. #29
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Please Help

  30. #30
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Help Please

  31. #31
    Registered User
    Join Date
    07-24-2020
    Location
    Madhya Pradesh, India
    MS-Off Ver
    365
    Posts
    61

    Re: Continuous/Automatic Data Integration From Two Tables into One

    Thanks for all the help So far...

+ 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. Continuous Data Integration From Two Tables into One
    By Gary_Di in forum Excel General
    Replies: 9
    Last Post: 05-04-2022, 10:29 AM
  2. Copy pasting PDF tables to Excel and automatic data manipulation
    By DavidE21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2018, 07:13 AM
  3. Creating a continuous graph with non-continuous data
    By Throwaway1234567 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-04-2017, 01:33 PM
  4. Creating Automatic Summary Tables from a Master Data Table (Equation?)
    By tjb0012 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2017, 04:59 PM
  5. Replies: 1
    Last Post: 02-23-2013, 08:22 AM
  6. Replies: 0
    Last Post: 06-09-2011, 10:31 AM
  7. Do Pivot Tables have an automatic data range expansion?
    By David.c.h in forum Excel General
    Replies: 1
    Last Post: 03-25-2005, 09:06 PM

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