counting a certain value in certain cells in a row

themole

Board Regular
Joined
Oct 26, 2009
Messages
96
i'm having trouble counting certain cells within a row which contain the value "0". the cells are 2 places apart from each other in the row.

i've tried using =COUNTIF((E8,G8,I8,K8,M8,O8,Q8,S8,U8,W8,Y8,AA8,AC8,AE8,AG8,AI8,AK8,AM8,AO8,AQ8,AS8,AU8,AW8,AY8),"0")

But all i got was an error on screen

can anyone help???
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try;
=SUMPRODUCT(--(MOD(COLUMN(E8:AY8),2)),--(E8:AY8=0),--(LEN(E8:AY8)=1))
 
Last edited:
Upvote 0
i'm having trouble counting certain cells within a row which contain the value "0". the cells are 2 places apart from each other in the row.

i've tried using =COUNTIF((E8,G8,I8,K8,M8,O8,Q8,S8,U8,W8,Y8,AA8,AC8,AE8,AG8,AI8,AK8,AM8,AO8,AQ8,AS8,AU8,AW8,AY8),"0")

But all i got was an error on screen

can anyone help???
Robert Mika is correct, although placing the zero in quotes isn't needed. (at least it isn't in 2007)
 
Upvote 0
i can't use =COUNTIF(D8:AY8,0) as it's counting the cells with "0" that i don't want it to count
 
Upvote 0
Hi,

I know my formula is wrong I have just checked it, sorry.

Jon, your formula works for me.

Ak
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top