What am I doing wrong with SUMPRODUCT

jim101

Board Regular
Joined
Mar 22, 2005
Messages
110
I have dates in Sheet1 column B and amounts in Column F, on another sheet I have 2021 in cell A133 and this formula in a cell but it does not give me the right answer?


=SUMPRODUCT((YEAR(Sheet1!$B$3:$B$2000)=$A133),Sheet1!F$3:F$2000)


How do I look at sheet1 B3:B200 for the year that is in A133 on another sheet and sum what is in Sheet1 F3:F2000 that is for that year?

I am using Excel 2003

Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try this:
Excel Formula:
=SUMPRODUCT(--(YEAR(Sheet1!$B$3:$B$2000)=$A$133),Sheet1!F$3:F$2000)
(I believe you need to coerce the boolean result of your formula to a value).
 
Upvote 0
Solution

Forum statistics

Threads
1,216,128
Messages
6,129,030
Members
449,482
Latest member
al mugheen

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