#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default #NA error

I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default #NA error

Each array argument of the sumproduct function must have the same number of
elements. But you've got some that reference rows 22 through 700 and others
that reference 22 through 695. Try
=SUMPRODUCT(($E$22:$E$700=$K$1),($F$22:$F$700=$K$2 ),($G$22:$G$700=$K$3),($H$22:$H$700=$K$4),($I$22:$ I$700=$K$5),($J$22:$J$700=$K$6),(K$22:K$700=$J12))


"Scott@CW" wrote:

I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default #NA error

First thing I would do would be to *equalize* all the range references!

Your last 2 don't end at row 700 like the first 5 do.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Scott@CW" wrote in message
...
I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default #NA error

The ranges need to be of equal size, the last 2 end at row 695 and not 700
like the other


--
Regards,

Peo Sjoblom


"Scott@CW" wrote in message
...
I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default #NA error

I did what you suggested and it changed the error to 0. However my test data
should return a value of 4. I also tried the below formula and am still
getting 0.

=SUMPRODUCT(--($E$22:$E$700=$K$1),--($F$22:$F$700=$K$2),--($G$22:$G$700=$K$3),--($H$22:$H$700=$K$4),--($I$22:$I$700=$K$5),--($J$22:$J$700=$K$6),--(K$22:K$700=$J13))

I had this sheet working with just two variable I need to push it up to 6 or
7 for a new report.

"bpeltzer" wrote:

Each array argument of the sumproduct function must have the same number of
elements. But you've got some that reference rows 22 through 700 and others
that reference 22 through 695. Try
=SUMPRODUCT(($E$22:$E$700=$K$1),($F$22:$F$700=$K$2 ),($G$22:$G$700=$K$3),($H$22:$H$700=$K$4),($I$22:$ I$700=$K$5),($J$22:$J$700=$K$6),(K$22:K$700=$J12))


"Scott@CW" wrote:

I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default #NA error

I did what you suggested and it changed the error to 0. However my test data
should return a value of 4. I also tried the below formula and am still
getting 0.

=SUMPRODUCT(--($E$22:$E$700=$K$1),--($F$22:$F$700=$K$2),--($G$22:$G$700=$K$3),--($H$22:$H$700=$K$4),--($I$22:$I$700=$K$5),--($J$22:$J$700=$K$6),--(K$22:K$700=$J13))

I had this sheet working with just two variable I need to push it up to 6 or
7 for a new report.


"Peo Sjoblom" wrote:

The ranges need to be of equal size, the last 2 end at row 695 and not 700
like the other


--
Regards,

Peo Sjoblom


"Scott@CW" wrote in message
...
I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default #NA error

You may need to make sure you have rows that match your criteria. Oh wait.
It looks like you moved your last criteria from "J12" to "J13". See if
that's it. It works for me.

HTH,
Paul


"Scott@CW" wrote in message
...
I did what you suggested and it changed the error to 0. However my test
data
should return a value of 4. I also tried the below formula and am still
getting 0.

=SUMPRODUCT(--($E$22:$E$700=$K$1),--($F$22:$F$700=$K$2),--($G$22:$G$700=$K$3),--($H$22:$H$700=$K$4),--($I$22:$I$700=$K$5),--($J$22:$J$700=$K$6),--(K$22:K$700=$J13))

I had this sheet working with just two variable I need to push it up to 6
or
7 for a new report.

"bpeltzer" wrote:

Each array argument of the sumproduct function must have the same number
of
elements. But you've got some that reference rows 22 through 700 and
others
that reference 22 through 695. Try
=SUMPRODUCT(($E$22:$E$700=$K$1),($F$22:$F$700=$K$2 ),($G$22:$G$700=$K$3),($H$22:$H$700=$K$4),($I$22:$ I$700=$K$5),($J$22:$J$700=$K$6),(K$22:K$700=$J12))


"Scott@CW" wrote:

I cant figure out why I am getting the #NA error with the below
formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another
page.

Please help.



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 108
Default #NA error

Make sure your lookup values and your ranges are of the same data type. The
-- sometimes will not have effect on data that already keyed in. Try typing
over the same values on all 7 columns as well as on your result sheet. Test
just one row and see if that helps.


--
If u change the way u look @ things, the things u look at change.


"Scott@CW" wrote:

I did what you suggested and it changed the error to 0. However my test data
should return a value of 4. I also tried the below formula and am still
getting 0.

=SUMPRODUCT(--($E$22:$E$700=$K$1),--($F$22:$F$700=$K$2),--($G$22:$G$700=$K$3),--($H$22:$H$700=$K$4),--($I$22:$I$700=$K$5),--($J$22:$J$700=$K$6),--(K$22:K$700=$J13))

I had this sheet working with just two variable I need to push it up to 6 or
7 for a new report.


"Peo Sjoblom" wrote:

The ranges need to be of equal size, the last 2 end at row 695 and not 700
like the other


--
Regards,

Peo Sjoblom


"Scott@CW" wrote in message
...
I cant figure out why I am getting the #NA error with the below formula.
There is data to match the critera in the formula range.

=SUMPRODUCT(($E$22:$E$700=$K$1)*($F$22:$F$700=$K$2 )*($G$22:$G$700=$K$3)*($H$22:$H$700=$K$4)*($I$22:$ I$700=$K$5)*($J$22:$J$695=$K$6)*(K$22:K$695=$J12))

K1 through K6 are all referencing a Data validation list on another page.

Please help.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 09:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"