#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default COUNTIF problem

I am using countif to check for the occurence of a string of text but as the
range of cells is using data from another spreadsheet it doesn't recognise
the text as text. How do I get round this? It worls in previous versions of
excel but not in 2007 for some reason.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default COUNTIF problem

Do you mean a wildcard search as below with *

=COUNTIF(A:A,"*searchword*")

If this post helps click Yes
---------------
Jacob Skaria


"kitbanting" wrote:

I am using countif to check for the occurence of a string of text but as the
range of cells is using data from another spreadsheet it doesn't recognise
the text as text. How do I get round this? It worls in previous versions of
excel but not in 2007 for some reason.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default COUNTIF problem

No,

the formula is for example "=COUNTIF(B3:B37,teams!A13)" where teams is a
list of 20 three letter values and the value in the range is for example
"=Players!B4", where the screen value is one of the 20 teams. If I replace
the value of B4 with the text value it is OK. I have been using this same
spreadsheet with Excell 2000 for years but have recently upgraded to 2007 so
I don't know if there is something new that I have missed.

"Jacob Skaria" wrote:

Do you mean a wildcard search as below with *

=COUNTIF(A:A,"*searchword*")

If this post helps click Yes
---------------
Jacob Skaria


"kitbanting" wrote:

I am using countif to check for the occurence of a string of text but as the
range of cells is using data from another spreadsheet it doesn't recognise
the text as text. How do I get round this? It worls in previous versions of
excel but not in 2007 for some reason.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default COUNTIF problem

Check whether the below works

=COUNTIF(B3:B37,Trim(teams!A13))

OR

=COUNTIF(B3:B37,"*" & Trim(teams!A13) & "*")

If this post helps click Yes
---------------
Jacob Skaria


"kitbanting" wrote:

No,

the formula is for example "=COUNTIF(B3:B37,teams!A13)" where teams is a
list of 20 three letter values and the value in the range is for example
"=Players!B4", where the screen value is one of the 20 teams. If I replace
the value of B4 with the text value it is OK. I have been using this same
spreadsheet with Excell 2000 for years but have recently upgraded to 2007 so
I don't know if there is something new that I have missed.

"Jacob Skaria" wrote:

Do you mean a wildcard search as below with *

=COUNTIF(A:A,"*searchword*")

If this post helps click Yes
---------------
Jacob Skaria


"kitbanting" wrote:

I am using countif to check for the occurence of a string of text but as the
range of cells is using data from another spreadsheet it doesn't recognise
the text as text. How do I get round this? It worls in previous versions of
excel but not in 2007 for some reason.

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 Problem Lise Excel Discussion (Misc queries) 3 March 10th 09 03:31 AM
SUM COUNTIF problem AD Carvajal Excel Worksheet Functions 1 August 3rd 08 06:23 AM
countif problem myra_deV Excel Worksheet Functions 7 June 7th 06 06:55 PM
countif problem. psion New Users to Excel 2 October 6th 05 01:21 AM
CountIF problem jjj Excel Discussion (Misc queries) 2 September 29th 05 10:34 AM


All times are GMT +1. The time now is 07:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"