Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default LEFT(text,num_chars)

I have been using the following to count the number of occurances of the word
"Vacant" in several ranges of cells:
=SUM(COUNTIF($B$8:$B$55,"Vacant"))+(COUNTIF($J$8:$ J$55,"Vacant"))+(COUNTIF($R$8:$R$55,"Vacant"))

However, now I would like to count the number of occurances beginning with
"Vacant" in several ranges of cells. I just cannot seem to get my arms
around how to introduce the LEFT command into this formula.

Any assistance is very much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default LEFT(text,num_chars)

Try replacing...

"Vacant"

with

"Vacant*"

Hope this helps!

In article ,
Bigfoot17 wrote:

I have been using the following to count the number of occurances of the word
"Vacant" in several ranges of cells:
=SUM(COUNTIF($B$8:$B$55,"Vacant"))+(COUNTIF($J$8:$ J$55,"Vacant"))+(COUNTIF($R$
8:$R$55,"Vacant"))

However, now I would like to count the number of occurances beginning with
"Vacant" in several ranges of cells. I just cannot seem to get my arms
around how to introduce the LEFT command into this formula.

Any assistance is very much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default LEFT(text,num_chars)

Man, was I making it more difficult than it needed to be. Much appreciated.

"Domenic" wrote:

Try replacing...

"Vacant"

with

"Vacant*"

Hope this helps!

In article ,
Bigfoot17 wrote:

I have been using the following to count the number of occurances of the word
"Vacant" in several ranges of cells:
=SUM(COUNTIF($B$8:$B$55,"Vacant"))+(COUNTIF($J$8:$ J$55,"Vacant"))+(COUNTIF($R$
8:$R$55,"Vacant"))

However, now I would like to count the number of occurances beginning with
"Vacant" in several ranges of cells. I just cannot seem to get my arms
around how to introduce the LEFT command into this formula.

Any assistance is very much appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default LEFT(text,num_chars)

=COUNTIF(B8:R55,"Vacant*")
or
=SUMPRODUCT(--(LEFT(B8:R55,6)="Vacant"))


"Bigfoot17" wrote:

I have been using the following to count the number of occurances of the word
"Vacant" in several ranges of cells:
=SUM(COUNTIF($B$8:$B$55,"Vacant"))+(COUNTIF($J$8:$ J$55,"Vacant"))+(COUNTIF($R$8:$R$55,"Vacant"))

However, now I would like to count the number of occurances beginning with
"Vacant" in several ranges of cells. I just cannot seem to get my arms
around how to introduce the LEFT command into this formula.

Any assistance is very much appreciated.

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



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