# Sumproduct not handling MONTH()

#### D4rwin

##### Board Regular
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.

 Formula Result Date =B2=SUMPRODUCT(MAX((MONTH(B2)=MONTH(\$B\$2:\$B\$3))*\$B\$2:\$B\$3)) False 42123 =B3=SUMPRODUCT(MAX((MONTH(B3)=MONTH(\$B\$2:\$B\$3))*\$B\$2:\$B\$3)) True 42124

<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
Is it not just...

=B2=MAX(\$B\$2:\$B\$3)

which needs just enter?

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.

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?

Replies
2
Views
317
Replies
2
Views
276
Replies
1
Views
504
Replies
5
Views
162
Replies
1
Views
185

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.

### Which adblocker are you using?

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

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