Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting contents in aray

Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L". How
can I achieve this?

Tks

Preman
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Counting contents in aray

=SUM(COUNTIF(A1:C10,{"A","L"}))

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L".
How
can I achieve this?

Tks

Preman



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Counting contents in aray

=COUNTIF(A1:C10,"A")+COUNTIF(A1:C10,"L")

--
Gary''s Student - gsnu200807


"jpreman" wrote:

Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L". How
can I achieve this?

Tks

Preman

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting contents in aray

Thanks Bob,

You have taught me a different (better) solution than the one I figured out
within minutes of posting my question.

Kind regards

Preman

"Bob Phillips" wrote:

=SUM(COUNTIF(A1:C10,{"A","L"}))

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L".
How
can I achieve this?

Tks

Preman




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting contents in aray

Hi

Thanks for responding to my post. That's exactly what I was looking for.

Kind regards

Preman

"Gary''s Student" wrote:

=COUNTIF(A1:C10,"A")+COUNTIF(A1:C10,"L")

--
Gary''s Student - gsnu200807


"jpreman" wrote:

Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L". How
can I achieve this?

Tks

Preman



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting contents in aray

Hi Bob,

I would be thankful if you kindly explain how curly brackets work in formulas.

Thanks & regards

Preman

"Bob Phillips" wrote:

=SUM(COUNTIF(A1:C10,{"A","L"}))

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg. A1
:C10). I would like to know the combined count of alphabets "A" and "L".
How
can I achieve this?

Tks

Preman




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Counting contents in aray

Hi Preman,

The curly brackets signify an array constant, an array of values that will
be used within the formula. For instance, COUNTIF normally checks a range
against a particular value. If you use an array constant rather than a
particular value, COUNTIF will return an array of values equivalent to
multiple COUNTIF calls. The SUM is needed to sum this array returned by the
COUNTIF.

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Hi Bob,

I would be thankful if you kindly explain how curly brackets work in
formulas.

Thanks & regards

Preman

"Bob Phillips" wrote:

=SUM(COUNTIF(A1:C10,{"A","L"}))

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg.
A1
:C10). I would like to know the combined count of alphabets "A" and
"L".
How
can I achieve this?

Tks

Preman






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Counting contents in aray


That's great.

Thanks a million Bob.

Kind regards

Preman


"Bob Phillips" wrote:

Hi Preman,

The curly brackets signify an array constant, an array of values that will
be used within the formula. For instance, COUNTIF normally checks a range
against a particular value. If you use an array constant rather than a
particular value, COUNTIF will return an array of values equivalent to
multiple COUNTIF calls. The SUM is needed to sum this array returned by the
COUNTIF.

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Hi Bob,

I would be thankful if you kindly explain how curly brackets work in
formulas.

Thanks & regards

Preman

"Bob Phillips" wrote:

=SUM(COUNTIF(A1:C10,{"A","L"}))

--
__________________________________
HTH

Bob

"jpreman" wrote in message
...
Thanks for reading this post.

One in each cell, there are several alphabets in a range of cells (eg.
A1
:C10). I would like to know the combined count of alphabets "A" and
"L".
How
can I achieve this?

Tks

Preman






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
VLOOKUP Question - Can I Keep the Same Aray with Drag? CJ Excel Worksheet Functions 4 July 22nd 08 09:41 PM
Excel 2003 - Counting Contents of Cells [email protected] Excel Discussion (Misc queries) 1 October 30th 07 03:01 PM
Counting based on other cells contents... George Excel Discussion (Misc queries) 3 November 8th 05 03:33 PM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 07:39 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 09:13 PM


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