简体   繁体   中英

Excel Sum Formula With Multiple Criteria

So I'm having a problem with summing some data in a range with multiple criteria. Take the data below as an example: 在此处输入图像描述

I would like to sum all numbers where: Name = Bob AND the top row is equal to 02/01/20.

The current formula i have is with a SUMPRODUCT, but i'm not sure if it's the solution

=SUMPRODUCT((Names="Bob")*(Dates="02/01/2020")*Values)

Where Names is a named range for my names, Dates is a named range for my dates and Values is a named range for all my values in the table. However, the formula keeps resulting in "#VALUE.".

Any ideas anyone?

You need to turn your date string into a date value. So try:

=SUMPRODUCT((Names= "Bob")*(Dates=--"02/01/2020")*Values)

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