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!
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Snakehips

Well-known Member
Joined
May 17, 2009
Messages
5,069
Office Version
  1. 2013
Platform
  1. Windows
@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
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,355
Messages
5,595,680
Members
414,008
Latest member
SNesbyCarr

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
Top