HELP required for formula

Garry8741

New Member
Joined
Nov 19, 2013
Messages
11
Seeking help to write a formula for the following data
Col ACol BCol CCol DCol ECol FCol GCol H
Row 1424517152418 0
Row 221323593027 1
Row 3142444221220 1
Row 433255343019 0
Row 52943513321 0
Row 619186103236 0
Row 7241122263318 1
Row 825444111122 1

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>

for the block A1:F8
count the number of times the number "1" occurs
IF the Row is "0" (zero) in Column H

Thank you, Garry
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

NiMip

Board Regular
Joined
Oct 9, 2017
Messages
167
Try =SUM(--((A1:F8*(H1:H8=0))=1)) and hit CONTROL+SHIFT+ENTER rather than just enter, as it's an array formula.
 
Last edited:

Dim Me as xlNoob

Board Regular
Joined
Nov 12, 2017
Messages
107
Do you want a count of how many times the value 1 occurs in the row only when column H = 0? You can copy this formula down:

=IF($H1=0, COUNTIF($A1:$F1,"=1"),0)

This will say "0" unless H=0 and there are 1's in that row.

EDIT: I misread the question.
 
Last edited:

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
If you don't want to read an empty cell in H1:H8 as 0, control+shift+enter, not just enter:

=SUM(IF(ISNUMBER(H1:H8),IF(H1:H8=0,(A1:F8=1)+0)))
 

Watch MrExcel Video

Forum statistics

Threads
1,127,331
Messages
5,624,061
Members
416,008
Latest member
PETE91

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
Top