Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default TRUE - Boolean vs. Text

Epinn wrote...
....
=COUNTIF(rng,"#N/A*")-COUNTIF(rng,"#N/A?*") <<


I understand the first part of the formula which is used to count text. I don't have a clue
about the second part. Why the question mark? Please explain. How do I
return/generate #N/A constants. Quite lost here.


Text strings like "#N/Afoobar" are possible if highly unlikely. The
first COUNTIF call above would include such strings in its count. The
second COUNTIF call counts all text strings beginning with "#N/A" and
followed by at least one character. If you want to count only the text
"#N/A", then then you need to use the formula above first to count all
text strings beginning with #N/A then subtract any that have additional
characters.

=SUMPRODUCT(--(rng="#N/A"))

....
As I stated in my previous (second) post under this thread, SUMPRODUCT doesn't work
with #N/A.


With the error value #N/A, no, but my formula was for counting TEXT
"#N/A". If you have a range that contains both the error value #N/A and
the text string "#N/A", then SUMPRODUCT doesn't work.

=SUMPRODUCT(--(B1:B6=#N/A)) returns #N/A


Agreed.

=SUMPRODUCT(--(B1:B6="#N/A")) returns #N/A <<


Only if there's an #N/A error value in B1:B6.

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
Stop renaming or moving sheet tabs sparx Excel Discussion (Misc queries) 9 May 16th 06 08:44 PM
Linked Check Boxes blueegypt Excel Discussion (Misc queries) 4 May 12th 06 10:36 PM
How change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Create a function to return text if two logical functions are true janeyt Excel Worksheet Functions 2 March 19th 05 08:49 PM


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