Ask Your Question
1

What is the VBA code to perform the Sumifs function?

asked 2023-02-08 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-09-09 13:00:00 +0000

ladyg gravatar image

The VBA code to perform the Sumifs function is:

Application.WorksheetFunction.Sumifs(Range("sum_range"), Range("criteria_range_1"), "criteria_1", Range("criteria_range_2"), "criteria_2")

Where: - "sumrange" is the range of cells to sum. - "criteriarange1" and "criteriarange2" are the ranges of cells containing the criteria. - "criteria1" and "criteria2" are the criteria to apply to "criteriarange1" and "criteriarange_2", respectively.

You can also add more criteria ranges and criteria values by continuing to add arguments to the Sumifs function.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-02-08 11:00:00 +0000

Seen: 11 times

Last updated: Sep 09 '21