"SUMIFS returning Zero"

Marwan69

Board Regular
Joined
Mar 14, 2018
Messages
80
Hello everyone,

I have data consists of dates and values. Dates start from column A1 to A9. Values start from B1 to B9. They are as follows:

Dates Values
01/01/2013 5,200
02/01/2013 2,500
03/01/20137,846
04/01/2013444
05/01/20135,852
06/01/2013441
07/01/2013696
08/01/2013332
09/01/2013114

<colgroup><col><col></colgroup><tbody>
</tbody>

The formula I'm using is: SUMIFS(B1:B9,A1:A9,A1,A1:A9,A7)

This formula returns zero value. Any suggestions?

Many thanks,
Marwan
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
The value in column A can't be both A1 and A7, since they are different. If you wanted the sum for dates between those dates, you'd need:

=SUMIFS(B1:B9,A1:A9,">="&A1,A1:A9,"<="&A7)
 
Upvote 0
Thanks so much RoryA, perfectly worked however, didn't get the phrase: "The value in column A can't be both A1 and A7, since they are different.".

Isn't that I'm looking up two different dates within column A ("Dates")?

Many thanks.
 
Upvote 0
Your original formula translates to this:

Add up column B where the value in column A is equal to A1 and is also equal to A7.

If A1 and A7 are not the same, the value in column A can never match both of them at the same time.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top