Countif Function

Arunabh

New Member
Joined
Aug 7, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Ina single column A1:A20, how to count cells greater than the previous cell.
That is, if a2>a1 then count; similarly if a3<a2 then don't count....


Please help!
 

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.
Welcome to MrExcel!

Try:

Book1
ABC
11
2213
33
45
52
64
76
88
99
101
112
125
138
143
156
168
172
181
197
204
Sheet8
Cell Formulas
RangeFormula
C2C2=SUMPRODUCT(--(A2:A20>A1:A19))
 
Upvote 0
Thanks Eric, this works perfectly!!
You're a lifesaver.. Many thanks again :)

cheers
 
Upvote 0

Forum statistics

Threads
1,216,159
Messages
6,129,210
Members
449,493
Latest member
JablesFTW

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