Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Mark the first Unique Record in a list with VBA

Hello :),

New challange in the world of Excel.
If somebody can help me out. Thx!

I've got a list with column A, B, C. In Column.D want to have an "1" when the combined fields "A&B&C" are the first unique in the list.
If in another row the same combination "A&B&C" occur then report in that row in Column.D a "0".
I know that there are some countifs/array formulas for it, but when having many rows it makes it very slow. A VBA is faster in this cases.

regards, Johan



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Mark the first Unique Record in a list with VBA

Hi Johan,

Am Fri, 28 Aug 2020 03:17:45 -0700 (PDT) schrieb :

I've got a list with column A, B, C. In Column.D want to have an "1" when the combined fields "A&B&C" are the first unique in the list.
If in another row the same combination "A&B&C" occur then report in that row in Column.D a "0".
I know that there are some countifs/array formulas for it, but when having many rows it makes it very slow. A VBA is faster in this cases.


you don't need an array formula.

Try it in D1 with:
=--(COUNTIFS(A$1:A1,A1,B$1:B1,B1,C$1:C1,C1)=1)


Regards
Claus B.
--
Windows10
Office 2016
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Mark the first Unique Record in a list with VBA

Thanks.
Works quick enough

regards, Johan

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique record אלי Excel Programming 4 January 3rd 10 02:21 PM
How to find earliest record based on unique identifier from a list ofdata Lee Excel Discussion (Misc queries) 4 July 24th 09 09:08 PM
Record at Mark Sandy Excel Programming 2 February 4th 09 06:32 PM
Attempting to sort unique/only count first record in each unique g MJW[_2_] Excel Discussion (Misc queries) 3 August 10th 07 02:56 PM
Mark last record of a particular name jdb Excel Discussion (Misc queries) 1 December 8th 04 08:24 PM


All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"