#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Help with Counting.

I need some help with a Count, An example below. I need to count all the
lines that equal zero and where the aisle is between a-d. I will also need
one that adds in another feild of value class. So this one will get me the
total variance count per aisle but I will also nee dto know the variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Help with Counting.

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28*pm, Dan wrote:
I need some help with a Count, An example below. I need to count all the
lines that equal zero and where the aisle is between a-d. I will also need
one that adds in another feild of value class. So this one will get me the
total variance count per aisle but I will also nee dto know the variance per
value class and aisle. Thanks
Variance * * * *Aisle
-8 * * *R
2 * * * O
0 * * * Q
0 * * * L
0 * * * J
-1 * * *L
0 * * * O
-38 * * J
10 * * *K
4 * * * O
0 * * * O
0 * * * L
-1 * * *L
0 * * * G
0 * * * G
0 * * * O
0 * * * E


  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Help with Counting.

Pete, Thanks for the info I have tried this but it doesn't seem to be
working, could you take a look.
=SUMPRODUCT(('[Inv
variance-q.xlsx]Inv_variance_q'!E$2:E$3317<0)*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)="A")*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)<="D"))

"Pete_UK" wrote:

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28 pm, Dan wrote:
I need some help with a Count, An example below. I need to count all the
lines that equal zero and where the aisle is between a-d. I will also need
one that adds in another feild of value class. So this one will get me the
total variance count per aisle but I will also nee dto know the variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Help with Counting.

In Pete's formula the first comparison is equal to zero, in your formula,
it's *not* equal to zero. This could be your problem.

If not, when you post back, elaborate on what "not working" means. What
result did you get, and what did you expect?

Regards,
Fred.

"Dan" wrote in message
...
Pete, Thanks for the info I have tried this but it doesn't seem to be
working, could you take a look.
=SUMPRODUCT(('[Inv
variance-q.xlsx]Inv_variance_q'!E$2:E$3317<0)*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)="A")*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)<="D"))

"Pete_UK" wrote:

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28 pm, Dan wrote:
I need some help with a Count, An example below. I need to count all
the
lines that equal zero and where the aisle is between a-d. I will also
need
one that adds in another feild of value class. So this one will get me
the
total variance count per aisle but I will also nee dto know the
variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E




  #5   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Help with Counting.

Fred, when I was sying that it was not working I meant it is still giving me
a #VALUE! error in the cell. I would like it to give me a count where it is
equalt to zero and where it is not equal to zero in my data. I need it to
work both ways.

"Fred Smith" wrote:

In Pete's formula the first comparison is equal to zero, in your formula,
it's *not* equal to zero. This could be your problem.

If not, when you post back, elaborate on what "not working" means. What
result did you get, and what did you expect?

Regards,
Fred.

"Dan" wrote in message
...
Pete, Thanks for the info I have tried this but it doesn't seem to be
working, could you take a look.
=SUMPRODUCT(('[Inv
variance-q.xlsx]Inv_variance_q'!E$2:E$3317<0)*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)="A")*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)<="D"))

"Pete_UK" wrote:

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28 pm, Dan wrote:
I need some help with a Count, An example below. I need to count all
the
lines that equal zero and where the aisle is between a-d. I will also
need
one that adds in another feild of value class. So this one will get me
the
total variance count per aisle but I will also nee dto know the
variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Help with Counting.

You probably have text in this range

E$2:E$3317


--


Regards,


Peo Sjoblom

"Dan" wrote in message
...
Fred, when I was sying that it was not working I meant it is still giving
me
a #VALUE! error in the cell. I would like it to give me a count where it
is
equalt to zero and where it is not equal to zero in my data. I need it to
work both ways.

"Fred Smith" wrote:

In Pete's formula the first comparison is equal to zero, in your formula,
it's *not* equal to zero. This could be your problem.

If not, when you post back, elaborate on what "not working" means. What
result did you get, and what did you expect?

Regards,
Fred.

"Dan" wrote in message
...
Pete, Thanks for the info I have tried this but it doesn't seem to be
working, could you take a look.
=SUMPRODUCT(('[Inv
variance-q.xlsx]Inv_variance_q'!E$2:E$3317<0)*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)="A")*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)<="D"))

"Pete_UK" wrote:

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28 pm, Dan wrote:
I need some help with a Count, An example below. I need to count all
the
lines that equal zero and where the aisle is between a-d. I will
also
need
one that adds in another feild of value class. So this one will get
me
the
total variance count per aisle but I will also nee dto know the
variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E






  #7   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Help with Counting.

I have also tried it this way.Still not working.
=SUMPRODUCT(('[Inv
variance-q.xlsx]Inv_variance_q'!E$2:E$3317<0)*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)=CODE("A"))*(CODE('[Inv
variance-q.xlsx]Inv_variance_q'!G$2:G$3317)<=CODE("D")))

"Pete_UK" wrote:

Assuming your data is in A2:A17, try this:

=SUMPRODUCT((A2:A17=0)*(CODE(B2:B17)=CODE("A"))*( CODE(B2:B17)<=CODE("L")))

I've deliberately left the two letters in the formula (A and L in this
case), so that you can easily change them if you wish.

Hope this helps.

Pete


On Jul 30, 5:28 pm, Dan wrote:
I need some help with a Count, An example below. I need to count all the
lines that equal zero and where the aisle is between a-d. I will also need
one that adds in another feild of value class. So this one will get me the
total variance count per aisle but I will also nee dto know the variance per
value class and aisle. Thanks
Variance Aisle
-8 R
2 O
0 Q
0 L
0 J
-1 L
0 O
-38 J
10 K
4 O
0 O
0 L
-1 L
0 G
0 G
0 O
0 E



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
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
HELP COUNTING Pat Brewington Excel Worksheet Functions 6 October 24th 06 07:30 PM
counting chiapas77 Excel Worksheet Functions 4 March 6th 06 09:47 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


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

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

About Us

"It's about Microsoft Excel"