+ Reply to Thread
Results 1 to 9 of 9

Minimize Excel processing time (Formula IFERROR & INDEX used)

  1. #1
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Unhappy Minimize Excel processing time (Formula IFERROR & INDEX used)

    Hi Intelligent guys,

    Hope you all are well and Good!

    I'm new to this forum, Apologies if my English is not correct.

    I'm exploring Excel for Stock Trading use and to be frank, don't know much about formula and VBA scripts.
    I'm Trading lots of stocks daily, so I created Excel for trading records

    What's in Excel
    Main worksheet- Every Stock recorded there No formula use

    Other worksheets- Created on basis of each stock for the performance of each stock. Reference from MAIN sheet formula use from 1st row to 200 rows on every stock worksheets
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Problem
    Excel takes a lot of processing time when adding each line and when SAVE the file. Its 64bit version and Surface device
    Showing always- Calculating(4 Threads)...12% bla bla



    Requirements
    1. Any formula or VBA/Macro scripts that fulfill my needs for research purposes.
    2. Any Best Idea of Stock Trading records for Analysing and research.
    3. Any automated system for Column K is Setup/Strategy used. Way to sort out which strategy works for me.
    4. How to sort Worksheets according to its Size from High to Low(In other words Stock sheets which have more number of Rows stay first and less Rows Worksheet stay last). Is there any VBA script for it?


    Notes
    Coz Attachments limits of 1Mb I have added only 100 stock list. The actual File size is around 11Mb😱
    Idea is to create around 150 stocks list in the MAIN worksheet


    Any help is really appreciated
    Thank you so much

    Regards
    Bhavesh
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    150 Stock sheets x 200 rows each x 16 columns is an awful lot of complex formulae to calculate.

    Personally, I’d stick with the one Main worksheet but add some rows at the top where you can ask for selection criteria and use VBA to AutoFilter the data.

    If it's a Structured Table, you could do the filtering and sorting manually.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Since ARRAY formulas are used in all sheets all cells it will take long time to calculate and hence excel will be slow.
    Using helper column in each sheet delay can be avoided. Don't worry . It is easy.

    In Sheet AARTIIND.
    Helper column used is Column S. As it was a free I have used S. You can use any column which is free if S is going to be used in future.
    Formula in S2

    =IF(OR(ROW()=2,S1<>""),IFERROR(AGGREGATE(15,6,ROW(Main!$A$2:$A$49925)/((Main!$A$2:$A$49925<>"")*(ISNUMBER(SEARCH($A$1,Main!$C$2:$C$49925)))),ROW(A1)),""),"")

    In A2 then Copied across up to P1. Format cell A2 for General.

    =IF($S2<>"",INDEX(Main!A:A,$S2),"")

    Format date and time cells as required.

    Now select A2:S2 then copied down say 200 rows (as required).
    Sheet AARTIIND is ready.
    Copy A2:S200 and paste it all Sheets except Main Sheet.
    This works faster.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 06-16-2021 at 07:22 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Since the column C value exactly matches With the Tab names For S2 the below formula can be used. It is faster than the previous formula for S2.

    =IF(OR(ROW()=2,S1<>""),IFERROR(INDEX(ROW(INDEX(Main!$C:$C,MAX(SUM(S1)+1,2)):Main!$C$49925),MATCH($A$1,INDEX(Main!$C:$C,MAX(SUM(S1)+1,2)):Main!$C$49925,0)),""),"")

  5. #5
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Thumbs up Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Hi Kvsrinivasamurthy,

    Thanks for the valuable information. Just check out it really works great. Much faster typing and processing still file opening takes time but its okay.

    Any suggestion for the below points?
    1. Any automated system for Column K is Setup/Strategy used. Way to sort out which strategy works for me.

    2. How to sort Worksheets according to their Size from High to Low(In other words Stock sheets which have more number of Rows stay first and fewer Rows Worksheet stay last). Is there any VBA script for it?

    Thanks again really appreciated for Great work

  6. #6
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Quote Originally Posted by TMS View Post
    150 Stock sheets x 200 rows each x 16 columns is an awful lot of complex formulae to calculate.

    Personally, I’d stick with the one Main worksheet but add some rows at the top where you can ask for selection criteria and use VBA to AutoFilter the data.

    If it's a Structured Table, you could do the filtering and sorting manually.
    Hi TMS,
    Thanks for suggestion, Could you please make a small sample file so I can understand your strategy. Great if you take my excel file.

    [BAny suggestion for the below points?[/B]
    1. Any automated system for Column K is Setup/Strategy used. Way to sort out which strategy works for me.

    2. How to sort Worksheets according to their Size from High to Low(In other words Stock sheets which have more number of Rows stay first and fewer Rows Worksheet stay last). Is there any VBA script for it?

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Ref Post #5
    ! I did not follow what you want.

    2. Here is the macro code to arrange sheets according to their Size from High to Low(In other words Stock sheets which have more number of Rows stay first and fewer Rows Worksheet stay last). Size means no rows filled in ColumnA.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Hi, kvsrinivasamurthy

    MACRO Works awesome 👍

    You saved my day, A million thanks to you 👏🙏

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Minimize Excel processing time (Formula IFERROR & INDEX used)

    Thanks for feed back. Pl mark the thread solved.

+ 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. Change ARRAY formula to minimize excel processing
    By swampedindata in forum Tips and Tutorials
    Replies: 4
    Last Post: 02-17-2012, 10:54 AM
  2. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  4. Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Replies: 1
    Last Post: 07-08-2005, 11:05 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