#1   Report Post  
maryj
 
Posts: n/a
Default countif


I have a client that needs to do a countif. The problem is is that the
range is not consecutive cells. For example the range may be C3, E3, G3
but not including D3 or F3. How can this be done?


--
maryj
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Based on you example (but I have a feeling that you will
change it after I've posted this! <g)

=SUMPRODUCT(--(MOD(COLUMN(C3:G3),2)=1),--(C3:G3="a"))

Replace "a" with your criteria. Use the quotes if it's a
TEXT value. Do not use the quotes if it's a numeric value.

Biff

-----Original Message-----

I have a client that needs to do a countif. The problem

is is that the
range is not consecutive cells. For example the range may

be C3, E3, G3
but not including D3 or F3. How can this be done?


--
maryj
.

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
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM
combining countif formulas Liz G Excel Worksheet Functions 3 November 1st 04 09:34 PM


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