Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default countif with a segmented range

Is there an easy way to do a countif with the data in question in every
second column?
The function might look like =countif(A3,C3,E3,"RED")
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default countif with a segmented range

=SUMPRODUCT(--(A3:A8="red"),MOD(ROW(A3:A8),2))

Counts every other row and if it is "red"

--
Wag more, bark less


"Allan" wrote:

Is there an easy way to do a countif with the data in question in every
second column?
The function might look like =countif(A3,C3,E3,"RED")

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default countif with a segmented range

The function might look like =countif(A3,C3,E3,"RED")

If the range is only a "few" cells:

=(A3="red")+(C3="red")+(E3="red")

If the range is more than a "few" cells:

=SUMPRODUCT(--(MOD(COLUMN(A3:E3)-COLUMN(A3),2)=0),--(A3:E3="red"))

--
Biff
Microsoft Excel MVP


"Allan" wrote in message
...
Is there an easy way to do a countif with the data in question in every
second column?
The function might look like =countif(A3,C3,E3,"RED")



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
Using countif with a name of a range webster Excel Worksheet Functions 3 June 14th 06 02:37 PM
Setting up segmented bar graphs spiketheone New Users to Excel 5 May 30th 06 10:47 PM
Urgent help needed - floating segmented bar chart Jeff B Charts and Charting in Excel 1 October 14th 05 07:21 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
does the =COUNTIF have to be a range? Xanadude Excel Worksheet Functions 2 April 21st 05 08:31 AM


All times are GMT +1. The time now is 07:56 PM.

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"