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

[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]date[/TD]
[TD]store[/TD]
[TD]name[/TD]
[TD]item[/TD]
[TD]unit[/TD]
[/TR]
[TR]
[TD]22/1/2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1/2/2018[/TD]
[TD]south[/TD]
[TD]mary[/TD]
[TD]cell[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1/3/2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]pc[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]16/3/2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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
:beerchug:
 
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
[TABLE="width: 391"]
<tbody>[TR]
[TD]date

[/TD]
[TD]store[/TD]
[TD]name[/TD]
[TD]item[/TD]
[TD]unit[/TD]
[/TR]
[TR]
[TD="align: right"]22-01-2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]01-02-2018[/TD]
[TD]south[/TD]
[TD]mary[/TD]
[TD]cell[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]01-03-2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]pc[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]16-03-2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD="align: right"]4
[/TD]
[/TR]
[TR]
[TD="align: right"]16-03-2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD="align: right"]5
[/TD]
[/TR]
</tbody>[/TABLE]
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,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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