Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fay Fay is offline
external usenet poster
 
Posts: 8
Default Workaround no COUNTIFS in 2003

Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). The answer should be 4.

My actual set is much larger (669 rows) which may or maynot be the problem.
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A Column B
1 A1
1 A1
1 A1
1 A2
1 A3
1 A2
1 A1
1 A2
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Workaround no COUNTIFS in 2003

You can't use full-column references with SUMPRODUCT in XL2003 or
earlier.

Also, I suspect you have the numeric value 1 in column A and not the
text value "1", so change your formula to this:

=SUMPRODUCT((A2:A669=1)*(B2:B669="A1"))

Hope this helps.

Pete

On Nov 10, 12:02*am, fay wrote:
Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). *The answer should be 4. *

My actual set is much larger (669 rows) which may or maynot be the problem. *
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A *Column B
1 * * * * * * * * A1
1 * * * * * * * * A1
1 * * * * * * * * A1 *
1 * * * * * * * * A2
1 * * * * * * * * A3
1 * * * * * * * * A2
1 * * * * * * * * A1 *
1 * * * * * * * * A2


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Workaround no COUNTIFS in 2003

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))

Remove double quotes around the 1


"fay" wrote:

Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). The answer should be 4.

My actual set is much larger (669 rows) which may or maynot be the problem.
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A Column B
1 A1
1 A1
1 A1
1 A2
1 A3
1 A2
1 A1
1 A2

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Workaround no COUNTIFS in 2003

=SUMPRODUCT((A2:A669=1)*(B2:B669="A1"))

Note the removal of the double quotes from "1"


Gord Dibben MS Excel MVP

On Mon, 9 Nov 2009 16:02:01 -0800, fay
wrote:

Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). The answer should be 4.

My actual set is much larger (669 rows) which may or maynot be the problem.
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A Column B
1 A1
1 A1
1 A1
1 A2
1 A3
1 A2
1 A1
1 A2


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fay Fay is offline
external usenet poster
 
Posts: 8
Default Workaround no COUNTIFS in 2003

So simple! Thanks Teethless Mama!!

"Teethless mama" wrote:

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))


Remove double quotes around the 1


"fay" wrote:

Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). The answer should be 4.

My actual set is much larger (669 rows) which may or maynot be the problem.
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A Column B
1 A1
1 A1
1 A1
1 A2
1 A3
1 A2
1 A1
1 A2



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Workaround no COUNTIFS in 2003

You're Welcome!


"fay" wrote:

So simple! Thanks Teethless Mama!!

"Teethless mama" wrote:

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))


Remove double quotes around the 1


"fay" wrote:

Hi,

Can anyone help me with this?

I've read all the threads regarding alternatives to not having COUNTIFS in
2003, and none of the solutions seem to work.

I'm trying to find out how many rows have both 1 (Column A) and A1 (Column
B). The answer should be 4.

My actual set is much larger (669 rows) which may or maynot be the problem.
When I tried it out on a row of 15, the sumproduct function seems to work,
but when I try it on the full set, these are the errors I get back.

I've tried
=SUMPRODUCT((A2:A669="1")*(B2:B669="A1"))
I get 'O' when the answer is obviously not 0

=SUMPRODUCT(--(A:A= "1"),--(B:B ="A1"))
(I selected the entire columns) and I get the #NUM1 error

Column A Column B
1 A1
1 A1
1 A1
1 A2
1 A3
1 A2
1 A1
1 A2

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
Countifs in 2003 = _xlfn. ?? Steve Excel Worksheet Functions 12 December 29th 09 04:47 PM
Not understanding COUNTIFS workaround in 2003 Raymond W.[_2_] Excel Discussion (Misc queries) 8 September 28th 09 04:53 PM
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
COUNTIFS for 2003 Tromba Excel Worksheet Functions 4 April 13th 08 08:24 PM
excel's new countifs...on 2003? AndyBrown Excel Discussion (Misc queries) 1 July 20th 06 04:20 PM


All times are GMT +1. The time now is 06:40 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"