Unique sequential values

CaptainGravyBum

Board Regular
Joined
Dec 1, 2023
Messages
82
Office Version
  1. 365
Platform
  1. Windows
This will no doubt be an easy one for you guys, but I'm getting nowhere.
I have a countif formula for a column of order numbers to show when there are duplicate values, this works ok and return 2 if there are 2 duplicates, 3 for 3 duplicates and so on.
Ideally I need to make another column only return a result for one of the duplicate rows, so is there a way to make the countif formula return a 1 for the first instance of a duplicate and 2 for the second instance, so I can just ignore anything larger than 1?
1714389331729.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
assuming first order ID is in G3, try:
Excel Formula:
=if(Countif($G$3:$G$3000,G3)>=2,Countif($G$3:$G3,G3),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,225,754
Messages
6,186,825
Members
453,377
Latest member
JoyousOne

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