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: 1
Default Counta anomaly

Hi all,
I'm trying to test whether both cellls in a pair are empty, I written
a macro and a function to do the same thing both use Counta and both
return different answers:
Macro (cell2 and cell3 are values taken from cells A5 and A6)
if WorksheetFunction.CountA(cell2, cell3) = 0 Then
answer= "Blank"
Else
answer= "not blank"
End if
returns :"not blank"

The Function
if(Counta(a5,a6)=0,"Blank","not blank")
returns :"blank"

The function is returning correctly. I have tried changing the
"transition navigation keys" setting but nothing changed. The VB
debugger says cell2 and cell3 are both Empty going into the test, why
is the macro returning wrong?


I am using Excel 97 and cannot work this out.

Any help would be appreciate

Thanks

Paul
 
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
Top N Pivot Anomaly PatK Excel Discussion (Misc queries) 0 April 10th 09 10:14 PM
Date anomaly HaoHoaMastercard Excel Discussion (Misc queries) 4 October 11th 07 08:05 PM
Sort anomaly supersheet Excel Worksheet Functions 0 August 28th 07 06:57 PM
VLOOKUP Anomaly Tosca Excel Worksheet Functions 6 May 8th 05 09:08 AM
COUNTA Function not working =COUNTA(C3:C69,"NH") MikeinNH Excel Worksheet Functions 2 November 8th 04 01:19 AM


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