count zeros

rival36

New Member
Joined
May 31, 2019
Messages
41
Office Version
  1. 2016
Platform
  1. Windows
Dear Sir,
I want following result with the data.
Condition is: Count zeroes that occurred previously in the column after occurrence of an integer number if an integer number is present in adjacent column
thanks in advance.

data zero count

2.4 0
0
0
3 2
0
0
0
5 3
4 0
0
0
0
5 3
9 0
0 0
11 1
0
0
55 2
0
5 1
0 0
0 0
4 2
7 0
8 0
0
0
5 2
0
5 1
0
0
4 2
5 0
4 0
1 0
0
0
4 2
0
1 1
 

Attachments

  • red.png
    red.png
    21.2 KB · Views: 10

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

Would this do?

Book3.xlsx
AB
1datazero count
22.40
30 
40 
532
60 
70 
80 
953
1040
110 
120 
130 
1453
1590
160 
17111
180 
190 
20552
210 
2251
230 
240 
2542
Sheet928
Cell Formulas
RangeFormula
B2:B25B2=IF(A2>0,COUNTIF(A$2:A2,0)-SUM(B$1:B1),"")
 
Upvote 0
FYI cross posted at XLForum ( and reported on this board)
 
Upvote 0
Thanks, @arthurbr , it's also cross-posted here:

 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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