Counting Help!!!

AcTiVation

New Member
Joined
Mar 4, 2002
Messages
8
As indicated below, I have a row in which "1's" are placed manually. I would like a formula that would sum the range from A1:F4, but give a value of 3 because there are only 3 rows to which "1's" are placed located in. I tried using the countif function, but that doesn't seem to help me much.

A B C D E F
1 0 1 1 0 0 0
2 0 1 0 1 0 0
3 0 0 0 0 0 0
4 0 1 0 1 0 0

Thanks in advanced,
cheers.
you can e-mail me directly @ lmashaud@bdp.ca
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Howdy. Hate to over simplify the issue, but is it possible to sum the rows in g and then do a count if on the summed column for cells greater than zero?

E.g., in g1, =sum(a1:f1) and so on. In g6 =COUNTIF(G1:G5,">0")

Hope so. Cheers,

Nate
This message was edited by NateO on 2002-03-11 08:30
 
Upvote 0
SUM row 1,2,3,and 4 in column G.

Then enter a =COUNTIF(G1:G4,">0").

Should give you an answer of 3.
 
Upvote 0
{=SUM(IF(FREQUENCY(IF(A1:F4,ROW(A1:A4)),ROW(A1:A4)),1))}

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,483
Members
448,967
Latest member
visheshkotha

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