Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Multiple Count Condition

Hello all,

I'm trying to create a multiple condition count and I can't get it to work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y = "Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Multiple Count Condition

I also tried this but it doesn't produce the expected value.

=COUNT(IF(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3"),IF('Grindex 2008'!Y:Y="Jan-D",'Grindex 2008'!Y:Y)))

--
Disregard, this is so I can find my post later.
***postedbyJay***


"Jay" wrote:

Hello all,

I'm trying to create a multiple condition count and I can't get it to work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y = "Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Multiple Count Condition

One possible way:

=SUMPRODUCT(--('Grindex 2008'!AB1:AB100="Jan-2"),--('Grindex
2008'!Y1:Y100="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB100="Jan-3"),--('Grindex 2008'!Y1:Y100="Jan-D"))

HTH,
Paul

--

"Jay" wrote in message
...
Hello all,

I'm trying to create a multiple condition count and I can't get it to work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y = "Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't
see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***



  #4   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Multiple Count Condition

Paul,

The example you gave works well, but I have a question. Why do I need to
specify the rows in the formula?

I tried this, And I get a #NUM error.
=SUMPRODUCT(--('Grindex 2008'!AB:AB="Jan-2"),--('Grindex
2008'!Y:Y="Jan-D"))+SUMPRODUCT(--('Grindex 2008'!AB:AB="Jan-3"),--('Grindex
2008'!Y:Y="Jan-D"))

The only way I can try to get all rows is to use this:
=SUMPRODUCT(--('Grindex 2008'!AB1:AB65535="Jan-2"),--('Grindex
2008'!Y1:Y65535="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB65535="Jan-3"),--('Grindex 2008'!Y1:Y65535="Jan-D"))

Any ideas?

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***


"PCLIVE" wrote:

One possible way:

=SUMPRODUCT(--('Grindex 2008'!AB1:AB100="Jan-2"),--('Grindex
2008'!Y1:Y100="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB100="Jan-3"),--('Grindex 2008'!Y1:Y100="Jan-D"))

HTH,
Paul

--

"Jay" wrote in message
...
Hello all,

I'm trying to create a multiple condition count and I can't get it to work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y = "Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't
see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Multiple Count Condition

You cannot use full column ranges when using SUMPRODUCT. You must specify a
range.

--

"Jay" wrote in message
...
Paul,

The example you gave works well, but I have a question. Why do I need to
specify the rows in the formula?

I tried this, And I get a #NUM error.
=SUMPRODUCT(--('Grindex 2008'!AB:AB="Jan-2"),--('Grindex
2008'!Y:Y="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB:AB="Jan-3"),--('Grindex
2008'!Y:Y="Jan-D"))

The only way I can try to get all rows is to use this:
=SUMPRODUCT(--('Grindex 2008'!AB1:AB65535="Jan-2"),--('Grindex
2008'!Y1:Y65535="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB65535="Jan-3"),--('Grindex 2008'!Y1:Y65535="Jan-D"))

Any ideas?

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***


"PCLIVE" wrote:

One possible way:

=SUMPRODUCT(--('Grindex 2008'!AB1:AB100="Jan-2"),--('Grindex
2008'!Y1:Y100="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB100="Jan-3"),--('Grindex 2008'!Y1:Y100="Jan-D"))

HTH,
Paul

--

"Jay" wrote in message
...
Hello all,

I'm trying to create a multiple condition count and I can't get it to
work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y =
"Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't
see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***








  #6   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Multiple Count Condition

Ah, didn't realize that.

Thanks!
--
Disregard, this is so I can find my post later.
***postedbyJay***


"PCLIVE" wrote:

You cannot use full column ranges when using SUMPRODUCT. You must specify a
range.

--

"Jay" wrote in message
...
Paul,

The example you gave works well, but I have a question. Why do I need to
specify the rows in the formula?

I tried this, And I get a #NUM error.
=SUMPRODUCT(--('Grindex 2008'!AB:AB="Jan-2"),--('Grindex
2008'!Y:Y="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB:AB="Jan-3"),--('Grindex
2008'!Y:Y="Jan-D"))

The only way I can try to get all rows is to use this:
=SUMPRODUCT(--('Grindex 2008'!AB1:AB65535="Jan-2"),--('Grindex
2008'!Y1:Y65535="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB65535="Jan-3"),--('Grindex 2008'!Y1:Y65535="Jan-D"))

Any ideas?

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***


"PCLIVE" wrote:

One possible way:

=SUMPRODUCT(--('Grindex 2008'!AB1:AB100="Jan-2"),--('Grindex
2008'!Y1:Y100="Jan-D"))+SUMPRODUCT(--('Grindex
2008'!AB1:AB100="Jan-3"),--('Grindex 2008'!Y1:Y100="Jan-D"))

HTH,
Paul

--

"Jay" wrote in message
...
Hello all,

I'm trying to create a multiple condition count and I can't get it to
work
using all the examples I've found. I'm hope someone can help me out.

Here's the formula I've trying to manipulate (unsuccessfully):
=COUNT(('Grindex 2008'!AB:AB="Jan-2")*('Grindex
2008'!AB:AB="Jan-3")*('Grindex 2008'!Y:Y="Jan-D"))

So if (column AB = "Jan-2" OR column AB = "Jan-3") AND column Y =
"Jan-D"
then count the row.

I'm drawing a complete blank. Anyone know the correct format? I can't
see
to find a good example on how to structure the formula.

Thanks,
Jay
--
Disregard, this is so I can find my post later.
***postedbyJay***






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
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
helps with count under multiple condition Cam Excel Discussion (Misc queries) 1 March 7th 07 08:08 PM
Count multiple condition whygh Excel Programming 4 December 16th 05 10:11 PM
What formula/fn would I use to count multiple condition records? Joshcat99 Excel Worksheet Functions 3 October 27th 05 01:45 AM
how to count unique entries with multiple condition Michael Excel Worksheet Functions 6 June 29th 05 12:38 PM


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