Sumproductif with dynamic ranges

geospatial

Active Member
Joined
Sep 2, 2008
Messages
290
I was wondering if you can use the formual sumproductif with dynamic ranges. I currently have the formula =sumproductif(category="Found & Cleared")*(month="january") It keeps coming up with an #NAME error
The dynamic named ranges that I have are category which corresponds to Column C and Month with corresponds to Column D. When looking at the cell data under month it will say january but if you click on the cell it says the actual date such as 01/01/2010 08:00:00 PM. Not sure if that is messing up the formula or not.
 
I would double check that. If they are different lengths you will get #Value. My ranges are defined as rows 1:10

Excel Workbook
ABCD
1Found & Cleared01/01/20112
2Found & Cleared21/01/2011
3Found & Cleared10/02/2011
4Found & Cleared02/03/2011
5Found & Cleared22/03/2011
6Found & Cleared11/04/2011
7w01/01/2011
8d01/01/2011
9r01/01/2011
10t01/01/2011
Sheet3
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try selecting the dates, Data > Text to Columns, click Next twice, tick Date and select the date format (e.g. DMY) then click Finish
 
Upvote 0
I figured out the problem. My column Name says Month and when the sumproduct looks at that column it gets the #VALUE! error on that cell, then it reads fine the rest of the way. So I am guessing I need to set my dynamic range to start in row 2 and continue down.
 
Upvote 0
I figured out the problem. My column Name says Month and when the sumproduct looks at that column it gets the #VALUE! error on that cell, then it reads fine the rest of the way. So I am guessing I need to set my dynamic range to start in row 2 and continue down.

If I seperate the formula in two pieces they both work. For instance if I just do =sumproduct(--(category="Found & Cleared") it works and if i just do =sumproduct(--(MONTH(month)=1) it works, but when I do the =sumproduct(--category="Found/Cleared"),--(MONTH(month)=1) its back to the #VALUE error. So i am guessing it has to probably be a formatting issue? Do the columns have to be formatted the same?
 
Upvote 0
No, the ranges have to be the same length as stated before. different lengths return exactly that error.
 
Upvote 0
No, the ranges have to be the same length as stated before. different lengths return exactly that error.

You were right. Once I figured out my value error was originnaly caused by the row 1 cell having a title, I changed the dynamic range for that column to start in row 2. Didnt change that in the other column I was looking at so it was still starting in row 1.

Thanks for all the help from everyone.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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