Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Select the UNIQUE vendors name

Dear All,

Please help how to replace the below function with the VBA solution:
=OFFSET($G$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($G$1:$G$14)=I$1:I1),ROW(INDIRE CT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)

the above formula work fast, when then data is not many.

But when we would like to SHORTLISTED / UNIQUE data, it will be a long wait
for Excel to finish the task.

Data:
Vendor Name
A
B
A
B
C
E
E
E
A

the Result of Unique Vendor will be
A
B
C
E

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Select the UNIQUE vendors name

On Apr 24, 5:04*am, Andri wrote:
Dear All,

Please help how to replace the below function with the VBA solution:
=OFFSET($G$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($G$1:$G$14)=I$1:I1),ROW(IN*DIR ECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)

the above formula work fast, when then data is not many.

But when we would like to SHORTLISTED / UNIQUE data, it will be a long wait
for Excel to finish the task.

Data:
Vendor Name
A
B
A
B
C
E
E
E
A

the Result of Unique Vendor will be
A
B
C
E

TIA


You can use pivot table for that or use following (Change thee range
address)

Range("YourRange").advancedfilter
action:=xlfiltercopy,copytorange:=range("SetYourRa nge"),unique:=true
this will copy your unique items in "yourrange" cells to
"SetYourRange" cells

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Select the UNIQUE vendors name

Hello Andri,

The following short program hi-lights your unique data lines in red.
Another way:
copy your entire column somewhere way down on the sheet.
Use eliminate duplicates on your command list.
Best Regards,

Gabor Sebo




Sub formatunique()

With Range("a1:a29")
'unique words hi-lighted in red
.Select
.FormatConditions.Delete
.FormatConditions.AddUniqueValues
.FormatConditions(1).DupeUnique = xlUnique
.FormatConditions(1).Interior.Color = RGB(255, 0, 0)
End With



End Sub

-----------------------------------------------------------------------------------------------------------

"Andri" wrote in message
...
Dear All,

Please help how to replace the below function with the VBA solution:
=OFFSET($G$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($G$1:$G$14)=I$1:I1),ROW(INDIRE CT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)

the above formula work fast, when then data is not many.

But when we would like to SHORTLISTED / UNIQUE data, it will be a long
wait
for Excel to finish the task.

Data:
Vendor Name
A
B
A
B
C
E
E
E
A

the Result of Unique Vendor will be
A
B
C
E

TIA


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
How do I do a cost comparison of products from many vendors? rolson New Users to Excel 4 April 8th 13 04:53 PM
load one vendors prices to a master workbook yank Excel Worksheet Functions 0 June 11th 06 04:12 PM
monthly/yearly expence by vendors Nikki New Users to Excel 1 February 5th 06 08:04 PM
Multiple vendors and scenarios - Excel Vincent Kelly via OfficeKB.com Excel Worksheet Functions 1 March 2nd 05 04:47 AM
VBA Code to list vendors Andri Excel Programming 1 February 20th 05 08:11 PM


All times are GMT +1. The time now is 03:42 PM.

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"