Another countif question...

olicowdrey

New Member
Joined
Nov 19, 2013
Messages
15
I have a range of data for example:

1
1
1
1
2
2
2
3
3
2
2
2
1

and i want to have a total of how many times the number has gone up and how many it has gone down. So in the above example it would be Up=2 and Down =2. The number range is only 1->4

I have tried: =IF(AND(A1="1", A2="2"),"1","") and then would have to nest multiple formulas but i cant even get that to work. Is there a more elegant way?

Thanks as ever
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try:

Excel 2012
ABCD
1DataIncreasesDecreases
2122
31
41
51
62
72
82
93
103
112
122
132
141

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
C2=SUMPRODUCT(--(A3:A14>A2:A13))
D2=SUMPRODUCT(--(A2:A13>A3:A14))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,494
Messages
6,125,137
Members
449,207
Latest member
VictorSiwiide

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