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
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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:
Upvote 0
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:
Upvote 0
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)))
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,057
Members
448,940
Latest member
mdusw

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