sumifs() with date

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I want to use sumifs() function to find out how many tv John sold for month of March. Is that possible?
I can find out how many tv john sold like this

=sumifs(E1:E10,C1:C10,"john",D1:D10,"tv")

But now I want to find out for month of March. Thank you very much

datestorenameitemunit
22/1/2018eastjohntv2
1/2/2018southmarycell4
1/3/2018eastjohnpc10
16/3/2018eastjohntv4

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello lezawang :)
data is from j4 to n8
use this formula n press ctrl + shift + enter
Code:
=INDEX(N5:N8,MATCH(3&L5&M5,MONTH(J5:J8)&L5:L8&M5:M8,0))
answer will be 4
(y)
 
Last edited:
Upvote 0
my earlier answer is wrong, it will not sum,
but this will,
use with ctrl + shift + enter
data is from j4 to n9
date

storenameitemunit
22-01-2018eastjohntv2
01-02-2018southmarycell4
01-03-2018eastjohnpc10
16-03-2018eastjohntv4
16-03-2018eastjohntv5

<tbody>
</tbody>
Code:
=SUM(IF(MONTH(J5:J9)=3,IF(L5:L9=L5,IF(M5:M9=M5,N5:N9))))
answer will be 9
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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