Fill Series Number With Criteria

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
helllo...

i am looking formula to fill series number based on adjacent with basic count of data 3 cell like this :
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>expected result</th><th>data</th></tr></thead><tbody>
<tr><td>1</td><td>a</td></tr>
<tr><td>1</td><td>a</td></tr>
<tr><td>1</td><td>a</td></tr>
<tr><td>2</td><td>a</td></tr>
<tr><td>2</td><td>a</td></tr>
<tr><td>2</td><td>a</td></tr>
<tr><td>3</td><td>a</td></tr>
<tr><td>4</td><td>e</td></tr>
<tr><td>5</td><td>f</td></tr>
<tr><td>5</td><td>f</td></tr>
<tr><td> </td><td>etc..</td></tr>
</tbody></table>

any help...greatly thanks in advance..

.sst
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I had these in columns A and B.


In C2 =IF(B2=B1,0,1)+IF((COUNTIF(B$2:B2,B2)-1)/3=0,0,IF(ROUNDDOWN((COUNTIF(B$2:B2,B2)-1)/3,0)=(COUNTIF(B$2:B2,B2)-1)/3,1,0))
In D2 =SUM(C$2:C2)
 
Upvote 0
sorry ricks...i missing it..

working well..thank you
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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