• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

reduce calculation time

Afarag

Member
Dears,

i have a sheet that contain macro to count cell color, but with any modification the sheet takes much time to do it
 

Attachments

  • count color.xlsm
    150.6 KB · Views: 3
A few ideas

The formula in D1 is: =sum_color(D2:D1000,$A1)
The formula in D1 should be: =sum_color(D$6:D$221,$A1)
You only have 221 Rows of data
Also if you Look at D2 and D3 you will notice that it isn't referring to the correct ranges as the lack of $ allows the formula to be copied down relatively not absolutely

I would also restrict copying the columns to just enough to suit your data
Most of your columns have no data in them, but still need to be calculated
 
Last edited:
Hi ,

See your file ; two named ranges have been defined , and the macro which is doing the cell counting has been changed slightly.

Narayan
 

Attachments

  • count color.xlsm
    161 KB · Views: 11
Back
Top