Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How do I use countif an array for =45<=50

I want to count the number of values in a raw compeised between =45 to <=50
The countif does not like 2 logic arguments
Any help I would be gratful
Jamal Hakem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How do I use countif an array for =45<=50

You could set up a variable just for keeping count.
Dim counter as integer
counter = 0
'put the If/Then statement in a loop to check the rows

If rowvalue =45 OR rowvalue <=50 then
counter = counter + 1
End If

HTH

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I use countif an array for =45<=50

Hi Jamal,

=COUNTIF(A:A,"=45")-COUNTIF(A:A,"50")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
I want to count the number of values in a raw compeised between =45 to

<=50
The countif does not like 2 logic arguments
Any help I would be gratful
Jamal Hakem



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How do I use countif an array for =45<=50

I always like to use Sumproduct. It will allow you to count mulitple
criteria, or sum mulitple critieria.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I use countif an array for =45<=50

SUMPRODUCT is useful, but is not as efficient as COUNTIF, and it cannot
handle full columns as COUNTIF can.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bill Schanks" wrote in message
ups.com...
I always like to use Sumproduct. It will allow you to count mulitple
criteria, or sum mulitple critieria.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How do I use countif an array for =45<=50

I agree ... for 1 criteria countif/sumif work very well.

The main reason I like sumproduct is because it will react to filters
and only total the filtered rows. countif/sumif don't do that.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I use countif an array for =45<=50

Not of itself it doesn't, you have to add other functions. Only SUBTOTAL
reacts to filters, but that can't handle conditions.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bill Schanks" wrote in message
oups.com...
I agree ... for 1 criteria countif/sumif work very well.

The main reason I like sumproduct is because it will react to filters
and only total the filtered rows. countif/sumif don't do that.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How do I use countif an array for =45<=50

Hi Bob
Thank you for your swift and nice reply
I used the hint by adding contif from 45 to 50
Thank you very much again
May I ask you another question, I did ask it some moment ago and get a nice
reply consisting in a visual basic algorithm. I want to spell a number by
written text, I got one to spell in english but I could not not convert it to
Arabic, should I use ASCI but it is not easy
Thank you very much agin
Jamal


"Bob Phillips" wrote:

Hi Jamal,

=COUNTIF(A:A,"=45")-COUNTIF(A:A,"50")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
I want to count the number of values in a raw compeised between =45 to

<=50
The countif does not like 2 logic arguments
Any help I would be gratful
Jamal Hakem




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I use countif an array for =45<=50

Hi Jamal,

You may be surprised to hear that I don't know Arabic <vbg, but it should
be straightforward. Those SpellNumber functions tend to have lists of text,
and you just need to replace those with the Arabic equivalents.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
Hi Bob
Thank you for your swift and nice reply
I used the hint by adding contif from 45 to 50
Thank you very much again
May I ask you another question, I did ask it some moment ago and get a

nice
reply consisting in a visual basic algorithm. I want to spell a number by
written text, I got one to spell in english but I could not not convert it

to
Arabic, should I use ASCI but it is not easy
Thank you very much agin
Jamal


"Bob Phillips" wrote:

Hi Jamal,

=COUNTIF(A:A,"=45")-COUNTIF(A:A,"50")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
I want to count the number of values in a raw compeised between =45

to
<=50
The countif does not like 2 logic arguments
Any help I would be gratful
Jamal Hakem






  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How do I use countif an array for =45<=50

Hi Bob
I really apologize, but I did not mean this. I just tried what you've
suggested already, but it did not work. I thought that as it exsits the bhat
function which writes in Thai characters, that it may be the same. I have
substitute the words in Arabic in that spellnumber, something is not
mathching.
I've never used paogramming in Arabic strings, since all my studies were in
English anyway one of my students is trying to help, if he succeds I'll let
you know
Thank again for your swift reply
Jamal

"Bob Phillips" wrote:

Hi Jamal,

You may be surprised to hear that I don't know Arabic <vbg, but it should
be straightforward. Those SpellNumber functions tend to have lists of text,
and you just need to replace those with the Arabic equivalents.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
Hi Bob
Thank you for your swift and nice reply
I used the hint by adding contif from 45 to 50
Thank you very much again
May I ask you another question, I did ask it some moment ago and get a

nice
reply consisting in a visual basic algorithm. I want to spell a number by
written text, I got one to spell in english but I could not not convert it

to
Arabic, should I use ASCI but it is not easy
Thank you very much agin
Jamal


"Bob Phillips" wrote:

Hi Jamal,

=COUNTIF(A:A,"=45")-COUNTIF(A:A,"50")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"????????" wrote in message
...
I want to count the number of values in a raw compeised between =45

to
<=50
The countif does not like 2 logic arguments
Any help I would be gratful
Jamal Hakem








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 array LearningHorse Excel Worksheet Functions 0 January 13th 11 09:06 PM
ARRAY with countif MCC Excel Discussion (Misc queries) 6 July 22nd 09 06:13 PM
COUNTIF Array Pyrite Excel Discussion (Misc queries) 7 August 27th 08 04:21 PM
array and countif help! jcorle Excel Worksheet Functions 7 February 28th 08 03:39 PM
countif within array Grant Excel Worksheet Functions 3 October 26th 06 07:58 AM


All times are GMT +1. The time now is 06:25 PM.

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"