LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Trouble with conflicting IsBlank() and CountBlank() results

I'm using the following formula in cell c1:
=if(isblank(a1),"",a1)
to "copy" the a1 cell value to cell c1 without displaying a zero if a1 is
blank.

The trouble I'm having is if cell a1 is blank, thus making the value of c1 =
""....
=isblank(c1) returns false (the cell is not blank), but...
=countblank(c1) returns 1 (the cell is blank)

Why does CountBlank consider a cell with the value of "" as blank, but
IsBlank does not??

I found this apparent discrepany in results because I actually want to use
CountA(c1:c4) to count non-blank cells, but it's count cells with a value of
"" as a non-blank cell.

I know I can "work around" this by using 4-countblank(c1:c4) to find the
number of non-blank cells, but I like the direct route better.

Is there a better way to copy a blank value from a1 to c1??
 
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
Conflicting Calculations Kay Excel Discussion (Misc queries) 1 February 16th 10 10:41 PM
Conflicting vlookups Bruister via OfficeKB.com Excel Worksheet Functions 1 October 17th 09 04:57 PM
Conflicting VBA Coding Alberta Rose Excel Programming 7 October 1st 09 09:22 PM
Conflicting results in formulas? mikelee101[_2_] Excel Worksheet Functions 4 March 26th 08 02:50 AM
Conflicting VBA's pdberger Excel Programming 2 March 3rd 08 08:52 PM


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