+ Reply to Thread
Results 1 to 9 of 9

working with large tables. pointers to reduce calculation time

  1. #1
    Registered User
    Join Date
    07-07-2017
    Location
    Sri lanka
    MS-Off Ver
    2013
    Posts
    9

    working with large tables. pointers to reduce calculation time

    hi
    i have three tables. RFID input, Main database and Attendance.
    when a new IFID input is added the function checks if it is in the "Main database". If so it moves the relative information to "Attendance" table. with your help i managed to get the formula running perfectly. big thanks.
    but wen i increase the number of rows in those tables around 500, it takes around 30 seconds to excel to do its calculations. For may application I need around 3000 rows. I want these tables to update real time. Is it possibly with excel ???
    any pointers on methods to reduce calculation time ??
    I have attache the workbook, check if my use of formula is increasing calculation time??
    Try adding or deleting few values in "RFID input" sheet, you will see it takes few seconds.RFID attendance database.xls
    any better and faster method for this application??
    Thanks

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: working with large tables. pointers to reduce calculation time

    I don't understand why you are increasing rows in TABLE??? While if you converted your data sheet into table then you don't need to increase rows manually this the first thing. The second thing is as I said in first thing table format itself increase and decrease ranges if you are using the ranges not manually but in table format. Do the follow below instruction which will reduce calculation time in formulas.

    1- Do clear or delete all the cell other than data.
    2- Do decrease rows till the end of data.
    3- now use below formulas instead of yours.

    In attendance sheet

    A3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Do drag towards the cells and down till H15.

    Check the attached file for your information.

    You can also change file format while saving as .xlsm as you have Macro and VBA codes.

    Note:- Table format can increase and decrease rows according the formula need.

    Hope this will help you.

    If not you can also change calculation option press Alt->M->X->M this step will change calculation option automatic to manual. When ever you finish you work and save the data the formula will work other wise you will have get easy working with wrong result.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: working with large tables. pointers to reduce calculation time

    Also you have duplicate RFIDs E5:FD:FF:AA with two names associated in 'maindatabase'. Of the two only obama will match in 'Attendance'. sriyaani will not.
    Dave

  4. #4
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: working with large tables. pointers to reduce calculation time

    My solution is pretty quick for this size.
    Please test it with your actual size of tables.
    If it is to slow then, I can help you with a VBA solution (Binary Search) that will be very quick even for extreme large tables.
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  5. #5
    Registered User
    Join Date
    07-07-2017
    Location
    Sri lanka
    MS-Off Ver
    2013
    Posts
    9

    Re: working with large tables. pointers to reduce calculation time

    @shukla.ankur281190
    your method works and it is faster. but when i reduce rows in attendance table, the data will only get updated until row 15. it only updates for the size of the table. that's why i had added more rows.

    new with data.xlsm
    Last edited by nipz; 07-17-2017 at 02:31 AM.

  6. #6
    Registered User
    Join Date
    07-07-2017
    Location
    Sri lanka
    MS-Off Ver
    2013
    Posts
    9

    Re: working with large tables. pointers to reduce calculation time

    @FlameRetired
    sorry about that. i was just entering few RFIDs to test the system. in my real application there wont be duplicates.
    Last edited by nipz; 07-17-2017 at 02:32 AM.

  7. #7
    Registered User
    Join Date
    07-07-2017
    Location
    Sri lanka
    MS-Off Ver
    2013
    Posts
    9

    Re: working with large tables. pointers to reduce calculation time

    Quote Originally Posted by PietBom View Post
    My solution is pretty quick for this size.
    Please test it with your actual size of tables.
    If it is to slow then, I can help you with a VBA solution (Binary Search) that will be very quick even for extreme large tables.
    Thank you this method works. I added few random data for the actual size of my final database. around 4000 raw. it works really fast. but the attendance table stops updating after raw 556 ??
    Could you explain your method. also is there a way to prevent duplicates from updating attendance table. like if the same RFID input is entered twice in "RFID table" then it only get updated the first time in "attendance table"
    thank you
    Attachment 528186

  8. #8
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: working with large tables. pointers to reduce calculation time

    I added Macro1 and assigned it to the button on worksheet Attendance.
    If you click on it it will do the trick....
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: working with large tables. pointers to reduce calculation time

    @nipz,
    Did you find a solution yourself ?

+ 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: 8
    Last Post: 07-12-2017, 05:05 PM
  2. Replies: 1
    Last Post: 11-22-2016, 01:54 AM
  3. [SOLVED] time calculation formula not working well
    By Imran368 in forum Excel General
    Replies: 17
    Last Post: 08-07-2016, 01:45 AM
  4. [SOLVED] Time entry on UserForm displaying inccorectly and calculation not working on the time.
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2014, 01:21 PM
  5. Working on Date /time calculation
    By birims in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2012, 03:20 AM
  6. how do I reduce calculation time?
    By Dora C in forum Excel General
    Replies: 14
    Last Post: 09-15-2008, 03:05 AM
  7. Keep calculation time down in large Workbooks
    By Martin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 08:55 AM

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