+ Reply to Thread
Results 1 to 2 of 2

Calculating 4 threads and colorindex - help with formula

  1. #1
    Registered User
    Join Date
    07-11-2020
    Location
    Serbia
    MS-Off Ver
    Office 365
    Posts
    1

    Calculating 4 threads and colorindex - help with formula

    Dear all,

    I have a table for the production plan and I need help with two formulas.

    First, I have macro about the color index, and when I change color in the tab "Plan proizvodnje.." from green (colorindex 43) to no fill (colorindex -4143) it won't change value automatically in column X. I have to double click on cell and press enter. Can someone please tell me what should I change in the module below so it changes value automatically?

    1.
    Function SumByColor(CellColor As Range, rRange As Range)
    'Dim cSum As Long
    Dim ColIndex As Integer
    ColIndex = CellColor.Interior.ColorIndex
    For Each cl In rRange
    If cl.Interior.ColorIndex = ColIndex Then
    cSum = WorksheetFunction.Sum(cl, cSum)
    End If
    Next cl
    SumByColor = cSum
    End Function

    2.
    Function ColorIndex(CellColor As Range)
    ColorIndex = CellColor.Interior.ColorIndex
    End Function

    And the second problem is in the formula in tab "Stanje sirovina i ambalaze" in column C:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&RefSheet!$A$1:$A$24&"'!$A$4:$A$355");$A3;INDIRECT("'"&RefSheet!$A$1:$A$24&"'!$W$4:$W$355")))

    With this formula, it needs a lot of time to calculate the values (it shows calculating 4 threads). Can I use some other formula to pick up all data from all sheets from "Plan proizvodnje jul to novembar" by dates?

    Thank you in advance.
    Attached Files Attached Files
    Last edited by nonabc86; 07-12-2020 at 10:26 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Calculating 4 threads and colorindex - help with formula

    Hello nonabc86 and Welcome to Excel Forum.
    As to the formula it may speed things up to list the sheets across the top of the "Stanje sirovina i ambalaze" sheet and use the following to get values per date from each sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The sum of all sheets is then displayed in column using: =SUM(F3:O3)
    You may also want to check under File > Options > Advanced > Formulas > make sure "Use all processors on this computer" is selected.
    (Note that I don't know enough about VBA to help with the macro)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] HELP!! "Calculating 4 threads" nightmare problem!
    By jackblack2 in forum Excel Formulas & Functions
    Replies: 73
    Last Post: 02-05-2024, 10:48 AM
  2. Performance issue - Calculating (12 Threads) : xx% - Update / System screen
    By Overkill32 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2020, 11:09 AM
  3. [SOLVED] 4 threads calculating. Massive slowdown since adding sumifs formulas
    By Johnny247 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-28-2019, 12:32 PM
  4. Replies: 4
    Last Post: 07-20-2019, 06:05 PM
  5. Calculating (4 Threads)
    By AndreaJean18 in forum Excel General
    Replies: 1
    Last Post: 05-22-2019, 10:01 PM
  6. Replies: 28
    Last Post: 04-04-2019, 06:26 AM
  7. Replies: 11
    Last Post: 02-27-2017, 08:02 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