Sequence a number only if another cell changes

Chapster5

New Member
Joined
Oct 26, 2015
Messages
14
OK real simple one I just can't think how to do it...

I have a column A which is where I want my numbering to count up

Column B has company names In

All the company names are In order but there are multiples of the same company name so:

Abc
Abc
Abc
Abc
Def
Def
Ghi
Ghi
Ghi

And so on basically I need column A to count up only if Column B changes so I need

1 abc
1 abc
1 abc
1 abc
2 def
2 def
3 ghi
3 ghi
3 ghi

If that makes sense?

Anyone able to shed some light?

Many thanks!

Nick
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
1abc
1abc
1abc
1abc
2def
2def
3ghi
3ghi
3ghi
formula in A2
=IF(B2=B1,A1,A1+1)

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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