If row is less than last row

Kevineamon

New Member
Joined
Aug 1, 2018
Messages
27
Hi guys

Struggling with a little problem here, should be really simple you'd image, but danged if I can get it to work:-
this below, is basically the idea I need to happen.

If column A suddenly goes lower than the previous value, increment column b by 1. Can't use scripts.

1 | 0
2 | 0
3 | 0
4 | 0
5 | 0
1 | 1
2 | 1
3 | 1
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is this what you want?


Book1
AB
110
220
330
440
551
611
721
831
Sheet1
Cell Formulas
RangeFormula
B1=IF(A2)
B2=IF(AND(A3<>""),B1+1,B1)
B3=IF(AND(A4<>""),B2+1,B2)
B4=IF(AND(A5<>""),B3+1,B3)
B5=IF(AND(A6<>""),B4+1,B4)
B6=IF(AND(A7<>""),B5+1,B5)
B7=IF(AND(A8<>""),B6+1,B6)
B8=IF(AND(A9<>""),B7+1,B7)
 
Upvote 0

Book1
AB
110
220
330
440
550
611
721
831
Sheet1
Cell Formulas
RangeFormula
B1=IF(A2)
B2=IF(AND(A2<>""),B1+1,B1)
B3=IF(AND(A3<>""),B2+1,B2)
B4=IF(AND(A4<>""),B3+1,B3)
B5=IF(AND(A5<>""),B4+1,B4)
B6=IF(AND(A6<>""),B5+1,B5)
B7=IF(AND(A7<>""),B6+1,B6)
B8=IF(AND(A8<>""),B7+1,B7)
 
Upvote 0
Mmm it's something similiar to what I have, though I need it to autoupdate. Tell you what, all I need now is this


FALSE | 0
FALSE | 0
FALSE | 0
TRUE | 1
FALSE | 1
FALSE | 1

Usually I could do that without a problem but my brain is burnt out thinking about it.

I've a Rows(c$2:c2) column set up next to it acting like a clock.
I just need to +1 at the true value, for all the next rows...
 
Upvote 0
Does this do what you need?


Book1
AB
1FALSE0
2FALSE0
3FALSE0
4TRUE1
5FALSE1
6FALSE1
7FALSE1
8TRUE2
Sheet1
Cell Formulas
RangeFormula
B1=COUNTIF($A$1:A1,TRUE)
B2=COUNTIF($A$1:A2,TRUE)
B3=COUNTIF($A$1:A3,TRUE)
B4=COUNTIF($A$1:A4,TRUE)
B5=COUNTIF($A$1:A5,TRUE)
B6=COUNTIF($A$1:A6,TRUE)
B7=COUNTIF($A$1:A7,TRUE)
B8=COUNTIF($A$1:A8,TRUE)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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