Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Please help!! Countif formula doesnn't work with text format


Data is as follows:
A1 099
A2 99
A3 099
A4 99

The cells are all formatted as TEXT

In A5 is a formula =COUNTIF(A1:A4, A1)
The result incorrectly calculates to 4 not 2 which is what I would
rather see.
Has anybody experienced this anomoly and how do I force COUNTIF to
evaluate the "literal text cell values" rather than a "numeric
conversion of the cell values" which appears to be happening?


--
shirley_kee
------------------------------------------------------------------------
shirley_kee's Profile: http://www.excelforum.com/member.php...o&userid=30384
View this thread: http://www.excelforum.com/showthread...hreadid=565899

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Please help!! Countif formula doesnn't work with text format

Hi!

Has anybody experienced this anomoly


Oh yeah!

Try this instead:

=SUMPRODUCT(--(A1:A4=A1))

Biff

"shirley_kee"
wrote in message
...

Data is as follows:
A1 099
A2 99
A3 099
A4 99

The cells are all formatted as TEXT

In A5 is a formula =COUNTIF(A1:A4, A1)
The result incorrectly calculates to 4 not 2 which is what I would
rather see.
Has anybody experienced this anomoly and how do I force COUNTIF to
evaluate the "literal text cell values" rather than a "numeric
conversion of the cell values" which appears to be happening?


--
shirley_kee
------------------------------------------------------------------------
shirley_kee's Profile:
http://www.excelforum.com/member.php...o&userid=30384
View this thread: http://www.excelforum.com/showthread...hreadid=565899



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Please help!! Countif formula doesnn't work with text format


The formula you gave me doesn't seem to work.

=SUMPRODUCT(--(A1:A4=A1))


--
shirley_kee
------------------------------------------------------------------------
shirley_kee's Profile: http://www.excelforum.com/member.php...o&userid=30384
View this thread: http://www.excelforum.com/showthread...hreadid=565899

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Please help!! Countif formula doesnn't work with text format

"shirley_kee" wrote....
The formula you gave me doesn't seem to work.
=SUMPRODUCT(--(A1:A4=A1))


Worked for me. Based on your sample it returns 2.

Biff


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Please help!! Countif formula doesnn't work with text format


It works now. I changed the range to A:A instead of A1:A4.

Thankx a lot


--
shirley_kee
------------------------------------------------------------------------
shirley_kee's Profile: http://www.excelforum.com/member.php...o&userid=30384
View this thread: http://www.excelforum.com/showthread...hreadid=565899



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default Please help!! Countif formula doesnn't work with text format

"shirley_kee" wrote...
It works now. I changed the range to A:A instead of A1:A4.


Well, now that shouldn't work!!!

Sumproduct can't use entire columns as range references, A:A.

Biff


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
Find & Replace text format jmn13 Excel Discussion (Misc queries) 2 May 25th 06 06:18 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
countif text formula help JCH Excel Worksheet Functions 2 June 28th 05 03:07 AM
Display Format with Text & Formula StephanieH Excel Worksheet Functions 3 April 22nd 05 04:01 PM


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