Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chris100
 
Posts: n/a
Default CountIf & null values problem


Hello all,

Small prolem with Countif. I have a function that counts if a cell is
not blank - i.e has text in it:

=countif(v2:v200,"bob")

For some reason even if text is there it doesn't get counted.
Now the formula for cells where "bob" might appear is below:

=IF(D50,(IF(ISBLANK(L5)=TRUE,"bob","")),"")

This formula works fine but i have a suspicion it affects the countif.


Any suggestions??

Thanks,

Chris


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=490689

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chris100
 
Posts: n/a
Default CountIf & null values problem


Actually change the above question so that i count if a cell is non null
- something like countif istext?


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=490689

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default CountIf & null values problem

I cannot reproduce your problem as you state it.

Are you sure it is really "bob" in the cells, no leading or trailing spaces
anywhere. Try this and see what you get

=SUMPRODUCT(--(TRIM(V2:V200)="bob"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"chris100" wrote in
message ...

Hello all,

Small prolem with Countif. I have a function that counts if a cell is
not blank - i.e has text in it:

=countif(v2:v200,"bob")

For some reason even if text is there it doesn't get counted.
Now the formula for cells where "bob" might appear is below:

=IF(D50,(IF(ISBLANK(L5)=TRUE,"bob","")),"")

This formula works fine but i have a suspicion it affects the countif.


Any suggestions??

Thanks,

Chris


--
chris100
------------------------------------------------------------------------
chris100's Profile:

http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=490689



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chris100
 
Posts: n/a
Default CountIf & null values problem


Hi bob,

Thanks for the reply. I just had a bit of a thickie moment - i hadn't
come back to the program for a few days and was working on the wrong
cell that was referenced in the macro. I did check the macro but with
my eyesight z and x looked very similar on the worksheet at 50%. oops.

Thanks all the same - with regards to the question i used wildcards to
find anything missing*

=COUNTIF(V2:W268,"missing*")

To anyone unfamilar this counts all cells within the range that have
"missing" written in the text. e.g missing stock, missing firm name,
missing etc etc etc.

Cheers, chris


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=490689

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
Displaying null values in charts Iain ASLD Charts and Charting in Excel 2 October 26th 05 12:24 PM
COUNTIF / SUM problem RobPot Excel Worksheet Functions 2 July 28th 05 12:21 PM
Using COUNTIF to check values in multiple columns DTomSimpson Excel Worksheet Functions 2 March 29th 05 04:47 AM
COUNTIF or SUMIF Problem s boak Excel Discussion (Misc queries) 4 March 24th 05 02:45 PM
IF IS NULL PROBLEM Teri Excel Worksheet Functions 3 February 25th 05 08:14 PM


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