Sumproduct not working

blossomthe2nd

Active Member
Joined
Oct 11, 2010
Messages
450
Hi guys

Hope someone can help,

I have a sumproduct formula thats not working

HTML:
=SUMPRODUCT(--('Master Result'!$E$1:$E$10000=A4),--('Master Result'!$P$1:$P$10000="John"))

The first part is looking for a Date on the Master results tab that matches the date in A4. ( I have tested this and this part of formula is working )

The second part should be looking for John in column P in the Master result spreadsheet. In this spreadsheet John is dervied from a Vlookup formula , and I can not get this part to work.

Can anyone please advise ? Would sumproduct on columns based on cells with formulas normally cause an issue ?

Thanks
A
 

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, there's nothing wrong with that, that I can see. Of course, if the result of the vlookup isn't "John" but " John" or "John ", then that is not a match.
 
Upvote 0
Hi GlennUK,

I have pasted "John" from the formula back onto the results of the Vlookup in the hopes of formating the all the same ( as in spaces caps etc) But I am still getting #N/A error.

Is it possible to do this search by a countif or something, there are mulitple criteria tho

Thanks
 
Upvote 0
Ah, you didn't say that you were getting #N/A error. You need to surround your VLOOKUPs with IFs to suppress any #N/A results.
 
Upvote 0
Hi Glenn

The Vlookups are grand there are no N/As in that result , its the sumproduct that is giving the NAs when they are directed to the columns with the Vlookups !!!

Can sumproducts be used on columns that are formulas ?
 
Upvote 0
Sumproducts can be used on columns that are formulas, but only if none of the cells has #N/A in them. Check your results, do a filter or a search and see where the #N/A is coming from.
 
Upvote 0
Yes, they can. However, when a SUMPRODUCT returns a #N/A! error, that means there is a #N/A! error somewhere in the range(s) that the SUMPRODUCT is looking. Double check your data to ensure there are absolutely no errors in them.
 
Upvote 0
Glenn/Mr Kowz

I understand --- Takes me awhile but I get there in the end , !! I have taken your suggestions and surrounded by if(iserrors) and Sumproduct is working as expected , this learning curve is HUGE

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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