Index formula NUM# error

blossomthe2nd

Active Member
Joined
Oct 11, 2010
Messages
450
Hi guys

I have an excel spreadsheet where the data is inported from a PRN file.

I wish to do an Index formula to make a summary based on specific criteria.

One of which is date

On Sheet1 colum A I have a list of dates , on sheet2 is the data I wish to retrive my query from, I have tried the below sumproduct but keep getting Num# error

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

I believe its down to how the dates are formatted and have changed both to dates but still not working ,
Can anyone advise please ?

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
If you have XL2003 or earlier, you cannot use entire column references like E:E in sumproduct.
You have to specify row#s like E1:E1000

And you must keep equal number of rows in each reference.


Hope that helps.
 
Upvote 0
Thanks Jonmo, Rookie mistake, one quick one , I have amended to

HTML:
=SUMPRODUCT(--('Master Result'!E1:E300000=A4),--('Master Result'!P1:P300000="John"))

But now getting a NAME? error, this column for the name P:P is derived from a formula also .... Could this be why ? Any idea how to fix ?

thanks,
 
Upvote 0
What version of Excel do you have?
Because you've now written the formula for 300,000 rows.
Versions prior to 2007 did not have that many rows.

If you have XL2007 or higher, you CAN use entire column refs like E:E
Although it's not recommended, but it is allowed.
 
Upvote 0
Hi Jonmo,

Sorry was out of office for a couple of days.
The below is the formula I'm using , the first part is Date , I am getting it to work, but the second part re the John I still am getting a N/A# error.

The John in Master result is derived from a formula would this be the reason ?

Thanks

Anne

HTML:
=SUMPRODUCT(--('Master Result'!E1:E10000=A4),--('Master Result'!P1:P10000="John"))
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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