Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Finding 2 different letters in a range

I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Finding 2 different letters in a range

I am not sure if this is what you mean? I hope it helps.

=COUNTIF(B2:B39,"g") + COUNTIF(B2:B39,"a")


"Bampah" wrote:

I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Finding 2 different letters in a range

On 8 Oct, 12:47, Boying Opaw
wrote:
I am not sure if this is what you mean? I hope it helps.

=COUNTIF(B2:B39,"g") + COUNTIF(B2:B39,"a")

"Bampah" wrote:
I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?


Thanks, that's exactly what I wanted.
So simple..........................like me I guess

Rob
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Finding 2 different letters in a range

=SUM(COUNTIF(B2:B20,{"a","g"}))


"Bampah" wrote:

I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Finding 2 different letters in a range

On 8 Oct, 13:51, Teethless mama
wrote:
=SUM(COUNTIF(B2:B20,{"a","g"}))

"Bampah" wrote:
I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?


Thanks Mama
That looks more elegant.
What is the purpose of the 'sqiggly' parenthsis

Rob


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Finding 2 different letters in a range

The braces define an array.
--
David Biddulph

"Bampah" wrote in message
...
On 8 Oct, 13:51, Teethless mama
wrote:
=SUM(COUNTIF(B2:B20,{"a","g"}))

"Bampah" wrote:
I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?


Thanks Mama
That looks more elegant.
What is the purpose of the 'sqiggly' parenthsis

Rob



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Finding 2 different letters in a range

On 8 Oct, 17:45, "David Biddulph" <groups [at] biddulph.org.uk wrote:
The braces define an array.
--
David Biddulph

"Bampah" wrote in message

...

On 8 Oct, 13:51, Teethless mama
wrote:
=SUM(COUNTIF(B2:B20,{"a","g"}))


"Bampah" wrote:
I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?


Thanks Mama
That looks more elegant.
What is the purpose of the 'sqiggly' parenthsis


Rob


Thankyou David
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
How do I not show certain Letters in a range of cells in excel? Taryn McGregor Excel Worksheet Functions 2 October 4th 06 09:49 PM
vlookup returns #N/A if value contains letters and range numbers checkQ Excel Discussion (Misc queries) 11 September 2nd 06 09:49 PM
Finding most common occurence of values in cells containing letters and numbers sparklyballs Excel Worksheet Functions 2 August 18th 06 12:16 PM
finding out the combination of letters! via135 Excel Worksheet Functions 2 February 13th 06 05:12 AM
Finding Numbers with Cells that also contain letters Adam Excel Discussion (Misc queries) 7 December 29th 04 02:41 PM


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