How to add a index number to a helper column

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
516
Office Version
  1. 365
Platform
  1. Windows
Hi All, I am having a real brain fade today.

My aim is to keep visible the first occurrence of a record, then hide the rest.

Bu I need to create a helper column such as this.

Book1
AB
1NameIndex
2Jeff1
3Jeff
4Jeff
5Tom1
6Tom
7Tom
8Tim1
9Tim
10Noel1
11Fred1
12Fred
13Joe1
14Joe
15Joe
Sheet1


Ordinarily I would research until I found a For Next Loop somewhere on the big www, but I have over 10,000 records, so I am hoping there is a better and more efficient way.

I am not familiar enough with PQ.

If a loop is the preferred way, can someone be kind enough to write one. I am sure what you folk can do in a matter of minutes will take me considerable time to find.

Much appreciated.

J.
 
We learn something knew everyday.

I have only every filtered the entire highlighted range, not just one column like this. I didn't realise it would still pick up the rest of the data :)

J.
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
We learn something knew everyday.

I have only every filtered the entire highlighted range, not just one column like this. I didn't realise it would still pick up the rest of the data :)

J.
Technically it doesn't "pick up the rest of the data".
What is does is hide the (whole) row, which hides everything that appears on that row.
(It's also one of the reasons we tend to avoid having separate data tables sitting next to each other)
;)
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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