Sumproduct not handling MONTH()

D4rwin

Board Regular
Joined
Mar 31, 2014
Messages
91
Can someone tell me why this formula is not working properly?
The purpose is to test whether the date is the most recent date per month. It is supposed to return a TRUE in both cases as they are different months.

FormulaResultDate
=B2=SUMPRODUCT(MAX((MONTH(B2)=MONTH($B$2:$B$3))*$B$2:$B$3))False42123
=B3=SUMPRODUCT(MAX((MONTH(B3)=MONTH($B$2:$B$3))*$B$2:$B$3))True42124

<tbody>
</tbody>






Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
No that will certainly not work as BOTH cases must return TRUE as they are the maximum values for the given months.
My data contains several dates per month and I must determine which one is the last date (and data point) in each month.
But it seems that sumproduct is not handling it correctly.
 
Upvote 0
No that will certainly not work as BOTH cases must return TRUE as they are the maximum values for the given months.
My data contains several dates per month and I must determine which one is the last date (and data point) in each month.
But it seems that sumproduct is not handling it correctly.

Would you post a 5 row sample along wıth the desıred results, not the results of a non-working formula?
 
Upvote 0

Forum statistics

Threads
1,206,921
Messages
6,075,577
Members
446,147
Latest member
homedecortips

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