#1   Report Post  
Jane
 
Posts: n/a
Default CountIf Question

Would someone tell me why the following doesn't work? Thank you.

=COUNTIF(Aliberti!G40:G53, "=Aliberti!G6")
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Jane

Try

=COUNTIF(Aliberti!G40:G53, "="&Aliberti!G6)

Regards

Roger Govier


Jane wrote:
Would someone tell me why the following doesn't work? Thank you.

=COUNTIF(Aliberti!G40:G53, "=Aliberti!G6")

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=COUNTIF(Aliberti!G40:G53,"="&Aliberti!G6)

Hope this helps!

In article ,
"Jane" wrote:

Would someone tell me why the following doesn't work? Thank you.

=COUNTIF(Aliberti!G40:G53, "=Aliberti!G6")

  #4   Report Post  
Jane
 
Posts: n/a
Default

Thank you. It worked. Yeah!

"Roger Govier" wrote:

Hi Jane

Try

=COUNTIF(Aliberti!G40:G53, "="&Aliberti!G6)

Regards

Roger Govier


Jane wrote:
Would someone tell me why the following doesn't work? Thank you.

=COUNTIF(Aliberti!G40:G53, "=Aliberti!G6")


  #5   Report Post  
Jane
 
Posts: n/a
Default

Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)

"Domenic" wrote:

Try...

=COUNTIF(Aliberti!G40:G53,"="&Aliberti!G6)

Hope this helps!

In article ,
"Jane" wrote:

Would someone tell me why the following doesn't work? Thank you.

=COUNTIF(Aliberti!G40:G53, "=Aliberti!G6")




  #6   Report Post  
Domenic
 
Posts: n/a
Default

Try changing "<=" to "" as follows...

=COUNTIF(Aliberti!$G$62:$G$74,"="&Aliberti!$G$6*0 .7)-COUNTIF(Aliberti!$G
$62:$G$74,""&Aliberti!$G$6*0.799)

Hope this helps!

In article ,
"Jane" wrote:

Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)

  #7   Report Post  
Jane
 
Posts: n/a
Default

Thank you again for your help. I entered your formula and played with it bu
I still can't get it to work Any ideas on what I'm doing?

=COUNTIF(Aliberti!$G$22:$G$31,"="&Aliberti!$G$6*0 .001)-COUNTIF(Aliberti!$G$22:$G$31,""&Aliberti!$G$6*0.6 99)

Also, this other formula is not working and it seems it should be so simple.

=COUNTIF(Aliberti!$G$40:$G$53, "<=0")

"Domenic" wrote:

Try changing "<=" to "" as follows...

=COUNTIF(Aliberti!$G$62:$G$74,"="&Aliberti!$G$6*0 .7)-COUNTIF(Aliberti!$G
$62:$G$74,""&Aliberti!$G$6*0.799)

Hope this helps!

In article ,
"Jane" wrote:

Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)


  #8   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Jane
What error are you getting?
What does Aliberti!G6 contain?
You could try wrapping brackets around the multiplication in case the cell
contents are a text number

=COUNTIF(Aliberti!$G$22:$G$31,"="&(Aliberti!$G$6* 0.001))-COUNTIF(Aliberti!$G$22:$G$31,""&(Aliberti!$G$6*0. 699))

Your other formula looks fine. Maybe try
=COUNTIF(Aliberti!$G$40:$G$53,"<="&0)


Regards

Roger Govier


Jane wrote:
Thank you again for your help. I entered your formula and played with it bu
I still can't get it to work Any ideas on what I'm doing?

=COUNTIF(Aliberti!$G$22:$G$31,"="&Aliberti!$G$6*0 .001)-COUNTIF(Aliberti!$G$22:$G$31,""&Aliberti!$G$6*0.6 99)

Also, this other formula is not working and it seems it should be so simple.

=COUNTIF(Aliberti!$G$40:$G$53, "<=0")

"Domenic" wrote:


Try changing "<=" to "" as follows...

=COUNTIF(Aliberti!$G$62:$G$74,"="&Aliberti!$G$6 *0.7)-COUNTIF(Aliberti!$G
$62:$G$74,""&Aliberti!$G$6*0.799)

Hope this helps!

In article ,
"Jane" wrote:


Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)


  #9   Report Post  
Jane
 
Posts: n/a
Default

Thank you for your help. I tried both formulas but I still can't get it to
work. the G6 is a $goal which changes in various columns so I am trying to
write my function so that I do not have to redo them every month. That is
why I need to multiply the goal with an upper and lower # to get an apples to
apples formulas.

I realize the problem with my second formula is that when I say <=0, I need
it to count blanks and negatives. Is there a way to do that? Thanks again.

"Roger Govier" wrote:

Hi Jane
What error are you getting?
What does Aliberti!G6 contain?
You could try wrapping brackets around the multiplication in case the cell
contents are a text number

=COUNTIF(Aliberti!$G$22:$G$31,"="&(Aliberti!$G$6* 0.001))-COUNTIF(Aliberti!$G$22:$G$31,""&(Aliberti!$G$6*0. 699))

Your other formula looks fine. Maybe try
=COUNTIF(Aliberti!$G$40:$G$53,"<="&0)


Regards

Roger Govier


Jane wrote:
Thank you again for your help. I entered your formula and played with it bu
I still can't get it to work Any ideas on what I'm doing?

=COUNTIF(Aliberti!$G$22:$G$31,"="&Aliberti!$G$6*0 .001)-COUNTIF(Aliberti!$G$22:$G$31,""&Aliberti!$G$6*0.6 99)

Also, this other formula is not working and it seems it should be so simple.

=COUNTIF(Aliberti!$G$40:$G$53, "<=0")

"Domenic" wrote:


Try changing "<=" to "" as follows...

=COUNTIF(Aliberti!$G$62:$G$74,"="&Aliberti!$G$6 *0.7)-COUNTIF(Aliberti!$G
$62:$G$74,""&Aliberti!$G$6*0.799)

Hope this helps!

In article ,
"Jane" wrote:


Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)


  #10   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Jane

=COUNTIF(Aliberti!$G$40:$G$53,"<="&0)+=COUNTIF(Ali berti!$G$40:$G$53,"<")
will give you the blanks in addition to the zero and negatives.

I can't think of any other reason why the countif formulae shouldn't work.
If you want to mail me a copy of the sheet, I could take a look for you.
Remove NOSPAM from my email address to send.

You could always try

=SUMPRODUCT(--(Aliberti!$G$22:$G$31,=(Aliberti!$G$6*0.001)),--(Aliberti!$G$22:$G$31(Aliberti!$G$6*0.699))



Regards

Roger Govier


Jane wrote:
Thank you for your help. I tried both formulas but I still can't get it to
work. the G6 is a $goal which changes in various columns so I am trying to
write my function so that I do not have to redo them every month. That is
why I need to multiply the goal with an upper and lower # to get an apples to
apples formulas.

I realize the problem with my second formula is that when I say <=0, I need
it to count blanks and negatives. Is there a way to do that? Thanks again.

"Roger Govier" wrote:


Hi Jane
What error are you getting?
What does Aliberti!G6 contain?
You could try wrapping brackets around the multiplication in case the cell
contents are a text number

=COUNTIF(Aliberti!$G$22:$G$31,"="&(Aliberti!$G$ 6*0.001))-COUNTIF(Aliberti!$G$22:$G$31,""&(Aliberti!$G$6*0. 699))

Your other formula looks fine. Maybe try
=COUNTIF(Aliberti!$G$40:$G$53,"<="&0)


Regards

Roger Govier


Jane wrote:

Thank you again for your help. I entered your formula and played with it bu
I still can't get it to work Any ideas on what I'm doing?

=COUNTIF(Aliberti!$G$22:$G$31,"="&Aliberti!$G$ 6*0.001)-COUNTIF(Aliberti!$G$22:$G$31,""&Aliberti!$G$6*0.6 99)

Also, this other formula is not working and it seems it should be so simple.

=COUNTIF(Aliberti!$G$40:$G$53, "<=0")

"Domenic" wrote:



Try changing "<=" to "" as follows...

=COUNTIF(Aliberti!$G$62:$G$74,"="&Aliberti!$G $6*0.7)-COUNTIF(Aliberti!$G
$62:$G$74,""&Aliberti!$G$6*0.799)

Hope this helps!

In article ,
"Jane" wrote:



Thank you that worked. Would you tell me why the following won't work?
Thanks again.

=COUNTIF(Aliberti!$G$62:$G$74,
"="&Aliberti!$G$6*0.7)-COUNTIF(Aliberti!$G$62:$G$74,
"<="&Aliberti!$G$6*0.799)



  #11   Report Post  
Domenic
 
Posts: n/a
Default

In article ,
"Jane" wrote:

Thank you for your help. I tried both formulas but I still can't get it to
work. the G6 is a $goal which changes in various columns so I am trying to
write my function so that I do not have to redo them every month. That is
why I need to multiply the goal with an upper and lower # to get an apples to
apples formulas.


Maybe your numbers are being recognized as text. What result do you get
when you try the following...

=COUNTIF(Aliberti!$G$22:$G$31,"?*")

I realize the problem with my second formula is that when I say <=0, I need
it to count blanks and negatives. Is there a way to do that? Thanks again.


Try the following formula instead...

=SUMPRODUCT(--(Aliberti!$G$40:$G$53<=0))
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
countif question yeedao Excel Worksheet Functions 10 August 15th 05 03:13 AM
countif question using 2 conditions Flutie99 Excel Worksheet Functions 5 June 30th 05 08:13 PM
countif question Tuc Excel Worksheet Functions 1 April 22nd 05 06:19 PM
COUNTIF Question zbert Excel Worksheet Functions 1 November 1st 04 01:59 AM
COUNTIF Question zbert Excel Worksheet Functions 2 October 31st 04 05:14 PM


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