Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default COUNTIF data counting

The "double minus" simply converts TRUE and FALSE values to 1 and 0, so the
SUM function adds up all the TRUEs in the array; that is, it counts up the
number of matches.

--

Vasant




"joebogey" wrote in message
...
I tried that and it worked perfectly. I was just wondering if you could

give
an explanation of exactly how this is working, such as what the "--" does

to
the formula?

Sorry, once I implement this I'll probably have to explain how it works.

Thanks for your help, I really appreciate it.
Joe

"Vasant Nanavati" wrote:

I'm assuming you mean:

=COUNTIF(C$1:C$15000,C1)

Try instead:

=SUM(--(C1=C$1:C$15000))

entered as an array formula with <Ctrl <Shift <Enter.

--

Vasant



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
COUNTIF not counting properly DogCrazy Excel Worksheet Functions 3 May 6th 10 08:03 PM
Countif not counting PatriciaT Excel Discussion (Misc queries) 2 March 23rd 09 10:41 PM
COUNTIF, only counting once if both cells contain the data Navy Luke Excel Worksheet Functions 5 December 2nd 08 10:26 PM
COUNTIF not counting will b Excel Discussion (Misc queries) 3 September 14th 07 05:50 PM
Counting Data from Another Worksheet - Countif quiksilver Excel Worksheet Functions 3 August 2nd 06 04:18 PM


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