formula help

markster

Well-known Member
Joined
May 23, 2002
Messages
575
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi - column a of my worksheet contains a list of transactions. I need to place a formula in column D that numbers identical transactions - i.e when transaction X001 appears the first time column D will say 1, if it appears again then column D will say 2 and if it appears again column D will say 3 and so on - any ideas?

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
=COUNTIF($A$1:A1,A1)
Copy this down column D.

Hope that helps!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,130
Office Version
  1. 365
Platform
  1. Windows
Let's say that your data is in rows 2 to 100 and you are checking/counting the values in column A. Then in row 2, enter this formula:

=COUNTIF($A$2:A2,A2)
and copy down for all rows. This will give you your running counter.
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,258
Assuming your transaction number is actually in Col A, try this
Code:
=countif(a$1:a1,a1)
and copy down as far as required
 

Forum statistics

Threads
1,181,719
Messages
5,931,660
Members
436,797
Latest member
fullmetalpogi

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