简体   繁体   中英

VBA find value x in column A and value y in column B and sum values in column C

following problem:

Let's say my file looks like this:

Column A  | Column B | Column C
ABCDEFI | 7000 | 50 
ABCDEFI | 7500 | 20
ABCDIFE | 7000 | 30
ABCDEFI | 7500 | 80

I want to look for "ABCDEFI" in Column A and for "7500" in Column B and sum up the corresponding values of Column C and store them in Column D.

In this case the end result should be "100" in Column D.

Hope that makes sense.

Happy to see read your answers.

非常简单的SUMIFS()将起作用:

=SUMIFS(C:C,A:A,"ABCDEFI",B:B,7500)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM