Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:08:14+00:00 2026-06-07T18:08:14+00:00

Excel SUMIFS function can’t execute if the other workbooks is closed. So, i did

  • 0

Excel SUMIFS function can’t execute if the other workbooks is closed. So, i did a SUMIFS function that opens my workbook, iterate via ‘for’ loop and verify if the value column needs to be added in my total variable.

I did another function that removes my ‘for’ loop and uses “WorksheetFunction.SumIfs(…)”. My new function ran fastest than the old one.

What is the magic behind excel functions and VBA iteration?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:08:15+00:00Added an answer on June 7, 2026 at 6:08 pm

    From: http://msdn.microsoft.com/en-us/library/ff726673.aspx#xlUsingFuncts

    (emphasis added)

    User-Defined Functions

    User-defined functions that are programmed in C or C++ and that use
    the C API (XLL add-in functions) generally perform faster than
    user-defined functions that are developed using VBA or Automation (XLA
    or Automation add-ins). For more information, see Developing Excel
    2010 XLLs.

    XLM functions can also be fast, because they use the same tightly
    coupled API as C XLL add-in functions. The performance of VBA
    user-defined functions is sensitive to how you program and call them.

    Faster VBA User-Defined Functions

    It is usually faster to use the Excel formula calculations and
    worksheet functions than to use VBA user-defined functions. This is
    because there is a small overhead for each user-defined function call
    and significant overhead transferring information from Excel to the
    user-defined function.
    But well-designed and called user-defined
    functions can be much faster than complex array formulas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excel has a lookup function that finds a specified value in a row or
In Excel we have the VLOOKUP function that looks for a value in a
In Excel, I'm writing a custom function in VBA that needs to take a
I'm working on a function in Excel that will allow me to sum columns
Excel: What function can I use to take the all the characters from the
Excel has NETWORKDAYS() function that find the number of business days between two dates.
Excel has the KURT function that returns the kurtosis of a data set. Does
In Excel Formulas there are so many different functions, that I am not sure
The Excel 2003 API has a GetSaveAsFilename method that pops up the Save As
I'm trying to have a similar function to SUMIFS (like SUMIF but with more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.