How many times has a number been below zero consecutively formula?

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
230
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to get my head around this and i know i am probably looking at it totally wrong.

In column G i have a formula that will determine a loss (so a negative figure) in column O i am wanting to see how many times consecutively it has dropped to a negative.
If it goes into a positive or just to zero i want it to remain blank.

What formula should i use.

thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Is this what you mean? If not, some sample data and expected results (with XL2BB) with further explanation please

24 10 18.xlsm
GO
1
2-11
3-52
4-33
50 
61 
70 
8-11
9-42
100 
11-31
12-12
13-43
142 
15-31
16-52
17-23
18-14
19-25
20-96
21-47
221 
231 
24-31
Below 0
Cell Formulas
RangeFormula
O2:O24O2=IF(G2<0,N(O1)+1,"")
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,155
Members
452,615
Latest member
bogeys2birdies

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