Add numbers, based on groups and every 2

FatWhale38

New Member
Joined
Nov 2, 2017
Messages
8
Office Version
  1. 2007
Platform
  1. Windows
Hi guys

I was hoping someone could help me with a formula.

I have groups in column A, and need to pair them in column B. Each group will have different numbers of pairings, but every pair must have 2, and must be incremental.

The following is the end result I'm looking at.

GroupsNumbers
A1
A1
B1
B1
A2
A2
A3
A3
C1
C1
B2
B2

At the moment, I'm filtering, and then typing it in manually - cannot rearrange the rows due to another restriction :(

I tried to divide, then realised the numbers didn't quite make sense. :(

Really hope someone can come up with a solution for me.

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
@FatWhale38
Maybe like...

Book1
AB
1GroupsPairing
2A1
3A1
4B1
5B1
6A2
7A2
8A3
9A3
10B2
11B2
12C1
13C1
Sheet1
Cell Formulas
RangeFormula
B2:B13B2=ROUNDUP(COUNTIF(A$2:A2,A2)/2,0)


Hope that helps
 
Upvote 0
Similarly

20 04 05.xlsm
AB
1GroupsPairing
2A1
3A1
4B1
5B1
6A2
7A2
8A3
9A3
10B2
11B2
12C1
13C1
Pairs
Cell Formulas
RangeFormula
B2:B13B2=INT(COUNTIF(A$1:A1,A2)/2)+1
 
Upvote 0

Forum statistics

Threads
1,214,837
Messages
6,121,883
Members
449,057
Latest member
Moo4247

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