Count 1's by especial conditions

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,372
Office Version
  1. 2010
Hello,

I need to count 1's "count 1 as one" if the find under same header in various columns

In the example given below there are 3 sets of 6 columns (with the same headers) I want to counts 1's (but if the are under same header count must be "as 1 count"

For example... in the 2nd set under n1 in the cell L7=1 & and in the 3rd set under n1 in the cell S7=1 (so far this will be count as 1) count of the 1's row7 = 3 result in the column Z.... and the same way is count of rest 1's shown for only 5 rows

Example data...


Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2
3
4
5
6n1n2n3n4n5n6n1n2n3n4n5n6n1n2n3n4n5n6Sum
70000001100001000103
81001101111100101006
91010000010011000003
100000110100000101004
110110001000110010105
12001100100001000010?
13000100110110011011?
14000000000010010010?
15010010110000000101?
16000000000001101000?
17100001000010001100?
18100100000011001001?
19000100111000110011?
20000100010010101000?
21001000100110111100?
22101100110010000000?
23001100000011000011?
24000000011010000111?
25110100000001001001?
26011000000100101101?
27001100000101010000?
28011100010001010100?
29110101000100011000?
30000101111000110110?
31001111100010110010?
32001010011000000010?
33001000000100011110?
34011110010001110001?
35100000001110101110?
36100100110011000000?
37000000011101001101?
Sheet1


Thank you all

Excel 2000
Regards,
Moti
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
See if the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter) works for you:

=SUM(SIGN(D7:I7+L7:Q7+S7:X7))
 
Upvote 0
Solution
See if the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter) works for you:

=SUM(SIGN(D7:I7+L7:Q7+S7:X7))
Tetra201, Your formula worked just fantastic!</SPAN></SPAN>

Thank you so much for your help
</SPAN></SPAN>

Kind Regards,
</SPAN></SPAN>
Moti :)
</SPAN></SPAN>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

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