ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   countif with a segmented range (https://www.excelbanter.com/excel-discussion-misc-queries/250499-countif-segmented-range.html)

Allan

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")

Brad

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")


T. Valko

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")





All times are GMT +1. The time now is 12:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com