Reverse Count continuous value

skm_newsletter

New Member
Joined
Sep 18, 2013
Messages
3
Hi All,

I need to reverse count continuous values. See example below
ActualYNRcount
Down2
Down1
Up3
Up2
Up1
Down2
Down1
Up1
Down3
Down2
Down1
Up4
Up3
Up2
Up1
Down1
Up1

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>

Thanks,
Sanjay
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi, you could try this:


Excel 2013
AB
1ActualYNRcount
2Down2
3Down1
4Up3
5Up2
6Up1
7Down2
8Down1
9Up1
10Down3
11Down2
12Down1
13Up4
14Up3
15Up2
16Up1
17Down1
18Up1
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2=A3,B3+1,1)
 
Upvote 0
Hi, you could try this:

Excel 2013
AB
1ActualYNRcount
2Down2
3Down1
4Up3
5Up2
6Up1
7Down2
8Down1
9Up1
10Down3
11Down2
12Down1
13Up4
14Up3
15Up2
16Up1
17Down1
18Up1

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

Worksheet Formulas
CellFormula
B2=IF(A2=A3,B3+1,1)

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

<tbody>
</tbody>

Hi,
This worked. Thank You.

Thanks,
Sanjay
 
Upvote 0

Forum statistics

Threads
1,216,389
Messages
6,130,323
Members
449,573
Latest member
bengee54

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