Count as 1

deemer98

Board Regular
Joined
Sep 9, 2005
Messages
128
In the range of cells I8:R8, I11:R11, I14:R14, I17:R17,I20:R20

I want cell J25 to count as "1", any cell that has a number in that range except "0".

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
=sumproduct((mod(row(i8:i20)-row(i8),3)=0)*isnumber(i8:r20)*(i8:r20<>0))
 
Last edited:
Upvote 0
I put the answer he needed here, so I will lock the original post.
 
Upvote 0
It shouldn't have:


Excel 2010
IJKLMNOPQR
800
9
10
11
12
13
1417
15
16
17
18
19
2057
21
22
23
243
Sheet1
Cell Formulas
RangeFormula
I24=SUMPRODUCT((MOD(ROW(I8:I20)-ROW(I8),3)=0)*ISNUMBER(I8:R20)*(I8:R20<>0))
 
Upvote 0
=sumproduct((mod(row(i8:i20)-row(i8),3)=0)*isnumber(--i8:r20)*(i8:r20<>0))
 
Upvote 0
Yes, I reposted in order to try to make it more clear. I think I may have not had one row accounted for in my sheet by I have it working now. And yes, I really do have numbers in the cells. But instead of picking every other line (the only ones with #'s), I just used the entire range (w/letters and #'s) since I was only looking for anything greater than "0". therefore =COUNTIF(I8:R21,">0") worked great. Thanks for the feedback guys!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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