sumifs() and data validation situation

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have table like below, the moth column is =month(a2)

select name from the list: k4 = john
select item from the list: k5 = tv
select date: k6 = 18/12/2017 (this list is from date column, but the cell is custom formatted as MM)


L2 =SUMIFS(E2:E125,C2:C125,K4,D2:D125,K5,F2:F125,k6)

The above function would return 0. The problem is with K6 which is shown now 12. If I use another cell lets L6 and enter 12, I got the right result


[TABLE="width: 395"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]date[/TD]
[TD]store[/TD]
[TD]name[/TD]
[TD]item[/TD]
[TD]unit[/TD]
[TD]month[/TD]
[/TR]
[TR]
[TD="align: right"]18/12/2017[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]tv[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]28/06/2018[/TD]
[TD]east[/TD]
[TD]john[/TD]
[TD]computer[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]05/09/2018[/TD]
[TD]west[/TD]
[TD]david[/TD]
[TD]dryer[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]21/07/2018[/TD]
[TD]west[/TD]
[TD]mary[/TD]
[TD]washer[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]28/02/2018[/TD]
[TD]south[/TD]
[TD]alex[/TD]
[TD]tv[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try
=SUMIFS(E2:E125,C2:C125,K4,D2:D125,K5,F2:F125,MONTH(K6))
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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