#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default array error

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default array error

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default array error

I am still getting the #Value. I didn't include the header in the actual
formula, that was a typo in my post.
--
Thanks
Shawn


"Mike H" wrote:

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default array error

By the way, I suspect it is some sort of formatting problem.???
--
Thanks
Shawn


"Shawn" wrote:

I am still getting the #Value. I didn't include the header in the actual
formula, that was a typo in my post.
--
Thanks
Shawn


"Mike H" wrote:

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default array error

It is a formatting problem because we I manually retype duplicate enteries in
a seperate worksheet and use the exact same formula, it works??????
--
Thanks
Shawn


"Shawn" wrote:

By the way, I suspect it is some sort of formatting problem.???
--
Thanks
Shawn


"Shawn" wrote:

I am still getting the #Value. I didn't include the header in the actual
formula, that was a typo in my post.
--
Thanks
Shawn


"Mike H" wrote:

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default array error

Maybe you have white space (like those HTML non-breaking spaces) in C2:C4.


Shawn wrote:

It is a formatting problem because we I manually retype duplicate enteries in
a seperate worksheet and use the exact same formula, it works??????
--
Thanks
Shawn

"Shawn" wrote:

By the way, I suspect it is some sort of formatting problem.???
--
Thanks
Shawn


"Shawn" wrote:

I am still getting the #Value. I didn't include the header in the actual
formula, that was a typo in my post.
--
Thanks
Shawn


"Mike H" wrote:

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn


--

Dave Peterson
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
#Num error in Array Ben Dummar Excel Discussion (Misc queries) 6 June 29th 06 02:22 AM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 6 November 9th 05 05:54 AM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 1 November 8th 05 04:21 AM
Array error pwz Excel Programming 2 August 11th 05 05:21 PM
Array error Craig[_2_] Excel Programming 2 July 4th 05 06:15 PM


All times are GMT +1. The time now is 05:10 AM.

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"